diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-08-28 11:13:32 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-08-28 11:13:32 +0200 |
commit | 0cc6a0720f9505aaacfc247fa646d3e888f8e4aa (patch) | |
tree | 65312a00db8134471b6b4d8f32c36cf479effdbe /community/pdnsd | |
parent | 0c5c6934b681707ec1a459da4318aabd7f9b796f (diff) | |
parent | 559da5e6e5aff9ccc57e29b6a91c35a528424b6c (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community-staging/widelands/PKGBUILD
community/bird/PKGBUILD
community/hwinfo/PKGBUILD
community/pdnsd/PKGBUILD
community/spectrwm/PKGBUILD
community/xmlrpc-c/PKGBUILD
core/wireless_tools/PKGBUILD
extra/proftpd/PKGBUILD
libre/grub/PKGBUILD
multilib-testing/lib32-libdrm/PKGBUILD
multilib-testing/lib32-libdrm/no-pthread-stubs.patch
multilib/lib32-gdk-pixbuf2/PKGBUILD
testing/pkg-config/PKGBUILD
testing/systemd/PKGBUILD
testing/systemd/systemd.install
Diffstat (limited to 'community/pdnsd')
-rw-r--r-- | community/pdnsd/PKGBUILD | 35 | ||||
-rw-r--r-- | community/pdnsd/rc.d | 37 | ||||
-rw-r--r-- | community/pdnsd/service | 9 |
3 files changed, 66 insertions, 15 deletions
diff --git a/community/pdnsd/PKGBUILD b/community/pdnsd/PKGBUILD index a8c7f9572..593894619 100644 --- a/community/pdnsd/PKGBUILD +++ b/community/pdnsd/PKGBUILD @@ -1,28 +1,33 @@ -# $Id: PKGBUILD 72793 2012-06-22 12:51:32Z dreisner $ +# $Id: PKGBUILD 75512 2012-08-26 18:24:09Z bpiotrowski $ # 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" +pkgver=1.2.9.a +_pkgver=${pkgver/.a/a} +pkgrel=1 +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') -#backup=('etc/pdnsd.conf') -source=(http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-$pkgver-par.tar.gz - pdnsd - pdnsd.service) -md5sums=('037f79d191b98974ffc2c9649727bf66' +source=(http://members.home.nl/p.a.rombouts/pdnsd/releases/pdnsd-$_pkgver-par.tar.gz + rc.d + service) +md5sums=('2f3e705d59a0f9308ad9504b24400769' '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 + cd $srcdir/$pkgname-$_pkgver + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package() { + 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 new file mode 100644 index 000000000..34a541d18 --- /dev/null +++ b/community/pdnsd/rc.d @@ -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/pdnsd/service b/community/pdnsd/service new file mode 100644 index 000000000..5821dbcb2 --- /dev/null +++ b/community/pdnsd/service @@ -0,0 +1,9 @@ +[Unit] +Description=proxy name server +After=network.target + +[Service] +ExecStart=/usr/sbin/pdnsd + +[Install] +WantedBy=multi-user.target |