1 |
mjo 14/10/02 22:22:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: djbdns-1.05-r30.ebuild |
5 |
Log: |
6 |
Revbump to fix bugs #523754 and #523756. |
7 |
|
8 |
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x6F48D3DA05C2DADB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.156 net-dns/djbdns/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/ChangeLog?rev=1.156&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/ChangeLog?rev=1.156&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/ChangeLog?r1=1.155&r2=1.156 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-dns/djbdns/ChangeLog,v |
20 |
retrieving revision 1.155 |
21 |
retrieving revision 1.156 |
22 |
diff -u -r1.155 -r1.156 |
23 |
--- ChangeLog 2 Oct 2014 13:01:13 -0000 1.155 |
24 |
+++ ChangeLog 2 Oct 2014 22:22:16 -0000 1.156 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-dns/djbdns |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/ChangeLog,v 1.155 2014/10/02 13:01:13 mjo Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/ChangeLog,v 1.156 2014/10/02 22:22:16 mjo Exp $ |
30 |
+ |
31 |
+*djbdns-1.05-r30 (02 Oct 2014) |
32 |
+ |
33 |
+ 02 Oct 2014; Michael Orlitzky <mjo@g.o> +djbdns-1.05-r30.ebuild, |
34 |
+ +files/srv_record_support.patch: |
35 |
+ Revbump to fix bugs #523754 and #523756. |
36 |
|
37 |
02 Oct 2014; Michael Orlitzky <mjo@g.o> |
38 |
-files/CVE2008-4392_0001-dnscache-merge-similar-outgoing-queries-ipv6.patch, |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-dns/djbdns/djbdns-1.05-r30.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/djbdns-1.05-r30.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/djbdns-1.05-r30.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: djbdns-1.05-r30.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/djbdns-1.05-r30.ebuild,v 1.1 2014/10/02 22:22:16 mjo Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
inherit eutils flag-o-matic readme.gentoo toolchain-funcs user |
55 |
|
56 |
DESCRIPTION="Collection of DNS client/server software" |
57 |
HOMEPAGE="http://cr.yp.to/djbdns.html" |
58 |
IPV6_PATCH="test27" |
59 |
|
60 |
SRC_URI="http://cr.yp.to/djbdns/${P}.tar.gz |
61 |
http://smarden.org/pape/djb/manpages/${P}-man.tar.gz |
62 |
ipv6? ( http://www.fefe.de/dns/${P}-${IPV6_PATCH}.diff.bz2 )" |
63 |
|
64 |
SLOT="0" |
65 |
LICENSE="public-domain" |
66 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
67 |
IUSE="ipv6 selinux" |
68 |
|
69 |
DEPEND="" |
70 |
RDEPEND="sys-apps/ucspi-tcp |
71 |
virtual/daemontools |
72 |
selinux? ( sec-policy/selinux-djbdns )" |
73 |
|
74 |
src_unpack(){ |
75 |
# Unpack both djbdns and its man pages to separate directories. |
76 |
default |
77 |
|
78 |
# Now move the man pages under ${S} so that user patches can be |
79 |
# applied to them as well in src_prepare(). |
80 |
mv "${PN}-man" "${P}/man" || die "failed to transplant man pages" |
81 |
} |
82 |
|
83 |
src_prepare() { |
84 |
epatch \ |
85 |
"${FILESDIR}/headtail.patch" \ |
86 |
"${FILESDIR}/dnsroots.patch" \ |
87 |
"${FILESDIR}/dnstracesort.patch" \ |
88 |
"${FILESDIR}/string_length_255.patch" \ |
89 |
"${FILESDIR}/srv_record_support.patch" |
90 |
|
91 |
# Fix CVE2009-0858 |
92 |
epatch "${FILESDIR}/CVE2009-0858_0001-check-response-domain-name-length.patch" |
93 |
|
94 |
if use ipv6; then |
95 |
elog 'At present dnstrace does NOT support IPv6. It will'\ |
96 |
'be compiled without IPv6 support.' |
97 |
|
98 |
# Create a separate copy of the source tree for dnstrace. |
99 |
cp -pR "${S}" "${S}-noipv6" || die |
100 |
|
101 |
# The big ipv6 patch. |
102 |
epatch "${WORKDIR}/${P}-${IPV6_PATCH}.diff" |
103 |
|
104 |
# Fix CVE2008-4392 (ipv6) |
105 |
epatch \ |
106 |
"${FILESDIR}/CVE2008-4392_0001-dnscache-merge-similar-outgoing-queries-ipv6-test25.patch" \ |
107 |
"${FILESDIR}/CVE2008-4392_0002-dnscache-cache-soa-records-ipv6.patch" \ |
108 |
"${FILESDIR}/makefile-parallel-test25.patch" |
109 |
|
110 |
cd "${S}-noipv6" || die |
111 |
fi |
112 |
|
113 |
# Fix CVE2008-4392 (no ipv6) |
114 |
epatch \ |
115 |
"${FILESDIR}/CVE2008-4392_0001-dnscache-merge-similar-outgoing-queries.patch" \ |
116 |
"${FILESDIR}/CVE2008-4392_0002-dnscache-cache-soa-records.patch" |
117 |
|
118 |
# Later versions of the ipv6 patch include this, but even if |
119 |
# USE=ipv6, we're in the ${S}-noipv6 directory at this point. |
120 |
epatch "${FILESDIR}/${PV}-errno.patch" |
121 |
|
122 |
epatch_user |
123 |
} |
124 |
|
125 |
src_compile() { |
126 |
echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die |
127 |
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die |
128 |
echo "/usr" > conf-home || die |
129 |
emake |
130 |
|
131 |
# If djbdns is compiled with IPv6 support, it breaks dnstrace. |
132 |
# Therefore we must compile dnstrace separately without IPv6 |
133 |
# support. |
134 |
if use ipv6; then |
135 |
elog 'Compiling dnstrace without ipv6 support' |
136 |
cp conf-cc conf-ld conf-home "${S}-noipv6/" || die |
137 |
cd "${S}-noipv6" || die |
138 |
emake dnstrace |
139 |
fi |
140 |
} |
141 |
|
142 |
src_install() { |
143 |
insinto /etc |
144 |
doins dnsroots.global |
145 |
|
146 |
into /usr |
147 |
dobin *-conf dnscache tinydns walldns rbldns pickdns axfrdns \ |
148 |
*-get *-data *-edit dnsip dnsipq dnsname dnstxt dnsmx \ |
149 |
dnsfilter random-ip dnsqr dnsq dnstrace dnstracesort |
150 |
|
151 |
if use ipv6; then |
152 |
dobin dnsip6 dnsip6q "${S}-noipv6/dnstrace" |
153 |
fi |
154 |
|
155 |
dodoc CHANGES README |
156 |
|
157 |
doman man/*.[158] |
158 |
|
159 |
readme.gentoo_create_doc |
160 |
} |
161 |
|
162 |
pkg_preinst() { |
163 |
# The nofiles group is no longer provided by baselayout. |
164 |
# Share it with qmail if possible. |
165 |
enewgroup nofiles 200 |
166 |
|
167 |
enewuser dnscache -1 -1 -1 nofiles |
168 |
enewuser dnslog -1 -1 -1 nofiles |
169 |
enewuser tinydns -1 -1 -1 nofiles |
170 |
} |
171 |
|
172 |
DISABLE_AUTOFORMATTING=1 |
173 |
DOC_CONTENTS=' |
174 |
The dnscache-setup, tinydns-setup, and djbdns-setup programs have |
175 |
been removed to follow upstream more closely. To configure djbdns, |
176 |
please follow the instructions at, |
177 |
|
178 |
http://cr.yp.to/djbdns.html |
179 |
|
180 |
Of particular interest are, |
181 |
|
182 |
axfrdns : http://cr.yp.to/djbdns/axfrdns-conf.html |
183 |
dnscache: http://cr.yp.to/djbdns/run-cache-x-home.html |
184 |
tinydns : http://cr.yp.to/djbdns/run-server.html |
185 |
|
186 |
Portage has created users for axfrdns, dnscache, and tinydns; the |
187 |
commands to configure these programs are, |
188 |
|
189 |
1. axfrdns-conf tinydns dnslog /var/axfrdns /var/tinydns $ip |
190 |
2. dnscache-conf dnscache dnslog /var/dnscache $ip |
191 |
3. tinydns-conf tinydns dnslog /var/tinydns $ip |
192 |
|
193 |
(replace $ip with the ip address on which the server will run). |
194 |
|
195 |
If you wish to configure rbldns or walldns, you will need to create |
196 |
those users yourself (although you should still use the "dnslog" |
197 |
user for the logs): |
198 |
|
199 |
4. rbldns-conf $username dnslog /var/rbldns $ip $base |
200 |
5. walldns-conf $username dnslog /var/walldns $ip |
201 |
' |