[arch-commits] Commit in hylafax/trunk (PKGBUILD hylafax.install hylafax.sysusers)

Antonio Rojas arojas at archlinux.org
Sat Nov 23 10:07:01 UTC 2019


    Date: Saturday, November 23, 2019 @ 10:07:01
  Author: arojas
Revision: 369631

Switch to sysusers

Added:
  hylafax/trunk/hylafax.sysusers
Modified:
  hylafax/trunk/PKGBUILD
  hylafax/trunk/hylafax.install

------------------+
 PKGBUILD         |   25 ++++++++++++++++---------
 hylafax.install  |    9 ---------
 hylafax.sysusers |    4 ++++
 3 files changed, 20 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-23 10:04:36 UTC (rev 369630)
+++ PKGBUILD	2019-11-23 10:07:01 UTC (rev 369631)
@@ -1,7 +1,7 @@
 # Maintainer: Paul Mattal <paul at archlinux.org>
 pkgname=hylafax
 pkgver=6.0.7
-pkgrel=1
+pkgrel=2
 pkgdesc="Fax Server"
 arch=('x86_64')
 install='hylafax.install'
@@ -13,12 +13,25 @@
 	usr/lib/fax/{faxcover.ps,hfaxd.conf,pagesizes,typerules}
 	var/spool/hylafax/etc/hosts.hfaxd) 
 source=(ftp://ftp.hylafax.org/source/${pkgname}-${pkgver}.tar.gz 
-        hylafax.{timer,service}
+        hylafax.{timer,service,sysusers}
         config.local
         faxq.service
         hfaxd.service
         faxgetty at .service)
+md5sums=('7602e98b882fa61a0722109c2706d1f1'
+         '9ef38446d2a2aeac698c4ae178fd5c2b'
+         'e5afba881859f018ee88d35fc62a488f'
+         '05cb5b7055e4a54d35c91c138fd7a217'
+         '5f3a89fbfb10c47755d3ca19183b8a59'
+         'a10aa2ef613551a88d750f6602b5f2f7'
+         '38a00db6d9d765d130b2d8d3a98e5c24'
+         'fe10ea597e786fe8c09e4104fbdf16de')
 
+prepare() {
+  cd $pkgname-$pkgver
+  sed -e 's|4.\[0\]|4.[01]|g' -i configure # Support libtiff 4.1
+}
+
 build () {
   cd ${pkgname}-${pkgver}
   cp ../config.local .
@@ -40,6 +53,7 @@
   install -D -m644 "$srcdir"/hfaxd.service "$pkgdir"/usr/lib/systemd/system/hfaxd.service
   install -D -m644 "$srcdir"/faxq.service "$pkgdir"/usr/lib/systemd/system/faxq.service
   install -D -m644 "$srcdir"/faxgetty at .service "$pkgdir"/usr/lib/systemd/system/faxgetty at .service
+  install -D -m644 "$srcdir"/hylafax.sysusers "$pkgdir"/usr/lib/sysusers.d/hylafax.conf
   install -D -m644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
   # systemd timer
   install -D -m644 "${srcdir}"/hylafax.timer "${pkgdir}"/usr/lib/systemd/system/hylafax.timer
@@ -52,10 +66,3 @@
   chown 10:14 "${pkgdir}"/var/spool/hylafax/etc/{hosts.hfaxd,lutRS18.pcf,xferfaxlog}
   chown 10:14 -R "${pkgdir}"/var/spool/hylafax/etc/templates
 }
-md5sums=('7602e98b882fa61a0722109c2706d1f1'
-         '9ef38446d2a2aeac698c4ae178fd5c2b'
-         'e5afba881859f018ee88d35fc62a488f'
-         '5f3a89fbfb10c47755d3ca19183b8a59'
-         'a10aa2ef613551a88d750f6602b5f2f7'
-         '38a00db6d9d765d130b2d8d3a98e5c24'
-         'fe10ea597e786fe8c09e4104fbdf16de')

Modified: hylafax.install
===================================================================
--- hylafax.install	2019-11-23 10:04:36 UTC (rev 369630)
+++ hylafax.install	2019-11-23 10:07:01 UTC (rev 369631)
@@ -18,18 +18,9 @@
 }
 
 post_install() {
-  post_upgrade
   print_install
 }
 
-post_upgrade() {
-  groupadd -g 14 uucp &>/dev/null
-  useradd -u 10 -g uucp -d '/' -s /bin/false uucp &>/dev/null
-  useradd -u 69 -g daemon -d '/' -s /bin/false fax &>/dev/null
-  usermod -d '/' -u 10 &>/dev/null
-  usermod -d '/' -u 69 &>/dev/null
-}
-
 pre_remove() {
   print_remove
 }

Added: hylafax.sysusers
===================================================================
--- hylafax.sysusers	                        (rev 0)
+++ hylafax.sysusers	2019-11-23 10:07:01 UTC (rev 369631)
@@ -0,0 +1,4 @@
+g	uucp	14
+u	uucp	10	-	/	/bin/false
+u	fax	69	-	/	/bin/false
+m	fax	daemon



More information about the arch-commits mailing list