From 4714cec7e8367a7618b168d0db4bc085dbfaac8a Mon Sep 17 00:00:00 2001 From: root Date: Mon, 11 Jun 2012 00:02:18 +0000 Subject: Mon Jun 11 00:02:18 UTC 2012 --- community-staging/pdnsd/PKGBUILD | 28 ++++++++++++++++++++++++++ community-staging/pdnsd/pdnsd | 37 +++++++++++++++++++++++++++++++++++ community-staging/pdnsd/pdnsd.service | 9 +++++++++ 3 files changed, 74 insertions(+) create mode 100644 community-staging/pdnsd/PKGBUILD create mode 100644 community-staging/pdnsd/pdnsd create mode 100644 community-staging/pdnsd/pdnsd.service (limited to 'community-staging/pdnsd') 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 +# Contributor: Henrik Nymann Jensen + +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 -- cgit v1.2.3-54-g00ecf