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