1 |
commit: 87c8b81c6cab52a60c4cbc7c0e24bdb1ee54dacc |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 25 05:51:39 2019 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 25 05:52:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87c8b81c |
7 |
|
8 |
net-dns/pdns: Cleanup |
9 |
|
10 |
Bug: https://bugs.gentoo.org/688428 |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
13 |
|
14 |
net-dns/pdns/Manifest | 2 - |
15 |
net-dns/pdns/pdns-4.1.8.ebuild | 157 ----------------------------------------- |
16 |
net-dns/pdns/pdns-4.1.9.ebuild | 157 ----------------------------------------- |
17 |
3 files changed, 316 deletions(-) |
18 |
|
19 |
diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest |
20 |
index 59cb0d9fd40..bb90165f208 100644 |
21 |
--- a/net-dns/pdns/Manifest |
22 |
+++ b/net-dns/pdns/Manifest |
23 |
@@ -1,4 +1,2 @@ |
24 |
DIST pdns-4.1.10.tar.bz2 1117663 BLAKE2B 9c1b8c608862b42019c6b753af950f940455538b439824e10d28a79a4f04fe926decf86f286d79c850f39e0df345d646ba774e5557cce1d44f6c120d8b2892a3 SHA512 59a7a52468f6daae8de01bb2b08d812906ef58047026369895341cfff253a5b9ba29d6a6b43a822f1632641eec34fa1afa6fbb5b0ba5e72ecce8e61787892136 |
25 |
-DIST pdns-4.1.8.tar.bz2 1116996 BLAKE2B df32e1e239f65a37570b1f3f6b7fd2384ea9ea4d60ecf6dc520441e7f004c9e17c1cb35358e1cd9b5080c85b6366354ae4b3e5eaeda20af18c6e411bb119bbc1 SHA512 1113745cdaa8fba591c176721893fb478e976861beee0cb6c0240e5afa6b68c9afae286579036b2ed77fffe76ca1e6f103cda915f8b7b875bcdc1253931ad935 |
26 |
-DIST pdns-4.1.9.tar.bz2 1117241 BLAKE2B 899cf7e3be2ddbc1d78b321f807306f5ffd17dfe272442738bfd88869bb052d6b44aed34b0f4345e194f8916659a43a3634e258e9b47ad954ab3b49e12cad2d0 SHA512 d415f5f7cb13c6fcb31ee13184201e986850e533c580b657183592552d04631bc3334696cbf8fbb549869a559aebd4a6cbd742a7e7dfbaf6997232116e356f56 |
27 |
DIST pdns-4.2.0-rc2.tar.bz2 1245187 BLAKE2B 30ee03752dafa02f5618ba26def1cb8d49b0f7f004b54fcb8d7640b0d60897ac9a9b13e918ab3aaee1d679af772aacd0591e9c9cd3bf6b1af79305e06cac1cdb SHA512 695589980fc35e73fc0e72f57034e2cfefd7b046100dc6f8740ac94dd50ee068453c72aa2ee5626e6cccfca1eeb5e3f036b844039db52d5c45f070d291002122 |
28 |
|
29 |
diff --git a/net-dns/pdns/pdns-4.1.8.ebuild b/net-dns/pdns/pdns-4.1.8.ebuild |
30 |
deleted file mode 100644 |
31 |
index ad05ab44820..00000000000 |
32 |
--- a/net-dns/pdns/pdns-4.1.8.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,157 +0,0 @@ |
35 |
-# Copyright 1999-2019 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI="7" |
39 |
- |
40 |
-inherit multilib user |
41 |
- |
42 |
-DESCRIPTION="The PowerDNS Daemon" |
43 |
-HOMEPAGE="https://www.powerdns.com/" |
44 |
-SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
45 |
- |
46 |
-LICENSE="GPL-2" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="amd64 x86" |
49 |
- |
50 |
-# other possible flags: |
51 |
-# db2: we lack the dep |
52 |
-# oracle: dito (need Oracle Client Libraries) |
53 |
-# xdb: (almost) dead, surely not supported |
54 |
- |
55 |
-IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test" |
56 |
- |
57 |
-REQUIRED_USE="mydns? ( mysql )" |
58 |
- |
59 |
-RDEPEND=" |
60 |
- libressl? ( dev-libs/libressl:= ) |
61 |
- !libressl? ( dev-libs/openssl:= ) |
62 |
- >=dev-libs/boost-1.35:= |
63 |
- botan? ( dev-libs/botan:2= ) |
64 |
- lua? ( |
65 |
- !luajit? ( dev-lang/lua:= ) |
66 |
- luajit? ( dev-lang/luajit:= ) |
67 |
- ) |
68 |
- mysql? ( dev-db/mysql-connector-c ) |
69 |
- postgres? ( dev-db/postgresql:= ) |
70 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
71 |
- sqlite? ( dev-db/sqlite:3 ) |
72 |
- opendbx? ( dev-db/opendbx ) |
73 |
- geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
74 |
- sodium? ( dev-libs/libsodium:= ) |
75 |
- tinydns? ( >=dev-db/tinycdb-0.77 ) |
76 |
- protobuf? ( dev-libs/protobuf )" |
77 |
-DEPEND="${RDEPEND}" |
78 |
-BDEPEND="virtual/pkgconfig |
79 |
- doc? ( app-doc/doxygen )" |
80 |
- |
81 |
-S="${WORKDIR}"/${P/_/-} |
82 |
- |
83 |
-src_configure() { |
84 |
- local dynmodules="pipe bind" # the default backends, always enabled |
85 |
- |
86 |
- #use db2 && dynmodules+=" db2" |
87 |
- use ldap && dynmodules+=" ldap" |
88 |
- use lua && dynmodules+=" lua" |
89 |
- use mydns && dynmodules+=" mydns" |
90 |
- use mysql && dynmodules+=" gmysql" |
91 |
- use opendbx && dynmodules+=" opendbx" |
92 |
- #use oracle && dynmodules+=" goracle oracle" |
93 |
- use postgres && dynmodules+=" gpgsql" |
94 |
- use remote && dynmodules+=" remote" |
95 |
- use sqlite && dynmodules+=" gsqlite3" |
96 |
- use tinydns && dynmodules+=" tinydns" |
97 |
- use geoip && dynmodules+=" geoip" |
98 |
- #use xdb && dynmodules+=" xdb" |
99 |
- |
100 |
- econf \ |
101 |
- --disable-static \ |
102 |
- --sysconfdir=/etc/powerdns \ |
103 |
- --libdir=/usr/$(get_libdir)/powerdns \ |
104 |
- --with-modules= \ |
105 |
- --with-dynmodules="${dynmodules}" \ |
106 |
- --with-mysql-lib=/usr/$(get_libdir) \ |
107 |
- $(use_enable botan) \ |
108 |
- $(use_enable debug verbose-logging) \ |
109 |
- $(use_enable test unit-tests) \ |
110 |
- $(use_enable tools) \ |
111 |
- $(use_enable systemd) \ |
112 |
- $(use_enable sodium libsodium) \ |
113 |
- $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \ |
114 |
- '--without-lua --without-luajit') \ |
115 |
- $(use_with protobuf) \ |
116 |
- ${myconf} |
117 |
-} |
118 |
- |
119 |
-src_compile() { |
120 |
- default |
121 |
- use doc && emake -C codedocs codedocs |
122 |
-} |
123 |
- |
124 |
-src_install() { |
125 |
- default |
126 |
- |
127 |
- mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
128 |
- |
129 |
- fperms 0700 /etc/powerdns |
130 |
- fperms 0600 /etc/powerdns/pdns.conf |
131 |
- |
132 |
- # set defaults: setuid=pdns, setgid=pdns |
133 |
- sed -i \ |
134 |
- -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
135 |
- "${D}"/etc/powerdns/pdns.conf |
136 |
- |
137 |
- newinitd "${FILESDIR}"/pdns-r1 pdns |
138 |
- |
139 |
- keepdir /var/empty |
140 |
- |
141 |
- if use doc; then |
142 |
- docinto html |
143 |
- dodoc -r codedocs/html/. |
144 |
- fi |
145 |
- |
146 |
- # Install development headers |
147 |
- insinto /usr/include/pdns |
148 |
- doins pdns/*.hh |
149 |
- insinto /usr/include/pdns/backends/gsql |
150 |
- doins pdns/backends/gsql/*.hh |
151 |
- |
152 |
- if use ldap ; then |
153 |
- insinto /etc/openldap/schema |
154 |
- doins "${FILESDIR}"/dnsdomain2.schema |
155 |
- fi |
156 |
- |
157 |
- find "${D}" -name '*.la' -delete || die |
158 |
-} |
159 |
- |
160 |
-pkg_preinst() { |
161 |
- enewgroup pdns |
162 |
- enewuser pdns -1 -1 /var/empty pdns |
163 |
-} |
164 |
- |
165 |
-pkg_postinst() { |
166 |
- elog "PowerDNS provides multiple instances support. You can create more instances" |
167 |
- elog "by symlinking the pdns init script to another name." |
168 |
- elog |
169 |
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
170 |
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
171 |
- |
172 |
- if use ldap ; then |
173 |
- ewarn "The official LDAP backend module is only compile-tested by upstream." |
174 |
- ewarn "Try net-dns/pdns-ldap-backend if you have problems with it." |
175 |
- fi |
176 |
- |
177 |
- local old |
178 |
- for old in ${REPLACING_VERSIONS}; do |
179 |
- ver_test ${old} -lt 3.2 || continue |
180 |
- |
181 |
- ewarn "To fix a security bug (bug #458018) had the following" |
182 |
- ewarn "files/directories the world-readable bit removed (if set):" |
183 |
- ewarn " ${EPREFIX}/etc/powerdns" |
184 |
- ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
185 |
- ewarn "Check if this is correct for your setup" |
186 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
187 |
- chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
188 |
- |
189 |
- break |
190 |
- done |
191 |
-} |
192 |
|
193 |
diff --git a/net-dns/pdns/pdns-4.1.9.ebuild b/net-dns/pdns/pdns-4.1.9.ebuild |
194 |
deleted file mode 100644 |
195 |
index 9c4996e63d3..00000000000 |
196 |
--- a/net-dns/pdns/pdns-4.1.9.ebuild |
197 |
+++ /dev/null |
198 |
@@ -1,157 +0,0 @@ |
199 |
-# Copyright 1999-2019 Gentoo Authors |
200 |
-# Distributed under the terms of the GNU General Public License v2 |
201 |
- |
202 |
-EAPI="7" |
203 |
- |
204 |
-inherit multilib user |
205 |
- |
206 |
-DESCRIPTION="The PowerDNS Daemon" |
207 |
-HOMEPAGE="https://www.powerdns.com/" |
208 |
-SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
209 |
- |
210 |
-LICENSE="GPL-2" |
211 |
-SLOT="0" |
212 |
-KEYWORDS="~amd64 ~x86" |
213 |
- |
214 |
-# other possible flags: |
215 |
-# db2: we lack the dep |
216 |
-# oracle: dito (need Oracle Client Libraries) |
217 |
-# xdb: (almost) dead, surely not supported |
218 |
- |
219 |
-IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test" |
220 |
- |
221 |
-REQUIRED_USE="mydns? ( mysql )" |
222 |
- |
223 |
-RDEPEND=" |
224 |
- libressl? ( dev-libs/libressl:= ) |
225 |
- !libressl? ( dev-libs/openssl:= ) |
226 |
- >=dev-libs/boost-1.35:= |
227 |
- botan? ( dev-libs/botan:2= ) |
228 |
- lua? ( |
229 |
- !luajit? ( dev-lang/lua:= ) |
230 |
- luajit? ( dev-lang/luajit:= ) |
231 |
- ) |
232 |
- mysql? ( dev-db/mysql-connector-c ) |
233 |
- postgres? ( dev-db/postgresql:= ) |
234 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
235 |
- sqlite? ( dev-db/sqlite:3 ) |
236 |
- opendbx? ( dev-db/opendbx ) |
237 |
- geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
238 |
- sodium? ( dev-libs/libsodium:= ) |
239 |
- tinydns? ( >=dev-db/tinycdb-0.77 ) |
240 |
- protobuf? ( dev-libs/protobuf )" |
241 |
-DEPEND="${RDEPEND}" |
242 |
-BDEPEND="virtual/pkgconfig |
243 |
- doc? ( app-doc/doxygen )" |
244 |
- |
245 |
-S="${WORKDIR}"/${P/_/-} |
246 |
- |
247 |
-src_configure() { |
248 |
- local dynmodules="pipe bind" # the default backends, always enabled |
249 |
- |
250 |
- #use db2 && dynmodules+=" db2" |
251 |
- use ldap && dynmodules+=" ldap" |
252 |
- use lua && dynmodules+=" lua" |
253 |
- use mydns && dynmodules+=" mydns" |
254 |
- use mysql && dynmodules+=" gmysql" |
255 |
- use opendbx && dynmodules+=" opendbx" |
256 |
- #use oracle && dynmodules+=" goracle oracle" |
257 |
- use postgres && dynmodules+=" gpgsql" |
258 |
- use remote && dynmodules+=" remote" |
259 |
- use sqlite && dynmodules+=" gsqlite3" |
260 |
- use tinydns && dynmodules+=" tinydns" |
261 |
- use geoip && dynmodules+=" geoip" |
262 |
- #use xdb && dynmodules+=" xdb" |
263 |
- |
264 |
- econf \ |
265 |
- --disable-static \ |
266 |
- --sysconfdir=/etc/powerdns \ |
267 |
- --libdir=/usr/$(get_libdir)/powerdns \ |
268 |
- --with-modules= \ |
269 |
- --with-dynmodules="${dynmodules}" \ |
270 |
- --with-mysql-lib=/usr/$(get_libdir) \ |
271 |
- $(use_enable botan) \ |
272 |
- $(use_enable debug verbose-logging) \ |
273 |
- $(use_enable test unit-tests) \ |
274 |
- $(use_enable tools) \ |
275 |
- $(use_enable systemd) \ |
276 |
- $(use_enable sodium libsodium) \ |
277 |
- $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \ |
278 |
- '--without-lua --without-luajit') \ |
279 |
- $(use_with protobuf) \ |
280 |
- ${myconf} |
281 |
-} |
282 |
- |
283 |
-src_compile() { |
284 |
- default |
285 |
- use doc && emake -C codedocs codedocs |
286 |
-} |
287 |
- |
288 |
-src_install() { |
289 |
- default |
290 |
- |
291 |
- mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
292 |
- |
293 |
- fperms 0700 /etc/powerdns |
294 |
- fperms 0600 /etc/powerdns/pdns.conf |
295 |
- |
296 |
- # set defaults: setuid=pdns, setgid=pdns |
297 |
- sed -i \ |
298 |
- -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
299 |
- "${D}"/etc/powerdns/pdns.conf |
300 |
- |
301 |
- newinitd "${FILESDIR}"/pdns-r1 pdns |
302 |
- |
303 |
- keepdir /var/empty |
304 |
- |
305 |
- if use doc; then |
306 |
- docinto html |
307 |
- dodoc -r codedocs/html/. |
308 |
- fi |
309 |
- |
310 |
- # Install development headers |
311 |
- insinto /usr/include/pdns |
312 |
- doins pdns/*.hh |
313 |
- insinto /usr/include/pdns/backends/gsql |
314 |
- doins pdns/backends/gsql/*.hh |
315 |
- |
316 |
- if use ldap ; then |
317 |
- insinto /etc/openldap/schema |
318 |
- doins "${FILESDIR}"/dnsdomain2.schema |
319 |
- fi |
320 |
- |
321 |
- find "${D}" -name '*.la' -delete || die |
322 |
-} |
323 |
- |
324 |
-pkg_preinst() { |
325 |
- enewgroup pdns |
326 |
- enewuser pdns -1 -1 /var/empty pdns |
327 |
-} |
328 |
- |
329 |
-pkg_postinst() { |
330 |
- elog "PowerDNS provides multiple instances support. You can create more instances" |
331 |
- elog "by symlinking the pdns init script to another name." |
332 |
- elog |
333 |
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
334 |
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
335 |
- |
336 |
- if use ldap ; then |
337 |
- ewarn "The official LDAP backend module is only compile-tested by upstream." |
338 |
- ewarn "Try net-dns/pdns-ldap-backend if you have problems with it." |
339 |
- fi |
340 |
- |
341 |
- local old |
342 |
- for old in ${REPLACING_VERSIONS}; do |
343 |
- ver_test ${old} -lt 3.2 || continue |
344 |
- |
345 |
- ewarn "To fix a security bug (bug #458018) had the following" |
346 |
- ewarn "files/directories the world-readable bit removed (if set):" |
347 |
- ewarn " ${EPREFIX}/etc/powerdns" |
348 |
- ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
349 |
- ewarn "Check if this is correct for your setup" |
350 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
351 |
- chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
352 |
- |
353 |
- break |
354 |
- done |
355 |
-} |