summaryrefslogtreecommitdiff
path: root/community-staging/pdnsd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-11 00:02:18 +0000
committerroot <root@rshg054.dnsready.net>2012-06-11 00:02:18 +0000
commit4714cec7e8367a7618b168d0db4bc085dbfaac8a (patch)
treeb1f3049ee78988b0db6ec69637a1ee37c8b63b3f /community-staging/pdnsd
parent7b2739f21a7ed0d52497fa381c9a2383e71ab7a8 (diff)
Mon Jun 11 00:02:18 UTC 2012
Diffstat (limited to 'community-staging/pdnsd')
-rw-r--r--community-staging/pdnsd/PKGBUILD28
-rw-r--r--community-staging/pdnsd/pdnsd37
-rw-r--r--community-staging/pdnsd/pdnsd.service9
3 files changed, 74 insertions, 0 deletions
diff --git a/community-staging/pdnsd/PKGBUILD b/community-staging/pdnsd/PKGBUILD
new file mode 100644
index 000000000..6a6526d54
--- /dev/null
+++ b/community-staging/pdnsd/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id: PKGBUILD 72152 2012-06-09 06:03:43Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Henrik Nymann Jensen <h@henriknj.dk>
+
+pkgname=pdnsd
+pkgver=1.2.9
+pkgrel=2
+pkgdesc="Is a 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')
+source=(http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-$pkgver-par.tar.gz
+ pdnsd
+ pdnsd.service)
+md5sums=('037f79d191b98974ffc2c9649727bf66'
+ '3670bd47c9303fbb655d9216715512de'
+ 'fad5e518d126b29fc947941d57a0a494')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+ make DESTDIR=$pkgdir install
+ install -Dm0755 $srcdir/pdnsd $pkgdir/etc/rc.d/pdnsd
+ install -Dm0644 $srcdir/pdnsd.service $pkgdir/usr/lib/systemd/system/pdnsd.service
+}
diff --git a/community-staging/pdnsd/pdnsd b/community-staging/pdnsd/pdnsd
new file mode 100644
index 000000000..34a541d18
--- /dev/null
+++ b/community-staging/pdnsd/pdnsd
@@ -0,0 +1,37 @@
+#!/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-staging/pdnsd/pdnsd.service b/community-staging/pdnsd/pdnsd.service
new file mode 100644
index 000000000..5821dbcb2
--- /dev/null
+++ b/community-staging/pdnsd/pdnsd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=proxy name server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/pdnsd
+
+[Install]
+WantedBy=multi-user.target