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

Daniel Micay thestinger at nymeria.archlinux.org
Wed Mar 26 11:03:08 UTC 2014


    Date: Wednesday, March 26, 2014 @ 12:03:08
  Author: thestinger
Revision: 108296

upgpkg: pdnsd 1.2.9.a-6

The service needs to be stopped in order to delete the old user/group. The home
directory was also specified incorrectly.

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

---------------+
 PKGBUILD      |    2 +-
 pdnsd.install |    9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-26 11:03:04 UTC (rev 108295)
+++ PKGBUILD	2014-03-26 11:03:08 UTC (rev 108296)
@@ -6,7 +6,7 @@
 pkgname=pdnsd
 pkgver=1.2.9.a
 _pkgver=${pkgver/.a/a}
-pkgrel=5
+pkgrel=6
 pkgdesc="Proxy DNS server with permanent caching"
 arch=(i686 x86_64)
 url="http://members.home.nl/p.a.rombouts/pdnsd/"

Modified: pdnsd.install
===================================================================
--- pdnsd.install	2014-03-26 11:03:04 UTC (rev 108295)
+++ pdnsd.install	2014-03-26 11:03:08 UTC (rev 108296)
@@ -1,11 +1,14 @@
 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/lib/pdnsd -c 'Proxy DNS server' -s /bin/nologin 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
   true
 }
 
 post_upgrade() {
-  if [[ $(vercmp $2 1.2.9.a-5) -le 0 ]]; then
+  if [[ $(vercmp $2 1.2.9.a-6) -le 0 ]]; then
+    echo Stopping pdnsd service in order to modify the user/group.
+    systemctl stop pdnsd
+
     # in case the user/group were already created as recommended by the wiki
     userdel pdnsd &>/dev/null
     groupdel pdnsd &>/dev/null
@@ -12,6 +15,8 @@
 
     post_install
     chown -R 184:184 /var/cache/pdnsd
+
+    echo You may now restart the pdnsd service.
   fi
 }
 




More information about the arch-commits mailing list