summaryrefslogtreecommitdiff
path: root/extra/capi4hylafax
diff options
context:
space:
mode:
Diffstat (limited to 'extra/capi4hylafax')
-rw-r--r--extra/capi4hylafax/PKGBUILD25
-rw-r--r--extra/capi4hylafax/c2faxrecv.service11
-rw-r--r--extra/capi4hylafax/capi4hylafax.conf1
3 files changed, 29 insertions, 8 deletions
diff --git a/extra/capi4hylafax/PKGBUILD b/extra/capi4hylafax/PKGBUILD
index 7fb059d44..c13e293cd 100644
--- a/extra/capi4hylafax/PKGBUILD
+++ b/extra/capi4hylafax/PKGBUILD
@@ -1,19 +1,20 @@
-# $Id: PKGBUILD 154271 2012-03-25 09:27:30Z tpowa $
+# $Id: PKGBUILD 157241 2012-04-26 13:40:50Z tpowa $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=capi4hylafax
pkgver=010300
-pkgrel=6
+pkgrel=7
pkgdesc="capi plugin for hylafax to enable isdn faxing"
arch=(i686 x86_64)
url="ftp://ftp.avm.de/tools"
license=('GPL')
depends=('glibc' 'isdn4k-utils' 'hylafax' 'gcc-libs' 'libtiff' 'dialog')
source=(ftp://ftp.avm.de/tools/capi4hylafax.linux/capi4hylafax-01.03.00.tar.gz
- config.faxCAPI capi4hylafax.rc)
-md5sums=('d37dc652ac80d1525ef8693be55ee67f'
- '653b60695d21c128f020a86274ca9192'
- '1fe40c58289fa3ba625ce6fe2fdb3d07')
+ config.faxCAPI
+ capi4hylafax.rc
+ c2faxrecv.service
+ capi4hylafax.conf)
+
install=capi4hylafax.install
backup=(var/spool/hylafax/etc/config.faxCAPI)
@@ -42,8 +43,8 @@ package() {
chown 10 "$pkgdir"/var/spool/hylafax
chgrp 14 "$pkgdir"/var/spool/hylafax
# adding udev rule
- mkdir -p "$pkgdir"/lib/udev/rules.d
-cat << EOF >> "$pkgdir"/lib/udev/rules.d/53-capi4hylafax.rules
+ mkdir -p "$pkgdir"/usr/lib/udev/rules.d
+cat << EOF >> "$pkgdir"/usr/lib/udev/rules.d/53-capi4hylafax.rules
# CAPI devices
SUBSYSTEM=="capi", KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20", GROUP="uucp"
SUBSYSTEM=="tty" KERNEL=="capi[0-9]*", NAME="capi/%n", GROUP="uucp"
@@ -52,4 +53,12 @@ EOF
# fix c2faxadd
sed -i -e 's#/etc/config.faxCAPI#/var/spool/hylafax/etc/config.faxCAPI#g' "$pkgdir"/usr/bin/c2faxaddmodem
echo "main_config_dialog" >> "$pkgdir"/usr/bin/c2faxaddmodem
+# add systemd files
+ install -D -m644 $srcdir/c2faxrecv.service $pkgdir/usr/lib/systemd/system/c2faxrecv.service
+ install -D -m644 $srcdir/capi4hylafax.conf $pkgdir/usr/lib/modules-load.d/capi4hylafax.conf
}
+md5sums=('d37dc652ac80d1525ef8693be55ee67f'
+ '653b60695d21c128f020a86274ca9192'
+ '1fe40c58289fa3ba625ce6fe2fdb3d07'
+ 'a12164b2694490bfedb0cc861692e240'
+ '7c41d4fa5c5ef7b1372813341fd0d02b')
diff --git a/extra/capi4hylafax/c2faxrecv.service b/extra/capi4hylafax/c2faxrecv.service
new file mode 100644
index 000000000..5e73e29e7
--- /dev/null
+++ b/extra/capi4hylafax/c2faxrecv.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=CAPI to fax receive
+Requires=faxq.service
+After=faxq.service
+
+[Service]
+ExecStart=/usr/bin/c2faxrecv
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/extra/capi4hylafax/capi4hylafax.conf b/extra/capi4hylafax/capi4hylafax.conf
new file mode 100644
index 000000000..9c145eb55
--- /dev/null
+++ b/extra/capi4hylafax/capi4hylafax.conf
@@ -0,0 +1 @@
+capi \ No newline at end of file