1 |
mrness 08/09/07 10:12:20 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pdnsd-1.2.7.ebuild |
5 |
Log: |
6 |
Version bump wrt security bug 231285. |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.84 net-dns/pdnsd/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdnsd/ChangeLog?rev=1.84&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdnsd/ChangeLog?rev=1.84&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdnsd/ChangeLog?r1=1.83&r2=1.84 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v |
19 |
retrieving revision 1.83 |
20 |
retrieving revision 1.84 |
21 |
diff -u -r1.83 -r1.84 |
22 |
--- ChangeLog 22 Aug 2008 21:49:27 -0000 1.83 |
23 |
+++ ChangeLog 7 Sep 2008 10:12:19 -0000 1.84 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-dns/pdnsd |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.83 2008/08/22 21:49:27 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.84 2008/09/07 10:12:19 mrness Exp $ |
29 |
+ |
30 |
+*pdnsd-1.2.7 (07 Sep 2008) |
31 |
+ |
32 |
+ 07 Sep 2008; Alin Năstac <mrness@g.o> +pdnsd-1.2.7.ebuild: |
33 |
+ Version bump wrt security bug 231285. |
34 |
|
35 |
22 Aug 2008; Markus Meier <maekke@g.o> pdnsd-1.2.6-r1.ebuild: |
36 |
amd64 stable, bug #231321 |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-dns/pdnsd/pdnsd-1.2.7.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.7.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.7.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: pdnsd-1.2.7.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.7.ebuild,v 1.1 2008/09/07 10:12:19 mrness Exp $ |
50 |
|
51 |
inherit eutils |
52 |
|
53 |
DESCRIPTION="Proxy DNS server with permanent caching" |
54 |
HOMEPAGE="http://www.phys.uu.nl/~rombouts/pdnsd.html" |
55 |
SRC_URI="http://www.phys.uu.nl/~rombouts/pdnsd/releases/${P}-par.tar.gz" |
56 |
|
57 |
LICENSE="GPL-3" |
58 |
SLOT="0" |
59 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~s390 ~sparc ~x86" |
60 |
IUSE="debug ipv6 isdn nptl underscores urandom" |
61 |
|
62 |
pkg_setup() { |
63 |
enewgroup pdnsd |
64 |
enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd |
65 |
} |
66 |
|
67 |
src_compile() { |
68 |
local myconf="" |
69 |
use debug && myconf="${myconf} --with-debug=3" |
70 |
use nptl && myconf="${myconf} --with-thread-lib=NPTL" |
71 |
use urandom && myconf="${myconf} --with-random-device=/dev/urandom" |
72 |
|
73 |
econf \ |
74 |
--sysconfdir=/etc/pdnsd \ |
75 |
--with-cachedir=/var/cache/pdnsd \ |
76 |
--with-default-id=pdnsd \ |
77 |
$(use_enable ipv6) \ |
78 |
$(use_enable isdn) \ |
79 |
$(use_enable underscores) \ |
80 |
${myconf} \ |
81 |
|| die "bad configure" |
82 |
|
83 |
emake all || die "compile problem" |
84 |
} |
85 |
|
86 |
src_install() { |
87 |
emake DESTDIR="${D}" install || die "make install failed" |
88 |
|
89 |
dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par |
90 |
docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} |
91 |
docinto html ; dohtml doc/html/* |
92 |
docinto txt ; dodoc doc/txt/* |
93 |
newdoc doc/pdnsd.conf pdnsd.conf.sample |
94 |
|
95 |
newinitd "${FILESDIR}/pdnsd.rc6" pdnsd |
96 |
newinitd "${FILESDIR}/pdnsd.online" pdnsd-online |
97 |
|
98 |
dodir /etc/conf.d |
99 |
local config="${D}/etc/conf.d/pdnsd-online" |
100 |
|
101 |
echo -e "# Enter the interface that connects you to the dns servers" >> "${config}" |
102 |
echo "# This will correspond to /etc/init.d/net.${IFACE}" >> "${config}" |
103 |
echo -e "\n# IMPORTANT: Be sure to run depscan.sh after modifiying IFACE" >> "${config}" |
104 |
echo "IFACE=ppp0" >> "${config}" |
105 |
|
106 |
config="${D}/etc/conf.d/pdnsd" |
107 |
"${D}/usr/sbin/pdnsd" --help | sed "s/^/# /g" > "${config}" |
108 |
echo "# Command line options" >> "${config}" |
109 |
use ipv6 && echo PDNSDCONFIG="-a" >> "${config}" \ |
110 |
|| echo PDNSDCONFIG="" >> "${config}" |
111 |
|
112 |
# gentoo resolvconf support |
113 |
exeinto /etc/resolvconf/update.d |
114 |
newexe "${FILESDIR}/pdnsd.resolvconf-r1" pdnsd |
115 |
} |
116 |
|
117 |
src_test() { |
118 |
if [ -x /usr/bin/dig ]; then |
119 |
mkdir "${T}/pdnsd" |
120 |
echo -n -e "pd12\0\0\0\0" > "${T}/pdnsd/pdnsd.cache" |
121 |
IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs) |
122 |
sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \ |
123 |
> "${T}/pdnsd.conf.test" |
124 |
src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon" |
125 |
sleep 3 |
126 |
|
127 |
find "${T}" -ls |
128 |
[ -s "${T}/pid" ] || die "empty or no pid file created" |
129 |
[ -S "${T}/pdnsd/pdnsd.status" ] || die "no socket created" |
130 |
src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || die "failed to start the daemon" |
131 |
src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || die "failed to communicate with the daemon" |
132 |
sleep 3 |
133 |
|
134 |
dig @127.0.0.1 -p 33455 www.gentoo.org | fgrep "status: NOERROR" || die "www.gentoo.org lookup failed" |
135 |
kill $(<"${T}/pid") || die "failed to terminate daemon" |
136 |
fi |
137 |
} |
138 |
|
139 |
pkg_postinst() { |
140 |
elog |
141 |
elog "Add pdnsd to your default runlevel - rc-update add pdnsd default" |
142 |
elog "" |
143 |
elog "Add pdnsd-online to your online runlevel." |
144 |
elog "The online interface will be listed in /etc/conf.d/pdnsd-online" |
145 |
elog "" |
146 |
elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample" |
147 |
} |