summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-04-20 21:16:37 +0000
committerAlin Năstac <mrness@gentoo.org>2005-04-20 21:16:37 +0000
commit30723e231184696b5ad77249940619005d6e317a (patch)
treecef389a9239ed2b78ba389dfe259d0245a0d1287 /net-dns/pdnsd
parent6.13-r1 x86 stable. added version 6.14 that fixes Russian locale stuff (diff)
downloadgentoo-2-30723e231184696b5ad77249940619005d6e317a.tar.gz
gentoo-2-30723e231184696b5ad77249940619005d6e317a.tar.bz2
gentoo-2-30723e231184696b5ad77249940619005d6e317a.zip
version bump
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-dns/pdnsd')
-rw-r--r--net-dns/pdnsd/ChangeLog9
-rw-r--r--net-dns/pdnsd/Manifest14
-rw-r--r--net-dns/pdnsd/files/digest-pdnsd-1.2.21
-rw-r--r--net-dns/pdnsd/pdnsd-1.2.2.ebuild136
4 files changed, 152 insertions, 8 deletions
diff --git a/net-dns/pdnsd/ChangeLog b/net-dns/pdnsd/ChangeLog
index c066a22e6cfa..5d5d9ea1fbb3 100644
--- a/net-dns/pdnsd/ChangeLog
+++ b/net-dns/pdnsd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dns/pdnsd
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.38 2004/12/29 03:02:46 ciaranm Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.39 2005/04/20 21:16:37 mrness Exp $
+
+*pdnsd-1.2.2 (20 Apr 2005)
+
+ 20 Apr 2005; Alin Nastac <mrness@gentoo.org> +pdnsd-1.2.2.ebuild:
+ Version bump
29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
Change encoding to UTF-8 for GLEP 31 compliance
diff --git a/net-dns/pdnsd/Manifest b/net-dns/pdnsd/Manifest
index 052fc07d53da..b81fd2aba35e 100644
--- a/net-dns/pdnsd/Manifest
+++ b/net-dns/pdnsd/Manifest
@@ -1,13 +1,15 @@
MD5 00c3e13d8a417416b637f5f465bda7a0 pdnsd-1.2.1.ebuild 4331
+MD5 933b3e0cca06a5723c7310a5eb0a9641 pdnsd-1.1.11.ebuild 3391
+MD5 04e94e4dfaafbca385368f3b7eae4bd2 pdnsd-1.2.2.ebuild 4311
MD5 1317a5cbecb736fa131cf7ec9981f58e pdnsd-1.1.12_pre3.ebuild 4457
-MD5 54b861ee7d791ea18efb2ddcf036c0d8 ChangeLog 5859
MD5 4886d98d7108b643db0167c1d80b1422 pdnsd-1.1.10.ebuild 3331
-MD5 933b3e0cca06a5723c7310a5eb0a9641 pdnsd-1.1.11.ebuild 3391
+MD5 54b861ee7d791ea18efb2ddcf036c0d8 ChangeLog 5859
MD5 3f2d308116c7f37afe0a9a65df2f7e6f metadata.xml 436
-MD5 1baae3c9299a34f6e8bebe43ca5b8883 files/digest-pdnsd-1.1.11 68
+MD5 27071ebe71d4f810d57d7cfbd4099788 files/pdnsd.online 452
+MD5 65809ab9f525565a98ebe800edea45ab files/pdnsd.rc6 755
MD5 400ffe24414c1786c827401a335789f5 files/digest-pdnsd-1.2.1 67
+MD5 a8701579c070fdd7891f1bccaf63ae95 files/digest-pdnsd-1.2.2 67
MD5 147e8c75a789a5d99d888925128c5b4e files/digest-pdnsd-1.1.12_pre3 72
-MD5 2a7e9d9f54bd31a3675c491d0b6ee187 files/pdnsd.conf.test 377
MD5 104a9136d4e55e47186ebcc1511b9f93 files/digest-pdnsd-1.1.10 68
-MD5 65809ab9f525565a98ebe800edea45ab files/pdnsd.rc6 755
-MD5 27071ebe71d4f810d57d7cfbd4099788 files/pdnsd.online 452
+MD5 1baae3c9299a34f6e8bebe43ca5b8883 files/digest-pdnsd-1.1.11 68
+MD5 2a7e9d9f54bd31a3675c491d0b6ee187 files/pdnsd.conf.test 377
diff --git a/net-dns/pdnsd/files/digest-pdnsd-1.2.2 b/net-dns/pdnsd/files/digest-pdnsd-1.2.2
new file mode 100644
index 000000000000..703ca64073ce
--- /dev/null
+++ b/net-dns/pdnsd/files/digest-pdnsd-1.2.2
@@ -0,0 +1 @@
+MD5 b28232086131760c91aa4c49a877ef12 pdnsd-1.2.2-par.tar.gz 445494
diff --git a/net-dns/pdnsd/pdnsd-1.2.2.ebuild b/net-dns/pdnsd/pdnsd-1.2.2.ebuild
new file mode 100644
index 000000000000..bc22af3cc750
--- /dev/null
+++ b/net-dns/pdnsd/pdnsd-1.2.2.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.2.ebuild,v 1.1 2005/04/20 21:16:37 mrness Exp $
+
+inherit eutils
+
+DESCRIPTION="Proxy DNS server with permanent caching"
+HOMEPAGE="http://www.phys.uu.nl/%7Erombouts/pdnsd.html http://home.t-online.de/home/Moestl"
+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"
+
+DEPEND="virtual/libc
+ sys-apps/sed
+ sys-apps/gawk
+ sys-devel/libtool
+ sys-devel/gcc
+ sys-devel/automake
+ sys-devel/autoconf"
+RDEPEND="virtual/libc"
+
+pkg_setup() {
+ enewgroup pdnsd
+ enewuser pdnsd -1 /bin/false /var/lib/pdnsd pdnsd
+}
+
+src_compile() {
+ cd ${S} || die
+ local myconf
+
+ if useq debug; then
+ myconf="${myconf} --with-debug=3"
+ CFLAGS="${CFLAGS} -g"
+ fi
+ useq 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 /bin/false /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 COPYING* 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"
+}