Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/pdnsd: ChangeLog pdnsd-1.2.8-r4.ebuild pdnsd-1.2.8-r3.ebuild pdnsd-1.2.8.ebuild pdnsd-1.2.8-r2.ebuild
Date: Sat, 31 Dec 2011 21:23:03
Message-Id: 20111231212249.71F962004B@flycatcher.gentoo.org
1 idl0r 11/12/31 21:22:49
2
3 Modified: ChangeLog
4 Added: pdnsd-1.2.8-r4.ebuild pdnsd-1.2.8-r3.ebuild
5 Removed: pdnsd-1.2.8.ebuild pdnsd-1.2.8-r2.ebuild
6 Log:
7 Revbump. Don't use the deprecated $opts variable, bug 395631.
8
9 (Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force)
10
11 Revision Changes Path
12 1.107 net-dns/pdnsd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdnsd/ChangeLog?rev=1.107&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdnsd/ChangeLog?rev=1.107&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdnsd/ChangeLog?r1=1.106&r2=1.107
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v
21 retrieving revision 1.106
22 retrieving revision 1.107
23 diff -u -r1.106 -r1.107
24 --- ChangeLog 17 Dec 2011 19:36:20 -0000 1.106
25 +++ ChangeLog 31 Dec 2011 21:22:49 -0000 1.107
26 @@ -1,6 +1,14 @@
27 # ChangeLog for net-dns/pdnsd
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.106 2011/12/17 19:36:20 armin76 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdnsd/ChangeLog,v 1.107 2011/12/31 21:22:49 idl0r Exp $
31 +
32 +*pdnsd-1.2.8-r4 (31 Dec 2011)
33 +*pdnsd-1.2.8-r3 (31 Dec 2011)
34 +
35 + 31 Dec 2011; Christian Ruppert <idl0r@g.o> -pdnsd-1.2.8.ebuild,
36 + -pdnsd-1.2.8-r2.ebuild, +pdnsd-1.2.8-r3.ebuild, +pdnsd-1.2.8-r4.ebuild,
37 + files/pdnsd.rc6.1:
38 + Revbump. Don't use the deprecated $opts variable, bug 395631.
39
40 17 Dec 2011; Raúl Porcel <armin76@g.o> pdnsd-1.2.8-r2.ebuild:
41 alpha/ia64/s390/sparc stable wrt #393737
42
43
44
45 1.1 net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8-r4.ebuild?rev=1.1&content-type=text/plain
49
50 Index: pdnsd-1.2.8-r4.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $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 $
55
56 EAPI="2"
57
58 inherit eutils
59
60 DESCRIPTION="Proxy DNS server with permanent caching"
61 HOMEPAGE="http://www.phys.uu.nl/~rombouts/pdnsd.html"
62 SRC_URI="http://www.phys.uu.nl/~rombouts/pdnsd/releases/${P}-par.tar.gz"
63
64 LICENSE="GPL-3"
65 SLOT="0"
66 KEYWORDS="alpha amd64 arm ia64 ~ppc s390 sparc x86"
67 IUSE="debug ipv6 isdn +urandom test"
68
69 RDEPEND="sys-apps/openrc"
70 DEPEND="test? ( net-dns/bind-tools )"
71
72 pkg_setup() {
73 enewgroup pdnsd
74 enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd
75 }
76
77 src_configure() {
78 local myconf=""
79 use debug && myconf="${myconf} --with-debug=3"
80 use urandom && myconf="${myconf} --with-random-device=/dev/urandom"
81
82 econf \
83 --disable-dependency-tracking \
84 --sysconfdir=/etc/pdnsd \
85 --with-cachedir=/var/cache/pdnsd \
86 --with-default-id=pdnsd \
87 $(use_enable ipv6) $(use_enable ipv6 ipv6-startup) \
88 $(use_enable isdn) \
89 ${myconf} \
90 || die "bad configure"
91 }
92
93 src_install() {
94 emake DESTDIR="${D}" install || die "make install failed"
95
96 dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par || die
97 docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} || die
98 docinto html ; dohtml doc/html/* || die
99 docinto txt ; dodoc doc/txt/* || die
100 newdoc doc/pdnsd.conf pdnsd.conf.sample || die
101
102 newinitd "${FILESDIR}/pdnsd.rc6.1" pdnsd || die
103 newinitd "${FILESDIR}/pdnsd.online.1" pdnsd-online || die
104
105 mkdir "${T}"/confd
106
107 cat - > "${T}"/confd/pdnsd-online <<EOF
108 # Make sure to change the rc_need variable to the service for the
109 # interface that connects you to the dns servers.
110 #
111 # For instance if you use a PPP connection on ppp0 to connect, set
112 # rc_need="net.ppp0"
113
114 rc_need="net.lo"
115 EOF
116
117 # Don't try to do the smart thing and add the --help output here:
118 # it will cause the file to be etc-updated if the help text
119 # changes and fails when cross-compiling.
120 cat - > "${T}"/confd/pdnsd <<EOF
121 # Command line options, check pdnsd --help for a list of valid
122 # parameters. Note that most of the options that can be given at
123 # command-line are also available as configuration parameters in
124 # /etc/pdnsd/pdnsd.conf
125 PDNSDCONFIG=""
126 EOF
127
128 doconfd "${T}"/confd/* || die
129
130 # gentoo resolvconf support
131 exeinto /etc/resolvconf/update.d
132 newexe "${FILESDIR}/pdnsd.resolvconf-r1" pdnsd
133 }
134
135 src_test() {
136 fail_kill() {
137 kill -9 $(<"${T}"/pid)
138 die "$1"
139 }
140
141 mkdir "${T}/pdnsd"
142 echo -n -e "pd12\0\0\0\0" > "${T}/pdnsd/pdnsd.cache"
143 IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs)
144 sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \
145 > "${T}/pdnsd.conf.test"
146 src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon"
147 sleep 3
148
149 find "${T}" -ls
150 [ -s "${T}/pid" ] || die "empty or no pid file created"
151 [ -S "${T}/pdnsd/pdnsd.status" ] || fail_kill "no socket created"
152 src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || fail_kill "failed to start the daemon"
153 src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || fail_kill "failed to communicate with the daemon"
154 sleep 3
155
156 dig @127.0.0.1 -p 33455 localhost > "${T}"/dig.output 2>&1
157 cat "${T}"/dig.output
158 fgrep -q "status: NOERROR" "${T}"/dig.output || fail_kill "www.gentoo.org lookup failed"
159
160 kill $(<"${T}/pid") || fail_kill "failed to terminate daemon"
161 }
162
163 pkg_postinst() {
164 elog
165 elog "Add pdnsd to your default runlevel - rc-update add pdnsd default"
166 elog ""
167 elog "Add pdnsd-online to your online runlevel."
168 elog "The online interface will be listed in /etc/conf.d/pdnsd-online"
169 elog ""
170 elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample"
171 }
172
173
174
175 1.1 net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild
176
177 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild?rev=1.1&view=markup
178 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/pdnsd/pdnsd-1.2.8-r3.ebuild?rev=1.1&content-type=text/plain
179
180 Index: pdnsd-1.2.8-r3.ebuild
181 ===================================================================
182 # Copyright 1999-2011 Gentoo Foundation
183 # Distributed under the terms of the GNU General Public License v2
184 # $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 $
185
186 EAPI="2"
187
188 inherit eutils
189
190 DESCRIPTION="Proxy DNS server with permanent caching"
191 HOMEPAGE="http://www.phys.uu.nl/~rombouts/pdnsd.html"
192 SRC_URI="http://www.phys.uu.nl/~rombouts/pdnsd/releases/${P}-par.tar.gz"
193
194 LICENSE="GPL-3"
195 SLOT="0"
196 KEYWORDS="alpha amd64 arm ~ia64 ppc s390 sparc x86"
197 IUSE="debug ipv6 isdn +urandom test"
198
199 RDEPEND=""
200 DEPEND="test? ( net-dns/bind-tools )"
201
202 pkg_setup() {
203 enewgroup pdnsd
204 enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd
205 }
206
207 src_configure() {
208 local myconf=""
209 use debug && myconf="${myconf} --with-debug=3"
210 use urandom && myconf="${myconf} --with-random-device=/dev/urandom"
211
212 econf \
213 --disable-dependency-tracking \
214 --sysconfdir=/etc/pdnsd \
215 --with-cachedir=/var/cache/pdnsd \
216 --with-default-id=pdnsd \
217 $(use_enable ipv6) $(use_enable ipv6 ipv6-startup) \
218 $(use_enable isdn) \
219 ${myconf} \
220 || die "bad configure"
221 }
222
223 src_install() {
224 emake DESTDIR="${D}" install || die "make install failed"
225
226 dodoc AUTHORS ChangeLog* NEWS README THANKS TODO README.par || die
227 docinto contrib ; dodoc contrib/{README,dhcp2pdnsd,pdnsd_dhcp.pl} || die
228 docinto html ; dohtml doc/html/* || die
229 docinto txt ; dodoc doc/txt/* || die
230 newdoc doc/pdnsd.conf pdnsd.conf.sample || die
231
232 newinitd "${FILESDIR}/pdnsd.rc6.1" pdnsd || die
233 newinitd "${FILESDIR}/pdnsd.online" pdnsd-online || die
234
235 mkdir "${T}"/confd
236
237 cat - > "${T}"/confd/pdnsd-online <<EOF
238 # Enter the interface that connects you to the dns servers
239 # This will correspond to /etc/init.d/net.\${IFACE}
240 #
241 # IMPORTANT: Be sure to run depscan.sh after modifiying the
242 # IFACE variable
243 IFACE=ppp0
244 EOF
245
246 # Don't try to do the smart thing and add the --help output here:
247 # it will cause the file to be etc-updated if the help text
248 # changes and fails when cross-compiling.
249 cat - > "${T}"/confd/pdnsd <<EOF
250 # Command line options, check pdnsd --help for a list of valid
251 # parameters. Note that most of the options that can be given at
252 # command-line are also available as configuration parameters in
253 # /etc/pdnsd/pdnsd.conf
254 PDNSDCONFIG=""
255 EOF
256
257 doconfd "${T}"/confd/* || die
258
259 # gentoo resolvconf support
260 exeinto /etc/resolvconf/update.d
261 newexe "${FILESDIR}/pdnsd.resolvconf-r1" pdnsd
262 }
263
264 src_test() {
265 fail_kill() {
266 kill -9 $(<"${T}"/pid)
267 die "$1"
268 }
269
270 mkdir "${T}/pdnsd"
271 echo -n -e "pd12\0\0\0\0" > "${T}/pdnsd/pdnsd.cache"
272 IPS=$(grep ^nameserver /etc/resolv.conf | sed -e 's/nameserver \(.*\)/\tip=\1;/g' | xargs)
273 sed -e "s/\tip=/${IPS}/" -e "s:cache_dir=:cache_dir=${T}/pdnsd:" "${FILESDIR}/pdnsd.conf.test" \
274 > "${T}/pdnsd.conf.test"
275 src/pdnsd -c "${T}/pdnsd.conf.test" -g -s -d -p "${T}/pid" || die "couldn't start daemon"
276 sleep 3
277
278 find "${T}" -ls
279 [ -s "${T}/pid" ] || die "empty or no pid file created"
280 [ -S "${T}/pdnsd/pdnsd.status" ] || fail_kill "no socket created"
281 src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" server all up || fail_kill "failed to start the daemon"
282 src/pdnsd-ctl/pdnsd-ctl -c "${T}/pdnsd" status || fail_kill "failed to communicate with the daemon"
283 sleep 3
284
285 dig @127.0.0.1 -p 33455 localhost > "${T}"/dig.output 2>&1
286 cat "${T}"/dig.output
287 fgrep -q "status: NOERROR" "${T}"/dig.output || fail_kill "www.gentoo.org lookup failed"
288
289 kill $(<"${T}/pid") || fail_kill "failed to terminate daemon"
290 }
291
292 pkg_postinst() {
293 elog
294 elog "Add pdnsd to your default runlevel - rc-update add pdnsd default"
295 elog ""
296 elog "Add pdnsd-online to your online runlevel."
297 elog "The online interface will be listed in /etc/conf.d/pdnsd-online"
298 elog ""
299 elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample"
300 }