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