From 0f27b066198c32926eb33a9781d8a5b1be306b8f Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Sat, 31 Dec 2011 21:22:49 +0000 Subject: Revbump. Don't use the deprecated $opts variable, bug 395631. Package-Manager: portage-2.1.10.41/cvs/Linux i686 RepoMan-Options: --force --- net-dns/pdnsd/ChangeLog | 10 ++- net-dns/pdnsd/Manifest | 18 ++---- net-dns/pdnsd/files/pdnsd.rc6.1 | 6 +- net-dns/pdnsd/pdnsd-1.2.8-r2.ebuild | 120 ------------------------------------ net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild | 119 +++++++++++++++++++++++++++++++++++ net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild | 120 ++++++++++++++++++++++++++++++++++++ net-dns/pdnsd/pdnsd-1.2.8.ebuild | 119 ----------------------------------- 7 files changed, 255 insertions(+), 257 deletions(-) delete mode 100644 net-dns/pdnsd/pdnsd-1.2.8-r2.ebuild create mode 100644 net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild create mode 100644 net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild delete mode 100644 net-dns/pdnsd/pdnsd-1.2.8.ebuild (limited to 'net-dns') diff --git a/net-dns/pdnsd/ChangeLog b/net-dns/pdnsd/ChangeLog index e19597b07e49..8f5ef7aeb21b 100644 --- a/net-dns/pdnsd/ChangeLog +++ b/net-dns/pdnsd/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-dns/pdnsd # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.106 2011/12/17 19:36:20 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.107 2011/12/31 21:22:49 idl0r Exp $ + +*pdnsd-1.2.8-r4 (31 Dec 2011) +*pdnsd-1.2.8-r3 (31 Dec 2011) + + 31 Dec 2011; Christian Ruppert -pdnsd-1.2.8.ebuild, + -pdnsd-1.2.8-r2.ebuild, +pdnsd-1.2.8-r3.ebuild, +pdnsd-1.2.8-r4.ebuild, + files/pdnsd.rc6.1: + Revbump. Don't use the deprecated $opts variable, bug 395631. 17 Dec 2011; Raúl Porcel pdnsd-1.2.8-r2.ebuild: alpha/ia64/s390/sparc stable wrt #393737 diff --git a/net-dns/pdnsd/Manifest b/net-dns/pdnsd/Manifest index d77d80c22314..03f798688371 100644 --- a/net-dns/pdnsd/Manifest +++ b/net-dns/pdnsd/Manifest @@ -1,20 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX pdnsd.conf.test 377 RMD160 fbf25b78728754fa1f9cf5259c43cce9cb22a995 SHA1 bd7fdc0d89873921d5284e8d6713e62a424de704 SHA256 8ef1e68c43cefde86598158d2b624cbdd66d2436d681cabbc6327d34d5886058 AUX pdnsd.online 733 RMD160 22a0107d1521c4f0934c14f9c617a7e0878da5a3 SHA1 94398b67952142548557394fe64d82dc85fafaff SHA256 48479251841f348848c497cdf7e61134da69001d7c611756368746122fc95b7d AUX pdnsd.online.1 669 RMD160 9567c8eadc9916956a130dc601394fd7a1fdbb53 SHA1 830bed0a1a513094d50714ad2ec7075dd8be7ab5 SHA256 b4bc97c47bcda1713c98d4cf8de583d4dbb26ec7b9c064252d15e493977af09b -AUX pdnsd.rc6.1 942 RMD160 eaf58c47f1b6183dea8466ef1a05f9afbefd4404 SHA1 fcc8392195e0ee20a6f180ca4e6c5fbc413580b8 SHA256 9508b0dd6adbbe1bf5afc5af037d5fa9bd2ee0ab9748892fdf4ed6f12739d2fa +AUX pdnsd.rc6.1 956 RMD160 2a056834fb82501edd0f066b8b1ecb8f30e09550 SHA1 3a31a49482dec9b753523702403346bad6211d1c SHA256 75e0327c6f91f36388a9184f640a80a2671142edc54bceb9f3312f2ad8052fcd AUX pdnsd.resolvconf-r1 17538 RMD160 a79ab764cd96a7203165771d50b14f4bf3907141 SHA1 3afbba4b8eb5fad1e1268dab85cc1fc04b1258b2 SHA256 40bdcc876ba8bb86069d52f8023fed468974004f47c235c202ca7eac88aa0fe3 DIST pdnsd-1.2.8-par.tar.gz 471303 RMD160 227a550ba210c2454b3cc39e8d8d056960d49b9f SHA1 538849975f29c59b1e7f0dd0756435cc6f0f2b30 SHA256 5f3cade09e445f034430863ba65047a4ab2f581b86f3eab0d0981646e7ec244e -EBUILD pdnsd-1.2.8-r2.ebuild 3775 RMD160 a345cc2e37a9a5cd9577cb19f2c76fa464f9c7ce SHA1 d8ac2586287e5cbc86e26ce725ebcef60450e052 SHA256 f4ea30236913f4b8cbfae3d8ff90eb0988b4d4bd75932ab379208f287cf6648d -EBUILD pdnsd-1.2.8.ebuild 3729 RMD160 afdb5d582c44f73d1cec4d5224ba66230b249ea8 SHA1 2c90593c445a17e3183709d59418a9a051fdd543 SHA256 e151c197e484decd0eec85b005d78d08def4070d08b441cfb684bd9471941461 -MISC ChangeLog 16306 RMD160 a57a3faa7dda6401c7bb558c0b26f2d2c541cdec SHA1 dfa71dea9db38c2ac56159de27981b6dd63d8d2d SHA256 baefd68b687692a91932e81f351de758a57e3bdebe690616a5176fd3b979a873 +EBUILD pdnsd-1.2.8-r3.ebuild 3731 RMD160 c4881bba9a727af226e9f598e0cc79419d4a9c53 SHA1 1b7d0c5915ba8ca5734b933f859075775f57eead SHA256 14b136f84baf984bc1a1a35f2a8d9bf57a83f084301a1c15a18a0e9a16b939a9 +EBUILD pdnsd-1.2.8-r4.ebuild 3773 RMD160 e6c615bf3237461617a1f366a0072a4a5db59163 SHA1 1407d136be6c1514401129bd00507cbfdcecd474 SHA256 091ad8cf167ce05db16a4cf9187fa52625362603525d694b5f512251f380c1b9 +MISC ChangeLog 16598 RMD160 84281135d1cb2368d9cbacc55e46874348ebe656 SHA1 6152b80a426a546675252499e0797b169e72b71b SHA256 a63e304a1f416b35a47e0422f4c7743cbc9dbf2d869390fb09141cb70c71f46c MISC metadata.xml 720 RMD160 eceaf9d42ec6244cc14d5c6e7d69385f9d6f4b2e SHA1 c87200f001115975247d7d1976222ab37037b6e7 SHA256 0d162429a7a31a51f09f460c7c6e6a311c7f0d920495594deb7bfc986fe6224d ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.17 (GNU/Linux) - -iEYEARECAAYFAk7s7zsACgkQuQc30/atMkB1vQCgmu6whWTRm05yroBKYNU/3pdP -jO0An138XeNDPW4fUx3ovTpjV0oBPqR5 -=2oIJ ------END PGP SIGNATURE----- diff --git a/net-dns/pdnsd/files/pdnsd.rc6.1 b/net-dns/pdnsd/files/pdnsd.rc6.1 index 1c53664182e6..b9dda2688391 100644 --- a/net-dns/pdnsd/files/pdnsd.rc6.1 +++ b/net-dns/pdnsd/files/pdnsd.rc6.1 @@ -1,9 +1,9 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.rc6.1,v 1.1 2010/03/09 15:39:08 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/files/pdnsd.rc6.1,v 1.2 2011/12/31 21:22:49 idl0r Exp $ -opts="reload" +extra_started_commands="reload" depend() { need net diff --git a/net-dns/pdnsd/pdnsd-1.2.8-r2.ebuild b/net-dns/pdnsd/pdnsd-1.2.8-r2.ebuild deleted file mode 100644 index 877c32f8147b..000000000000 --- a/net-dns/pdnsd/pdnsd-1.2.8-r2.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8-r2.ebuild,v 1.5 2011/12/17 19:36:20 armin76 Exp $ - -EAPI="2" - -inherit eutils - -DESCRIPTION="Proxy DNS server with permanent caching" -HOMEPAGE="http://www.phys.uu.nl/~rombouts/pdnsd.html" -SRC_URI="http://www.phys.uu.nl/~rombouts/pdnsd/releases/${P}-par.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="alpha amd64 arm ia64 ~ppc s390 sparc x86" -IUSE="debug ipv6 isdn +urandom test" - -RDEPEND="sys-apps/openrc" -DEPEND="test? ( net-dns/bind-tools )" - -pkg_setup() { - enewgroup pdnsd - enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd -} - -src_configure() { - local myconf="" - use debug && myconf="${myconf} --with-debug=3" - use urandom && myconf="${myconf} --with-random-device=/dev/urandom" - - econf \ - --disable-dependency-tracking \ - --sysconfdir=/etc/pdnsd \ - --with-cachedir=/var/cache/pdnsd \ - --with-default-id=pdnsd \ - $(use_enable ipv6) $(use_enable ipv6 ipv6-startup) \ - $(use_enable isdn) \ - ${myconf} \ - || die "bad configure" -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - - dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par || die - docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} || die - docinto html ; dohtml doc/html/* || die - docinto txt ; dodoc doc/txt/* || die - newdoc doc/pdnsd.conf pdnsd.conf.sample || die - - newinitd "${FILESDIR}/pdnsd.rc6.1" pdnsd || die - newinitd "${FILESDIR}/pdnsd.online.1" pdnsd-online || die - - mkdir "${T}"/confd - - cat - > "${T}"/confd/pdnsd-online < "${T}"/confd/pdnsd < "${T}/pdnsd/pdnsd.cache" - IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs) - sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \ - > "${T}/pdnsd.conf.test" - src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon" - sleep 3 - - find "${T}" -ls - [ -s "${T}/pid" ] || die "empty or no pid file created" - [ -S "${T}/pdnsd/pdnsd.status" ] || fail_kill "no socket created" - src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || fail_kill "failed to start the daemon" - src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || fail_kill "failed to communicate with the daemon" - sleep 3 - - dig @127.0.0.1 -p 33455 localhost > "${T}"/dig.output 2>&1 - cat "${T}"/dig.output - fgrep -q "status: NOERROR" "${T}"/dig.output || fail_kill "www.gentoo.org lookup failed" - - kill $(<"${T}/pid") || fail_kill "failed to terminate daemon" -} - -pkg_postinst() { - elog - elog "Add pdnsd to your default runlevel - rc-update add pdnsd default" - elog "" - elog "Add pdnsd-online to your online runlevel." - elog "The online interface will be listed in /etc/conf.d/pdnsd-online" - elog "" - elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample" -} diff --git a/net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild b/net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild new file mode 100644 index 000000000000..928f0540d296 --- /dev/null +++ b/net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild,v 1.1 2011/12/31 21:22:49 idl0r Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Proxy DNS server with permanent caching" +HOMEPAGE="http://www.phys.uu.nl/~rombouts/pdnsd.html" +SRC_URI="http://www.phys.uu.nl/~rombouts/pdnsd/releases/${P}-par.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm ~ia64 ppc s390 sparc x86" +IUSE="debug ipv6 isdn +urandom test" + +RDEPEND="" +DEPEND="test? ( net-dns/bind-tools )" + +pkg_setup() { + enewgroup pdnsd + enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd +} + +src_configure() { + local myconf="" + use debug && myconf="${myconf} --with-debug=3" + use urandom && myconf="${myconf} --with-random-device=/dev/urandom" + + econf \ + --disable-dependency-tracking \ + --sysconfdir=/etc/pdnsd \ + --with-cachedir=/var/cache/pdnsd \ + --with-default-id=pdnsd \ + $(use_enable ipv6) $(use_enable ipv6 ipv6-startup) \ + $(use_enable isdn) \ + ${myconf} \ + || die "bad configure" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par || die + docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} || die + docinto html ; dohtml doc/html/* || die + docinto txt ; dodoc doc/txt/* || die + newdoc doc/pdnsd.conf pdnsd.conf.sample || die + + newinitd "${FILESDIR}/pdnsd.rc6.1" pdnsd || die + newinitd "${FILESDIR}/pdnsd.online" pdnsd-online || die + + mkdir "${T}"/confd + + cat - > "${T}"/confd/pdnsd-online < "${T}"/confd/pdnsd < "${T}/pdnsd/pdnsd.cache" + IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs) + sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \ + > "${T}/pdnsd.conf.test" + src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon" + sleep 3 + + find "${T}" -ls + [ -s "${T}/pid" ] || die "empty or no pid file created" + [ -S "${T}/pdnsd/pdnsd.status" ] || fail_kill "no socket created" + src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || fail_kill "failed to start the daemon" + src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || fail_kill "failed to communicate with the daemon" + sleep 3 + + dig @127.0.0.1 -p 33455 localhost > "${T}"/dig.output 2>&1 + cat "${T}"/dig.output + fgrep -q "status: NOERROR" "${T}"/dig.output || fail_kill "www.gentoo.org lookup failed" + + kill $(<"${T}/pid") || fail_kill "failed to terminate daemon" +} + +pkg_postinst() { + elog + elog "Add pdnsd to your default runlevel - rc-update add pdnsd default" + elog "" + elog "Add pdnsd-online to your online runlevel." + elog "The online interface will be listed in /etc/conf.d/pdnsd-online" + elog "" + elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample" +} diff --git a/net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild b/net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild new file mode 100644 index 000000000000..a6cb33e620a5 --- /dev/null +++ b/net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild,v 1.1 2011/12/31 21:22:49 idl0r Exp $ + +EAPI="2" + +inherit eutils + +DESCRIPTION="Proxy DNS server with permanent caching" +HOMEPAGE="http://www.phys.uu.nl/~rombouts/pdnsd.html" +SRC_URI="http://www.phys.uu.nl/~rombouts/pdnsd/releases/${P}-par.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="alpha amd64 arm ia64 ~ppc s390 sparc x86" +IUSE="debug ipv6 isdn +urandom test" + +RDEPEND="sys-apps/openrc" +DEPEND="test? ( net-dns/bind-tools )" + +pkg_setup() { + enewgroup pdnsd + enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd +} + +src_configure() { + local myconf="" + use debug && myconf="${myconf} --with-debug=3" + use urandom && myconf="${myconf} --with-random-device=/dev/urandom" + + econf \ + --disable-dependency-tracking \ + --sysconfdir=/etc/pdnsd \ + --with-cachedir=/var/cache/pdnsd \ + --with-default-id=pdnsd \ + $(use_enable ipv6) $(use_enable ipv6 ipv6-startup) \ + $(use_enable isdn) \ + ${myconf} \ + || die "bad configure" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par || die + docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} || die + docinto html ; dohtml doc/html/* || die + docinto txt ; dodoc doc/txt/* || die + newdoc doc/pdnsd.conf pdnsd.conf.sample || die + + newinitd "${FILESDIR}/pdnsd.rc6.1" pdnsd || die + newinitd "${FILESDIR}/pdnsd.online.1" pdnsd-online || die + + mkdir "${T}"/confd + + cat - > "${T}"/confd/pdnsd-online < "${T}"/confd/pdnsd < "${T}/pdnsd/pdnsd.cache" + IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs) + sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \ + > "${T}/pdnsd.conf.test" + src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon" + sleep 3 + + find "${T}" -ls + [ -s "${T}/pid" ] || die "empty or no pid file created" + [ -S "${T}/pdnsd/pdnsd.status" ] || fail_kill "no socket created" + src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || fail_kill "failed to start the daemon" + src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || fail_kill "failed to communicate with the daemon" + sleep 3 + + dig @127.0.0.1 -p 33455 localhost > "${T}"/dig.output 2>&1 + cat "${T}"/dig.output + fgrep -q "status: NOERROR" "${T}"/dig.output || fail_kill "www.gentoo.org lookup failed" + + kill $(<"${T}/pid") || fail_kill "failed to terminate daemon" +} + +pkg_postinst() { + elog + elog "Add pdnsd to your default runlevel - rc-update add pdnsd default" + elog "" + elog "Add pdnsd-online to your online runlevel." + elog "The online interface will be listed in /etc/conf.d/pdnsd-online" + elog "" + elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample" +} diff --git a/net-dns/pdnsd/pdnsd-1.2.8.ebuild b/net-dns/pdnsd/pdnsd-1.2.8.ebuild deleted file mode 100644 index e2728ec5b5fc..000000000000 --- a/net-dns/pdnsd/pdnsd-1.2.8.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8.ebuild,v 1.7 2010/10/14 16:59:24 ranger Exp $ - -EAPI="2" - -inherit eutils - -DESCRIPTION="Proxy DNS server with permanent caching" -HOMEPAGE="http://www.phys.uu.nl/~rombouts/pdnsd.html" -SRC_URI="http://www.phys.uu.nl/~rombouts/pdnsd/releases/${P}-par.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="alpha amd64 arm ~ia64 ppc s390 sparc x86" -IUSE="debug ipv6 isdn +urandom test" - -RDEPEND="" -DEPEND="test? ( net-dns/bind-tools )" - -pkg_setup() { - enewgroup pdnsd - enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd -} - -src_configure() { - local myconf="" - use debug && myconf="${myconf} --with-debug=3" - use urandom && myconf="${myconf} --with-random-device=/dev/urandom" - - econf \ - --disable-dependency-tracking \ - --sysconfdir=/etc/pdnsd \ - --with-cachedir=/var/cache/pdnsd \ - --with-default-id=pdnsd \ - $(use_enable ipv6) $(use_enable ipv6 ipv6-startup) \ - $(use_enable isdn) \ - ${myconf} \ - || die "bad configure" -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - - dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par || die - docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} || die - docinto html ; dohtml doc/html/* || die - docinto txt ; dodoc doc/txt/* || die - newdoc doc/pdnsd.conf pdnsd.conf.sample || die - - newinitd "${FILESDIR}/pdnsd.rc6.1" pdnsd || die - newinitd "${FILESDIR}/pdnsd.online" pdnsd-online || die - - mkdir "${T}"/confd - - cat - > "${T}"/confd/pdnsd-online < "${T}"/confd/pdnsd < "${T}/pdnsd/pdnsd.cache" - IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs) - sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \ - > "${T}/pdnsd.conf.test" - src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon" - sleep 3 - - find "${T}" -ls - [ -s "${T}/pid" ] || die "empty or no pid file created" - [ -S "${T}/pdnsd/pdnsd.status" ] || fail_kill "no socket created" - src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || fail_kill "failed to start the daemon" - src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || fail_kill "failed to communicate with the daemon" - sleep 3 - - dig @127.0.0.1 -p 33455 localhost > "${T}"/dig.output 2>&1 - cat "${T}"/dig.output - fgrep -q "status: NOERROR" "${T}"/dig.output || fail_kill "www.gentoo.org lookup failed" - - kill $(<"${T}/pid") || fail_kill "failed to terminate daemon" -} - -pkg_postinst() { - elog - elog "Add pdnsd to your default runlevel - rc-update add pdnsd default" - elog "" - elog "Add pdnsd-online to your online runlevel." - elog "The online interface will be listed in /etc/conf.d/pdnsd-online" - elog "" - elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample" -} -- cgit v1.2.3-65-gdbad