Date: Tuesday, March 25, 2014 @ 03:22:26 Author: thestinger Revision: 108220
archrelease: copy trunk to community-i686, community-x86_64 Added: pdnsd/repos/community-i686/PKGBUILD (from rev 108219, pdnsd/trunk/PKGBUILD) pdnsd/repos/community-i686/pdnsd.install (from rev 108219, pdnsd/trunk/pdnsd.install) pdnsd/repos/community-i686/service (from rev 108219, pdnsd/trunk/service) pdnsd/repos/community-x86_64/PKGBUILD (from rev 108219, pdnsd/trunk/PKGBUILD) pdnsd/repos/community-x86_64/pdnsd.install (from rev 108219, pdnsd/trunk/pdnsd.install) pdnsd/repos/community-x86_64/service (from rev 108219, pdnsd/trunk/service) Deleted: pdnsd/repos/community-i686/PKGBUILD pdnsd/repos/community-i686/service pdnsd/repos/community-x86_64/PKGBUILD pdnsd/repos/community-x86_64/service --------------------------------+ /PKGBUILD | 78 +++++++++++++++++++++++++++++++++++++++ /service | 18 +++++++++ community-i686/PKGBUILD | 29 -------------- community-i686/pdnsd.install | 22 +++++++++++ community-i686/service | 9 ---- community-x86_64/PKGBUILD | 29 -------------- community-x86_64/pdnsd.install | 22 +++++++++++ community-x86_64/service | 9 ---- 8 files changed, 140 insertions(+), 76 deletions(-) Deleted: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD 2014-03-25 02:20:56 UTC (rev 108219) +++ community-i686/PKGBUILD 2014-03-25 02:22:26 UTC (rev 108220) @@ -1,29 +0,0 @@ -# $Id$ -# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> -# Contributor: Henrik Nymann Jensen <h...@henriknj.dk> - -pkgname=pdnsd -pkgver=1.2.9.a -_pkgver=${pkgver/.a/a} -pkgrel=4 -pkgdesc="Proxy DNS server with permanent caching" -arch=(i686 x86_64) -url="http://members.home.nl/p.a.rombouts/pdnsd/" -license=('GPL') -depends=('glibc') -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 $srcdir/service $pkgdir/usr/lib/systemd/system/pdnsd.service -} Copied: pdnsd/repos/community-i686/PKGBUILD (from rev 108219, pdnsd/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2014-03-25 02:22:26 UTC (rev 108220) @@ -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=5 +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" +} Copied: pdnsd/repos/community-i686/pdnsd.install (from rev 108219, pdnsd/trunk/pdnsd.install) =================================================================== --- community-i686/pdnsd.install (rev 0) +++ community-i686/pdnsd.install 2014-03-25 02:22:26 UTC (rev 108220) @@ -0,0 +1,22 @@ +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 +} Deleted: community-i686/service =================================================================== --- community-i686/service 2014-03-25 02:20:56 UTC (rev 108219) +++ community-i686/service 2014-03-25 02:22:26 UTC (rev 108220) @@ -1,9 +0,0 @@ -[Unit] -Description=proxy name server -After=network.target - -[Service] -ExecStart=/usr/bin/pdnsd - -[Install] -WantedBy=multi-user.target Copied: pdnsd/repos/community-i686/service (from rev 108219, pdnsd/trunk/service) =================================================================== --- community-i686/service (rev 0) +++ community-i686/service 2014-03-25 02:22:26 UTC (rev 108220) @@ -0,0 +1,9 @@ +[Unit] +Description=proxy name server +After=network.target + +[Service] +ExecStart=/usr/bin/pdnsd + +[Install] +WantedBy=multi-user.target Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2014-03-25 02:20:56 UTC (rev 108219) +++ community-x86_64/PKGBUILD 2014-03-25 02:22:26 UTC (rev 108220) @@ -1,29 +0,0 @@ -# $Id$ -# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> -# Contributor: Henrik Nymann Jensen <h...@henriknj.dk> - -pkgname=pdnsd -pkgver=1.2.9.a -_pkgver=${pkgver/.a/a} -pkgrel=4 -pkgdesc="Proxy DNS server with permanent caching" -arch=(i686 x86_64) -url="http://members.home.nl/p.a.rombouts/pdnsd/" -license=('GPL') -depends=('glibc') -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 $srcdir/service $pkgdir/usr/lib/systemd/system/pdnsd.service -} Copied: pdnsd/repos/community-x86_64/PKGBUILD (from rev 108219, pdnsd/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2014-03-25 02:22:26 UTC (rev 108220) @@ -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=5 +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" +} Copied: pdnsd/repos/community-x86_64/pdnsd.install (from rev 108219, pdnsd/trunk/pdnsd.install) =================================================================== --- community-x86_64/pdnsd.install (rev 0) +++ community-x86_64/pdnsd.install 2014-03-25 02:22:26 UTC (rev 108220) @@ -0,0 +1,22 @@ +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 +} Deleted: community-x86_64/service =================================================================== --- community-x86_64/service 2014-03-25 02:20:56 UTC (rev 108219) +++ community-x86_64/service 2014-03-25 02:22:26 UTC (rev 108220) @@ -1,9 +0,0 @@ -[Unit] -Description=proxy name server -After=network.target - -[Service] -ExecStart=/usr/bin/pdnsd - -[Install] -WantedBy=multi-user.target Copied: pdnsd/repos/community-x86_64/service (from rev 108219, pdnsd/trunk/service) =================================================================== --- community-x86_64/service (rev 0) +++ community-x86_64/service 2014-03-25 02:22:26 UTC (rev 108220) @@ -0,0 +1,9 @@ +[Unit] +Description=proxy name server +After=network.target + +[Service] +ExecStart=/usr/bin/pdnsd + +[Install] +WantedBy=multi-user.target