summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-02-01 20:24:52 +0000
committerAlin Năstac <mrness@gentoo.org>2006-02-01 20:24:52 +0000
commit2583f4249052e2af1f16f5c2ba62de3a319fba3b (patch)
treed8cfb565f7b71314eeaca4afbf4d8842658adb16 /net-dns/pdnsd
parentAdded ~sparc keywords (fixes broken deps of pycrypto). (diff)
downloadhistorical-2583f4249052e2af1f16f5c2ba62de3a319fba3b.tar.gz
historical-2583f4249052e2af1f16f5c2ba62de3a319fba3b.tar.bz2
historical-2583f4249052e2af1f16f5c2ba62de3a319fba3b.zip
Version bump (#121201), with cleaned (R)DEPEND
Package-Manager: portage-2.0.54
Diffstat (limited to 'net-dns/pdnsd')
-rw-r--r--net-dns/pdnsd/ChangeLog10
-rw-r--r--net-dns/pdnsd/Manifest26
-rw-r--r--net-dns/pdnsd/files/digest-pdnsd-1.2.41
-rw-r--r--net-dns/pdnsd/pdnsd-1.2.4.ebuild127
4 files changed, 150 insertions, 14 deletions
diff --git a/net-dns/pdnsd/ChangeLog b/net-dns/pdnsd/ChangeLog
index 575e038f3741..64de2e095068 100644
--- a/net-dns/pdnsd/ChangeLog
+++ b/net-dns/pdnsd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-dns/pdnsd
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.48 2005/11/15 14:44:55 gustavoz Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.49 2006/02/01 20:24:52 mrness Exp $
+
+*pdnsd-1.2.4 (01 Feb 2006)
+
+ 01 Feb 2006; Alin Nastac <mrness@gentoo.org> +pdnsd-1.2.4.ebuild:
+ Version bump (#121201), with clean dependencies - all previous dependencies
+ are in the system class.
15 Nov 2005; Gustavo Zacarias <gustavoz@gentoo.org> pdnsd-1.2.3.ebuild:
Stable on sparc - selftests fail miserably so disable them
diff --git a/net-dns/pdnsd/Manifest b/net-dns/pdnsd/Manifest
index f1672fb661ca..28f8511b62df 100644
--- a/net-dns/pdnsd/Manifest
+++ b/net-dns/pdnsd/Manifest
@@ -1,21 +1,23 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 4fd3c7338d90d7fe69f47e743aed018e pdnsd-1.2.3.ebuild 4284
-MD5 ca9244827dd64c825a52bfea6a5c5c6c pdnsd-1.2.2.ebuild 4283
-MD5 45a79e5f7a6854ab6782a75e6f89296a pdnsd-1.1.10.ebuild 3270
-MD5 1327e80045d7fc20d0c5fcb344ff8f88 ChangeLog 7267
-MD5 4ddec129fff42063dc6b05493cd55a78 metadata.xml 264
-MD5 27071ebe71d4f810d57d7cfbd4099788 files/pdnsd.online 452
-MD5 65809ab9f525565a98ebe800edea45ab files/pdnsd.rc6 755
+MD5 51dd6b9f870310b14a5b0dee94d8e725 ChangeLog 7467
+MD5 104a9136d4e55e47186ebcc1511b9f93 files/digest-pdnsd-1.1.10 68
MD5 a8701579c070fdd7891f1bccaf63ae95 files/digest-pdnsd-1.2.2 67
MD5 841f98e9e42888ec6d3869f716017c5f files/digest-pdnsd-1.2.3 67
-MD5 104a9136d4e55e47186ebcc1511b9f93 files/digest-pdnsd-1.1.10 68
+MD5 21ca3184ba7f84328d7cfbe1c4fcb596 files/digest-pdnsd-1.2.4 67
MD5 2a7e9d9f54bd31a3675c491d0b6ee187 files/pdnsd.conf.test 377
+MD5 27071ebe71d4f810d57d7cfbd4099788 files/pdnsd.online 452
+MD5 65809ab9f525565a98ebe800edea45ab files/pdnsd.rc6 755
+MD5 4ddec129fff42063dc6b05493cd55a78 metadata.xml 264
+MD5 45a79e5f7a6854ab6782a75e6f89296a pdnsd-1.1.10.ebuild 3270
+MD5 ca9244827dd64c825a52bfea6a5c5c6c pdnsd-1.2.2.ebuild 4283
+MD5 4fd3c7338d90d7fe69f47e743aed018e pdnsd-1.2.3.ebuild 4284
+MD5 4f935c157ec97aba6e06dd9666807f9b pdnsd-1.2.4.ebuild 4137
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
+Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDefSKKRy60XGEcJIRAkeFAKCQ9X5dMb3+3Riwha3Ps7zB7p0h7wCfWJUb
-W8PT4lw0Fxdhz02tSTF3MzM=
-=h7sy
+iD8DBQFD4RkkjG8pv1lIUX4RApdtAJ0UbOjZCgtaQYVbBunLkpWPTvrfIQCgjIMA
+aLnufUwURvMXJWlcoOmLV94=
+=mUgy
-----END PGP SIGNATURE-----
diff --git a/net-dns/pdnsd/files/digest-pdnsd-1.2.4 b/net-dns/pdnsd/files/digest-pdnsd-1.2.4
new file mode 100644
index 000000000000..3a3c31db1186
--- /dev/null
+++ b/net-dns/pdnsd/files/digest-pdnsd-1.2.4
@@ -0,0 +1 @@
+MD5 aafb9d65d713b4bc2c6c4ba822e0bd3c pdnsd-1.2.4-par.tar.gz 537362
diff --git a/net-dns/pdnsd/pdnsd-1.2.4.ebuild b/net-dns/pdnsd/pdnsd-1.2.4.ebuild
new file mode 100644
index 000000000000..c98d6144346d
--- /dev/null
+++ b/net-dns/pdnsd/pdnsd-1.2.4.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.4.ebuild,v 1.1 2006/02/01 20:24:52 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="Proxy DNS server with permanent caching"
+HOMEPAGE="http://www.phys.uu.nl/%7Erombouts/pdnsd.html http://www.phys.uu.nl/~rombouts/pdnsd.html"
+SRC_URI="http://www.phys.uu.nl/%7Erombouts/pdnsd/releases/${P}-par.tar.gz"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~s390 ~sparc ~x86"
+IUSE="ipv6 debug isdn nptl"
+
+pkg_setup() {
+ enewgroup pdnsd
+ enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd
+}
+
+src_compile() {
+ cd ${S} || die
+ local myconf
+
+ if use debug; then
+ myconf="${myconf} --with-debug=3"
+ CFLAGS="${CFLAGS} -g"
+ fi
+ use nptl && myconf="${myconf} --with-thread-lib=NPTL"
+
+ [ -c /dev/urandom ] && myconf="${myconf} --with-random-device=/dev/urandom"
+
+ econf \
+ --sysconfdir=/etc/pdnsd \
+ --with-cachedir=/var/cache/pdnsd \
+ --infodir=/usr/share/info --mandir=/usr/share/man \
+ --with-default-id=pdnsd \
+ `use_enable ipv6` `use_enable isdn` \
+ ${myconf} \
+ || die "bad configure"
+
+ emake all || die "compile problem"
+}
+
+pkg_preinst() {
+ # Duplicated so that binary packages work
+ enewgroup pdnsd
+ enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd
+}
+
+
+src_test() {
+ if [ -x /usr/bin/dig ];
+ then
+ mkdir ${T}/pdnsd
+ echo -n -e "pd12\0\0\0\0" > ${T}/pdnsd/pdnsd.cache
+ IPS=$(grep ^nameserver ${ROOT}/etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs)
+ #IPS=$(grep ^nameserver ${ROOT}/etc/resolv.conf | sed -e 's/nameserver//g' | head -n 1)
+ 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"
+ find ${T} -ls
+
+ [ -s ${T}/pid ] || die "empty or no pid file created"
+ [ -S ${T}/pdnsd/pdnsd.status ] || die "no socket created"
+ src/pdnsd-ctl/pdnsd-ctl -c ${T}/pdnsd server all up || die "failed to communicate to daemon"
+ src/pdnsd-ctl/pdnsd-ctl -c ${T}/pdnsd status || die "failed to communicate to daemon"
+ sleep 3
+
+ dig @127.0.0.1 -p 33455 www.gentoo.org | fgrep "status: NOERROR" || die "www.gentoo.org lookup failed"
+ kill `cat ${T}/pid` || die "failed to terminate daemon"
+ fi
+}
+
+src_install() {
+
+ emake DESTDIR=${D} install || die
+
+ # Copy cache from prev older versions
+ [ -f ${ROOT}/var/lib/pdnsd/pdnsd.cache ] && \
+ cp ${ROOT}/var/lib/pdnsd/pdnsd.cache ${D}/var/cache/pdnsd/pdnsd.cache
+
+ # Don't clobber existing cache - copy prev cache so unmerging prev version
+ # doesn't remove the cache.
+ [ -f ${ROOT}/var/cache/pdnsd/pdnsd.cache ] && \
+ rm ${D}/var/cache/pdnsd/pdnsd.cache
+
+ dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par
+ docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl}
+ docinto html ; dohtml doc/html/*
+ docinto txt ; dodoc doc/txt/*
+ newdoc doc/pdnsd.conf pdnsd.conf.sample
+
+ # Remind users that the cachedir has moved to /var/cache
+ #[ -f ${ROOT}/etc/pdnsd/pdnsd.conf ] && \
+ # sed -e "s#/var/lib#/var/cache#g" ${ROOT}/etc/pdnsd/pdnsd.conf \
+ # > ${D}/etc/pdnsd/pdnsd.conf
+
+ newinitd ${FILESDIR}/pdnsd.rc6 pdnsd
+ newinitd ${FILESDIR}/pdnsd.online pdnsd-online
+
+
+ keepdir /etc/conf.d
+ local config=${D}/etc/conf.d/pdnsd-online
+
+ echo -e "# Enter the interface that connects you to the dns servers" >> ${config}
+ echo "# This will correspond to /etc/init.d/net.${IFACE}" >> ${config}
+ echo -e "\n# IMPORTANT: Be sure to run depscan.sh after modifiying IFACE" >> ${config}
+ echo "IFACE=ppp0" >> ${config}
+
+ config=${D}/etc/conf.d/pdnsd
+ ${D}/usr/sbin/pdnsd --help | sed "s/^/# /g" > ${config}
+ echo "# Command line options" >> ${config}
+ use ipv6 && echo PDNSDCONFIG="-a" >> ${config} \
+ || echo PDNSDCONFIG="" >> ${config}
+
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Add pdnsd to your default runlevel - rc-update add pdnsd default"
+ einfo ""
+ einfo "Add pdnsd-online to your online runlevel."
+ einfo "The online interface will be listed in /etc/conf.d/pdnsd-online"
+ einfo ""
+ einfo "Sample config file in /etc/pdnsd/pdnsd.conf.sample"
+}