Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/djbdns: djbdns-1.05-r26.ebuild ChangeLog
Date: Sat, 02 Jun 2012 07:48:00
Message-Id: 20120602074729.739432004B@flycatcher.gentoo.org
1 xmw 12/06/02 07:47:29
2
3 Modified: ChangeLog
4 Added: djbdns-1.05-r26.ebuild
5 Log:
6 Revbump to install new root servers list (bug 248247)
7
8 (Portage version: 2.1.10.63/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.128 net-dns/djbdns/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/ChangeLog?rev=1.128&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/ChangeLog?rev=1.128&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/ChangeLog?r1=1.127&r2=1.128
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-dns/djbdns/ChangeLog,v
20 retrieving revision 1.127
21 retrieving revision 1.128
22 diff -u -r1.127 -r1.128
23 --- ChangeLog 1 Apr 2012 11:57:06 -0000 1.127
24 +++ ChangeLog 2 Jun 2012 07:47:29 -0000 1.128
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-dns/djbdns
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/ChangeLog,v 1.127 2012/04/01 11:57:06 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/ChangeLog,v 1.128 2012/06/02 07:47:29 xmw Exp $
30 +
31 +*djbdns-1.05-r26 (02 Jun 2012)
32 +
33 + 02 Jun 2012; Michael Weber <xmw@g.o> +djbdns-1.05-r26.ebuild,
34 + files/dnsroots.patch:
35 + Revbump to install new root servers list (bug 248247)
36
37 01 Apr 2012; Markos Chandras <hwoarang@g.o> files/dnscache-setup,
38 files/tinydns-setup:
39
40
41
42 1.1 net-dns/djbdns/djbdns-1.05-r26.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/djbdns-1.05-r26.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/djbdns/djbdns-1.05-r26.ebuild?rev=1.1&content-type=text/plain
46
47 Index: djbdns-1.05-r26.ebuild
48 ===================================================================
49 # Copyright 1999-2012 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-r26.ebuild,v 1.1 2012/06/02 07:47:29 xmw Exp $
52
53 EAPI="2"
54 inherit eutils flag-o-matic toolchain-funcs
55
56 DESCRIPTION="Excellent high-performance DNS services"
57 HOMEPAGE="http://cr.yp.to/djbdns.html"
58 IPV6_PATCH="test23"
59
60 SRC_URI="http://cr.yp.to/djbdns/${P}.tar.gz
61 ipv6? ( http://www.fefe.de/dns/${P}-${IPV6_PATCH}.diff.bz2 )"
62
63 SLOT="0"
64 LICENSE="public-domain"
65 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
66 IUSE="doc ipv6 selinux static"
67
68 DEPEND=""
69 RDEPEND="${DEPEND}
70 virtual/daemontools
71 sys-apps/ucspi-tcp
72 doc? ( app-doc/djbdns-man )
73 selinux? ( sec-policy/selinux-djbdns )
74 "
75
76 src_prepare() {
77 echo
78 elog 'Several patches have been dropped from this djbdns ebuild revision.'
79 elog 'Please use the DJBDNS_PATCH_DIR variable to specify a directory'
80 elog 'of custom patches.'
81 elog
82 elog 'Some of them can be found at http://tinydns.org/ or'
83 elog 'http://homepages.tesco.net/J.deBoynePollard/Softwares/djbdns/'
84 elog
85
86 epatch \
87 "${FILESDIR}/headtail.patch" \
88 "${FILESDIR}/dnsroots.patch" \
89 "${FILESDIR}/dnstracesort.patch" \
90 "${FILESDIR}/string_length_255.patch"
91
92 # Fix CVE2009-0858
93 epatch "${FILESDIR}/CVE2009-0858_0001-check-response-domain-name-length.patch"
94
95 if use ipv6; then
96 elog "At present dnstrace does NOT support IPv6. It will"\
97 "be compiled without IPv6 support."
98 cp -pR "${S}" "${S}-noipv6"
99 # Careful -- >=test21 of the IPv6 patch includes the errno patch
100 epatch "${DISTDIR}/${P}-${IPV6_PATCH}.diff.bz2"
101
102 # Fix CVE2008-4392
103 epatch \
104 "${FILESDIR}/CVE2008-4392_0001-dnscache-merge-similar-outgoing-queries-ipv6.patch" \
105 "${FILESDIR}/CVE2008-4392_0002-dnscache-cache-soa-records-ipv6.patch" \
106 "${FILESDIR}/makefile-parallel.patch"
107
108 cd "${S}-noipv6"
109 fi
110
111 # Fix CVE2008-4392
112 epatch \
113 "${FILESDIR}/CVE2008-4392_0001-dnscache-merge-similar-outgoing-queries.patch" \
114 "${FILESDIR}/CVE2008-4392_0002-dnscache-cache-soa-records.patch"
115
116 epatch "${FILESDIR}/${PV}-errno.patch"
117
118 if [[ -n "${DJBDNS_PATCH_DIR}" && -d "${DJBDNS_PATCH_DIR}" ]]
119 then
120 echo
121 ewarn "You enabled custom patches from ${DJBDNS_PATCH_DIR}."
122 ewarn "Be warned that you won't get any support when using "
123 ewarn "this feature. You're on your own from now!"
124 echo
125 ebeep
126 cd "${S}" && epatch "${DJBDNS_PATCH_DIR}/"*
127 fi
128 }
129
130 src_compile() {
131 use static && append-ldflags -static
132 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
133 echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
134 echo "/usr" > conf-home
135 #emake -j1 || die "emake failed"
136 emake || die "emake failed"
137
138 # If djbdns is compiled with IPv6 support, it breaks dnstrace.
139 # Therefore we must compile dnstrace separately without IPv6
140 # support.
141 if use ipv6; then
142 elog "Compiling dnstrace without ipv6 support"
143 cd "${S}-noipv6"
144 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
145 echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
146 echo "/usr" > conf-home
147 #emake -j1 dnstrace || die "emake failed"
148 emake dnstrace || die "emake failed"
149 fi
150 }
151
152 src_install() {
153 insinto /etc
154 doins dnsroots.global || die
155
156 into /usr
157 dobin *-conf dnscache tinydns walldns rbldns pickdns axfrdns \
158 *-get *-data *-edit dnsip dnsipq dnsname dnstxt dnsmx \
159 dnsfilter random-ip dnsqr dnsq dnstrace dnstracesort || die
160
161 if use ipv6; then
162 dobin dnsip6 dnsip6q "${S}-noipv6/dnstrace" || die
163 fi
164
165 dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION || die
166
167 dobin "${FILESDIR}/dnscache-setup" || die
168 dobin "${FILESDIR}/tinydns-setup" || die
169 dobin "${FILESDIR}/djbdns-setup" || die
170 }
171
172 pkg_preinst() {
173 # The nofiles group is no longer provided by baselayout.
174 # Share it with qmail if possible.
175 enewgroup nofiles 200
176
177 enewuser dnscache -1 -1 -1 nofiles
178 enewuser dnslog -1 -1 -1 nofiles
179 enewuser tinydns -1 -1 -1 nofiles
180 }
181
182 pkg_postinst() {
183 elog "Use dnscache-setup & tinydns-setup or djbdns-setup to configure djbdns."
184 }