[arch-commits] Commit in capi4hylafax/trunk (3 files)

Tobias Powalowski tpowa at archlinux.org
Thu Apr 26 13:30:21 UTC 2012


    Date: Thursday, April 26, 2012 @ 09:30:21
  Author: tpowa
Revision: 157240

upgpkg: capi4hylafax 010300-7

add systemd files

Added:
  capi4hylafax/trunk/c2faxrecv.service
  capi4hylafax/trunk/capi4hylafax.conf
Modified:
  capi4hylafax/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   23 ++++++++++++++++-------
 c2faxrecv.service |   11 +++++++++++
 capi4hylafax.conf |    1 +
 3 files changed, 28 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-04-26 13:06:31 UTC (rev 157239)
+++ PKGBUILD	2012-04-26 13:30:21 UTC (rev 157240)
@@ -3,17 +3,18 @@
 
 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 @@
   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 @@
 # 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')

Added: c2faxrecv.service
===================================================================
--- c2faxrecv.service	                        (rev 0)
+++ c2faxrecv.service	2012-04-26 13:30:21 UTC (rev 157240)
@@ -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

Added: capi4hylafax.conf
===================================================================
--- capi4hylafax.conf	                        (rev 0)
+++ capi4hylafax.conf	2012-04-26 13:30:21 UTC (rev 157240)
@@ -0,0 +1 @@
+capi
\ No newline at end of file




More information about the arch-commits mailing list