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

Sergej Pupykin spupykin at archlinux.org
Tue Feb 10 17:18:48 UTC 2015


    Date: Tuesday, February 10, 2015 @ 18:18:48
  Author: spupykin
Revision: 127513

upgpkg: pdnsd 1.2.9.a-8

upd

Modified:
  pdnsd/trunk/PKGBUILD
  pdnsd/trunk/pdnsd.install

---------------+
 PKGBUILD      |    5 +----
 pdnsd.install |   10 ++--------
 2 files changed, 3 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-10 17:18:44 UTC (rev 127512)
+++ PKGBUILD	2015-02-10 17:18:48 UTC (rev 127513)
@@ -6,7 +6,7 @@
 pkgname=pdnsd
 pkgver=1.2.9.a
 _pkgver=${pkgver/.a/a}
-pkgrel=7
+pkgrel=8
 pkgdesc="Proxy DNS server with permanent caching"
 arch=(i686 x86_64)
 url="http://members.home.nl/p.a.rombouts/pdnsd/"
@@ -29,11 +29,8 @@
   cd "$srcdir/$pkgname-$_pkgver"
   make DESTDIR="$pkgdir" install
   install -Dm0644 ../service "$pkgdir/usr/lib/systemd/system/pdnsd.service"
-
   # Rename the configuration file, so users get pacnew files.
   mv "$pkgdir/etc/pdnsd.conf.sample" "$pkgdir/etc/pdnsd.conf"
-
   sed -i 's/"nobody"/"pdnsd"/' "$pkgdir/etc/pdnsd.conf"
-
   chown -R 184:184 "$pkgdir/var/cache/pdnsd"
 }

Modified: pdnsd.install
===================================================================
--- pdnsd.install	2015-02-10 17:18:44 UTC (rev 127512)
+++ pdnsd.install	2015-02-10 17:18:48 UTC (rev 127513)
@@ -1,6 +1,6 @@
 post_install() {
-  getent group pdnsd &>/dev/null || groupadd -g 184 pdnsd >/dev/null
-  getent passwd pdnsd &>/dev/null || useradd -u 184 -g pdnsd -d /var/cache/pdnsd -c 'Proxy DNS server' -s /bin/nologin pdnsd >/dev/null
+  getent group pdnsd &>/dev/null || groupadd -r -g 184 pdnsd >/dev/null
+  getent passwd pdnsd &>/dev/null || useradd -r -u 184 -g pdnsd -d /var/cache/pdnsd -c 'Proxy DNS server' -s /bin/nologin pdnsd >/dev/null
   true
 }
 
@@ -19,9 +19,3 @@
     echo You may now restart the pdnsd service.
   fi
 }
-
-post_remove() {
-  getent passwd pdnsd &>/dev/null && userdel pdnsd >/dev/null
-  getent group pdnsd &>/dev/null && groupdel pdnsd >/dev/null
-  true
-}



More information about the arch-commits mailing list