Date: Wednesday, March 26, 2014 @ 12:09:31
  Author: thestinger
Revision: 108298

archrelease: copy trunk to community-i686, community-x86_64

Added:
  pdnsd/repos/community-i686/PKGBUILD
    (from rev 108297, pdnsd/trunk/PKGBUILD)
  pdnsd/repos/community-i686/pdnsd.install
    (from rev 108297, pdnsd/trunk/pdnsd.install)
  pdnsd/repos/community-i686/service
    (from rev 108297, pdnsd/trunk/service)
  pdnsd/repos/community-x86_64/PKGBUILD
    (from rev 108297, pdnsd/trunk/PKGBUILD)
  pdnsd/repos/community-x86_64/pdnsd.install
    (from rev 108297, pdnsd/trunk/pdnsd.install)
  pdnsd/repos/community-x86_64/service
    (from rev 108297, pdnsd/trunk/service)
Deleted:
  pdnsd/repos/community-i686/pdnsd.install
  pdnsd/repos/community-x86_64/pdnsd.install

--------------------------------+
 /pdnsd.install                 |   54 +++++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD        |   39 ++++++++++++++++++++++++++++
 community-i686/pdnsd.install   |   22 ---------------
 community-i686/service         |    9 ++++++
 community-x86_64/PKGBUILD      |   39 ++++++++++++++++++++++++++++
 community-x86_64/pdnsd.install |   22 ---------------
 community-x86_64/service       |    9 ++++++
 7 files changed, 150 insertions(+), 44 deletions(-)

Copied: pdnsd/repos/community-i686/PKGBUILD (from rev 108297, 
pdnsd/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD                             (rev 0)
+++ community-i686/PKGBUILD     2014-03-26 11:09:31 UTC (rev 108298)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Contributor: Daniel Micay <danielmi...@gmail.com>
+# Contributor: Henrik Nymann Jensen <h...@henriknj.dk>
+
+pkgname=pdnsd
+pkgver=1.2.9.a
+_pkgver=${pkgver/.a/a}
+pkgrel=6
+pkgdesc="Proxy DNS server with permanent caching"
+arch=(i686 x86_64)
+url="http://members.home.nl/p.a.rombouts/pdnsd/";
+license=('GPL')
+depends=('glibc')
+backup=(etc/pdnsd.conf)
+install=${pkgname}.install
+source=(http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-$_pkgver-par.tar.gz
+       service)
+md5sums=('2f3e705d59a0f9308ad9504b24400769'
+         '4f86bdbd8495b53341070d5720491996')
+
+build() {
+  cd "$srcdir/$pkgname-$_pkgver"
+  ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --enable-ipv6
+  make
+}
+
+package() {
+  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 184:184 "$pkgdir/var/cache/pdnsd"
+}

Deleted: community-i686/pdnsd.install
===================================================================
--- community-i686/pdnsd.install        2014-03-26 11:03:52 UTC (rev 108297)
+++ community-i686/pdnsd.install        2014-03-26 11:09:31 UTC (rev 108298)
@@ -1,22 +0,0 @@
-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
-  true
-}
-
-post_upgrade() {
-  if [[ $(vercmp $2 1.2.9.a-5) -le 0 ]]; then
-    # in case the user/group were already created as recommended by the wiki
-    userdel pdnsd &>/dev/null
-    groupdel pdnsd &>/dev/null
-
-    post_install
-    chown -R 184:184 /var/cache/pdnsd
-  fi
-}
-
-post_remove() {
-  getent passwd pdnsd &>/dev/null && userdel pdnsd >/dev/null
-  getent group pdnsd &>/dev/null && groupdel pdnsd >/dev/null
-  true
-}

Copied: pdnsd/repos/community-i686/pdnsd.install (from rev 108297, 
pdnsd/trunk/pdnsd.install)
===================================================================
--- community-i686/pdnsd.install                                (rev 0)
+++ community-i686/pdnsd.install        2014-03-26 11:09:31 UTC (rev 108298)
@@ -0,0 +1,27 @@
+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
+  true
+}
+
+post_upgrade() {
+  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
+
+    post_install
+    chown -R 184:184 /var/cache/pdnsd
+
+    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
+}

Copied: pdnsd/repos/community-i686/service (from rev 108297, 
pdnsd/trunk/service)
===================================================================
--- community-i686/service                              (rev 0)
+++ community-i686/service      2014-03-26 11:09:31 UTC (rev 108298)
@@ -0,0 +1,9 @@
+[Unit]
+Description=proxy name server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/pdnsd
+
+[Install]
+WantedBy=multi-user.target

Copied: pdnsd/repos/community-x86_64/PKGBUILD (from rev 108297, 
pdnsd/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2014-03-26 11:09:31 UTC (rev 108298)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Contributor: Daniel Micay <danielmi...@gmail.com>
+# Contributor: Henrik Nymann Jensen <h...@henriknj.dk>
+
+pkgname=pdnsd
+pkgver=1.2.9.a
+_pkgver=${pkgver/.a/a}
+pkgrel=6
+pkgdesc="Proxy DNS server with permanent caching"
+arch=(i686 x86_64)
+url="http://members.home.nl/p.a.rombouts/pdnsd/";
+license=('GPL')
+depends=('glibc')
+backup=(etc/pdnsd.conf)
+install=${pkgname}.install
+source=(http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-$_pkgver-par.tar.gz
+       service)
+md5sums=('2f3e705d59a0f9308ad9504b24400769'
+         '4f86bdbd8495b53341070d5720491996')
+
+build() {
+  cd "$srcdir/$pkgname-$_pkgver"
+  ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --enable-ipv6
+  make
+}
+
+package() {
+  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 184:184 "$pkgdir/var/cache/pdnsd"
+}

Deleted: community-x86_64/pdnsd.install
===================================================================
--- community-x86_64/pdnsd.install      2014-03-26 11:03:52 UTC (rev 108297)
+++ community-x86_64/pdnsd.install      2014-03-26 11:09:31 UTC (rev 108298)
@@ -1,22 +0,0 @@
-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
-  true
-}
-
-post_upgrade() {
-  if [[ $(vercmp $2 1.2.9.a-5) -le 0 ]]; then
-    # in case the user/group were already created as recommended by the wiki
-    userdel pdnsd &>/dev/null
-    groupdel pdnsd &>/dev/null
-
-    post_install
-    chown -R 184:184 /var/cache/pdnsd
-  fi
-}
-
-post_remove() {
-  getent passwd pdnsd &>/dev/null && userdel pdnsd >/dev/null
-  getent group pdnsd &>/dev/null && groupdel pdnsd >/dev/null
-  true
-}

Copied: pdnsd/repos/community-x86_64/pdnsd.install (from rev 108297, 
pdnsd/trunk/pdnsd.install)
===================================================================
--- community-x86_64/pdnsd.install                              (rev 0)
+++ community-x86_64/pdnsd.install      2014-03-26 11:09:31 UTC (rev 108298)
@@ -0,0 +1,27 @@
+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
+  true
+}
+
+post_upgrade() {
+  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
+
+    post_install
+    chown -R 184:184 /var/cache/pdnsd
+
+    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
+}

Copied: pdnsd/repos/community-x86_64/service (from rev 108297, 
pdnsd/trunk/service)
===================================================================
--- community-x86_64/service                            (rev 0)
+++ community-x86_64/service    2014-03-26 11:09:31 UTC (rev 108298)
@@ -0,0 +1,9 @@
+[Unit]
+Description=proxy name server
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/pdnsd
+
+[Install]
+WantedBy=multi-user.target

Reply via email to