Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/djbdns/
Date: Sun, 18 Jul 2021 18:13:14
Message-Id: 1626631838.e120d23f19ca45b2c0997061c3f850b855827b73.mjo@gentoo
1 commit: e120d23f19ca45b2c0997061c3f850b855827b73
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 18:10:38 2021 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 18:10:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e120d23f
7
8 net-dns/djbdns: remove pre-GLEP81 djbdns-1.05-r33.ebuild.
9
10 Closes: https://bugs.gentoo.org/802321
11 Package-Manager: Portage-3.0.20, Repoman-3.0.2
12 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
13
14 net-dns/djbdns/djbdns-1.05-r33.ebuild | 132 ----------------------------------
15 1 file changed, 132 deletions(-)
16
17 diff --git a/net-dns/djbdns/djbdns-1.05-r33.ebuild b/net-dns/djbdns/djbdns-1.05-r33.ebuild
18 deleted file mode 100644
19 index ca8d5bbf314..00000000000
20 --- a/net-dns/djbdns/djbdns-1.05-r33.ebuild
21 +++ /dev/null
22 @@ -1,132 +0,0 @@
23 -# Copyright 1999-2020 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
27 -inherit flag-o-matic readme.gentoo-r1 toolchain-funcs user
28 -
29 -DESCRIPTION="Collection of DNS client/server software"
30 -HOMEPAGE="http://cr.yp.to/djbdns.html"
31 -IPV6_PATCH="test28"
32 -
33 -SRC_URI="http://cr.yp.to/djbdns/${P}.tar.gz
34 - http://smarden.org/pape/djb/manpages/${P}-man.tar.gz
35 - ipv6? ( http://www.fefe.de/dns/${P}-${IPV6_PATCH}.diff.xz )"
36 -
37 -SLOT="0"
38 -LICENSE="public-domain"
39 -KEYWORDS="~alpha amd64 ~hppa ~mips ppc ppc64 sparc x86"
40 -IUSE="ipv6 selinux"
41 -
42 -DEPEND=""
43 -RDEPEND="sys-apps/ucspi-tcp
44 - virtual/daemontools
45 - selinux? ( sec-policy/selinux-djbdns )"
46 -
47 -src_unpack() {
48 - # Unpack both djbdns and its man pages to separate directories.
49 - default
50 -
51 - # Now move the man pages under ${S} so that user patches can be
52 - # applied to them as well in src_prepare().
53 - mv "${PN}-man" "${P}/man" || die "failed to transplant man pages"
54 -}
55 -
56 -PATCHES=(
57 - "${FILESDIR}/headtail-r1.patch"
58 - "${FILESDIR}/dnsroots.patch"
59 - "${FILESDIR}/dnstracesort.patch"
60 - "${FILESDIR}/string_length_255.patch"
61 - "${FILESDIR}/srv_record_support.patch"
62 - "${FILESDIR}/increase-cname-recustion-depth.patch"
63 - "${FILESDIR}/CVE2009-0858_0001-check-response-domain-name-length.patch"
64 - "${FILESDIR}/CVE2012-1191_0001-ghost-domain-attack.patch"
65 -)
66 -
67 -src_prepare() {
68 - if use ipv6; then
69 - PATCHES=(${PATCHES[@]}
70 - # The big ipv6 patch.
71 - "${WORKDIR}/${P}-${IPV6_PATCH}.diff"
72 - # Fix CVE2008-4392 (ipv6)
73 - "${FILESDIR}/CVE2008-4392_0001-dnscache-merge-similar-outgoing-queries-ipv6-test28.patch"
74 - "${FILESDIR}/CVE2008-4392_0002-dnscache-cache-soa-records-ipv6.patch"
75 - "${FILESDIR}/makefile-parallel-test25.patch"
76 - )
77 - else
78 - PATCHES=(${PATCHES[@]}
79 - # Fix CVE2008-4392 (no ipv6)
80 - "${FILESDIR}/CVE2008-4392_0001-dnscache-merge-similar-outgoing-queries-r1.patch"
81 - "${FILESDIR}/CVE2008-4392_0002-dnscache-cache-soa-records.patch"
82 - # Later versions of the ipv6 patch include this
83 - "${FILESDIR}/${PV}-errno-r1.patch"
84 - )
85 - fi
86 -
87 - default
88 -}
89 -
90 -src_compile() {
91 - echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
92 - echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
93 - echo "/usr" > conf-home || die
94 - emake
95 -}
96 -
97 -src_install() {
98 - insinto /etc
99 - doins dnsroots.global
100 -
101 - into /usr
102 - dobin *-conf dnscache tinydns walldns rbldns pickdns axfrdns \
103 - *-get *-data *-edit dnsip dnsipq dnsname dnstxt dnsmx \
104 - dnsfilter random-ip dnsqr dnsq dnstrace dnstracesort
105 -
106 - if use ipv6; then
107 - dobin dnsip6 dnsip6q
108 - fi
109 -
110 - dodoc CHANGES README
111 -
112 - doman man/*.[158]
113 -
114 - readme.gentoo_create_doc
115 -}
116 -
117 -pkg_preinst() {
118 - # The nofiles group is no longer provided by baselayout.
119 - # Share it with qmail if possible.
120 - enewgroup nofiles 200
121 -
122 - enewuser dnscache -1 -1 -1 nofiles
123 - enewuser dnslog -1 -1 -1 nofiles
124 - enewuser tinydns -1 -1 -1 nofiles
125 -}
126 -
127 -DISABLE_AUTOFORMATTING=1
128 -DOC_CONTENTS='
129 -To configure djbdns, please follow the instructions at,
130 -
131 - http://cr.yp.to/djbdns.html
132 -
133 -Of particular interest are,
134 -
135 - axfrdns : http://cr.yp.to/djbdns/axfrdns-conf.html
136 - dnscache: http://cr.yp.to/djbdns/run-cache-x-home.html
137 - tinydns : http://cr.yp.to/djbdns/run-server.html
138 -
139 -Portage has created users for axfrdns, dnscache, and tinydns; the
140 -commands to configure these programs are,
141 -
142 - 1. axfrdns-conf tinydns dnslog /var/axfrdns /var/tinydns $ip
143 - 2. dnscache-conf dnscache dnslog /var/dnscache $ip
144 - 3. tinydns-conf tinydns dnslog /var/tinydns $ip
145 -
146 -(replace $ip with the ip address on which the server will run).
147 -
148 -If you wish to configure rbldns or walldns, you will need to create
149 -those users yourself (although you should still use the "dnslog"
150 -user for the logs):
151 -
152 - 4. rbldns-conf $username dnslog /var/rbldns $ip $base
153 - 5. walldns-conf $username dnslog /var/walldns $ip
154 -'