summaryrefslogtreecommitdiff
path: root/community/pdnsd
diff options
context:
space:
mode:
Diffstat (limited to 'community/pdnsd')
-rw-r--r--community/pdnsd/PKGBUILD18
-rw-r--r--community/pdnsd/rc.d37
-rw-r--r--community/pdnsd/service2
3 files changed, 8 insertions, 49 deletions
diff --git a/community/pdnsd/PKGBUILD b/community/pdnsd/PKGBUILD
index 593894619..62579bfaf 100644
--- a/community/pdnsd/PKGBUILD
+++ b/community/pdnsd/PKGBUILD
@@ -1,33 +1,29 @@
-# $Id: PKGBUILD 75512 2012-08-26 18:24:09Z bpiotrowski $
+# $Id: PKGBUILD 91500 2013-05-23 10:14:34Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Henrik Nymann Jensen <h@henriknj.dk>
pkgname=pdnsd
pkgver=1.2.9.a
_pkgver=${pkgver/.a/a}
-pkgrel=1
+pkgrel=4
pkgdesc="Proxy DNS server with permanent caching"
arch=(i686 x86_64 mips64el)
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
- rc.d
- service)
+ service)
md5sums=('2f3e705d59a0f9308ad9504b24400769'
- '3670bd47c9303fbb655d9216715512de'
- 'fad5e518d126b29fc947941d57a0a494')
+ '4f86bdbd8495b53341070d5720491996')
build() {
- cd $srcdir/$pkgname-$_pkgver
- ./configure --prefix=/usr --sysconfdir=/etc
+ cd $srcdir/$pkgname-${_pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --enable-ipv6
make
}
package() {
- cd $srcdir/$pkgname-$_pkgver
+ cd $srcdir/$pkgname-${_pkgver}
make DESTDIR=$pkgdir install
-
- install -Dm0755 $srcdir/rc.d $pkgdir/etc/rc.d/pdnsd
install -Dm0644 $srcdir/service $pkgdir/usr/lib/systemd/system/pdnsd.service
}
diff --git a/community/pdnsd/rc.d b/community/pdnsd/rc.d
deleted file mode 100644
index 34a541d18..000000000
--- a/community/pdnsd/rc.d
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/sbin/pdnsd`
-case "$1" in
- start)
- stat_busy "Starting pdnsd Daemon"
- if [ -z "$PID" ]; then
- /usr/sbin/pdnsd -d
- fi
- if [ ! -z "$PID" -o $? -gt 0 ]; then
- stat_fail
- else
- add_daemon pdnsd
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping pdnsd Daemon"
- [ ! -z "$PID" ] && kill -TERM $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon pdnsd
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
diff --git a/community/pdnsd/service b/community/pdnsd/service
index 5821dbcb2..d284cd933 100644
--- a/community/pdnsd/service
+++ b/community/pdnsd/service
@@ -3,7 +3,7 @@ Description=proxy name server
After=network.target
[Service]
-ExecStart=/usr/sbin/pdnsd
+ExecStart=/usr/bin/pdnsd
[Install]
WantedBy=multi-user.target