1 |
commit: 177db9969e7c343527520ee7d7e58a4141f323c2 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 18 17:27:13 2018 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 18 19:43:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=177db996 |
7 |
|
8 |
net-dns/pdns: Cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
12 |
|
13 |
net-dns/pdns/Manifest | 4 -- |
14 |
net-dns/pdns/pdns-4.1.0.ebuild | 155 ----------------------------------------- |
15 |
net-dns/pdns/pdns-4.1.1.ebuild | 155 ----------------------------------------- |
16 |
net-dns/pdns/pdns-4.1.2.ebuild | 155 ----------------------------------------- |
17 |
net-dns/pdns/pdns-4.1.3.ebuild | 155 ----------------------------------------- |
18 |
5 files changed, 624 deletions(-) |
19 |
|
20 |
diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest |
21 |
index de63e0135d7..a830505adca 100644 |
22 |
--- a/net-dns/pdns/Manifest |
23 |
+++ b/net-dns/pdns/Manifest |
24 |
@@ -1,6 +1,2 @@ |
25 |
DIST pdns-4.0.5.tar.bz2 1323468 BLAKE2B 7e10cc98177bfa4f81888e2598ab4f0ce83ee45e6349372c065940424a74015302da879536dea8346fe7b86f35c0524a5449489bdf71d1a091b7c6a82fac4b6f SHA512 4b0fa932c1d9caf35b988916447aa21c64ebe2a58bdd84417cf09321a21b264cf1057206dc6993a45a3b591eb1dfa49463710c06b6bdfaf6fb17ae6dec6086d9 |
26 |
-DIST pdns-4.1.0.tar.bz2 1116905 BLAKE2B 91ec0f0cfa70966ff71dfb6302ed01355120ca1429d3c610c4abfb1b964cff78a6332700991bc259387e9095be03d3850da41750e93bb3ffe3db0e23562d156c SHA512 4b2b42f4893f8aac3cf07a6c8a3c999cb728a5907a710f1a5c9c8d08377ecb63e202e5eececbefc069c8f1d97a29b2aa607da7cf2bcc6335a72222418e409e77 |
27 |
-DIST pdns-4.1.1.tar.bz2 1113659 BLAKE2B 916dd6ad815a867580d36668e70ec62991ccd45abafdcaa282a2d3edf7ea1b1ae4fc8add8f6b1ce5c8a8d76fc5bf6a6fa458202b7623842afabf7da593333585 SHA512 23e62ec39007e39a289945457e9b950cbeabf8581f477397341dfbd3592b7ccdede8f4c9ce653a47add07784d1a23116f9013c755eb11af1df383b49a8ca341d |
28 |
-DIST pdns-4.1.2.tar.bz2 1117225 BLAKE2B 6a4ffc7ea6ccf4dcde63f78c203efe4c17d3769785173211f4d98b9a1891d3d747b95f686c41c6197f28931302eb8389d4fe899409a98d5d83f71fbd15c36d78 SHA512 3fe9f5d8d87bfc77e98915d9019000b6bc0b91ed7ed363ba00a64321cc534290e23627f18a6ba87797a954f7c82b777f746f4f45eb70efb30fa2aa1a80c67a68 |
29 |
-DIST pdns-4.1.3.tar.bz2 1114829 BLAKE2B d379dafc438402df57674686073469aabaa442b174cd6e217d80878a64d103f753cae6b96be32efd841f3ae46cb333b4136b0a33e332f420e83553815f4024e0 SHA512 a5201cf48911188db0c70cb44a27b9a6cebc16f6b740abdadd283dd53feedeed9cfa16ab833b8230f24790f349a0f2ebcca653ca502bb9b2c75d08bd7c60140c |
30 |
DIST pdns-4.1.4.tar.bz2 1089376 BLAKE2B bdf1736c547927579af7557f695bfd63c4f0ea270ce8d90ddbad186d24bc8c7851254b99ee44d418d0b8c92be0b9d61f10f11f7a491baa8e00e0197b511b1a1e SHA512 ae5cd89d039635beddcb9709d0f6b06321a923343900f88e536aac2feb1e08d41b466b6addb2399f50b20d7ac19fcf4c48d47d0d9219367b37b260c40863ad93 |
31 |
|
32 |
diff --git a/net-dns/pdns/pdns-4.1.0.ebuild b/net-dns/pdns/pdns-4.1.0.ebuild |
33 |
deleted file mode 100644 |
34 |
index bfe5185aaf7..00000000000 |
35 |
--- a/net-dns/pdns/pdns-4.1.0.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,155 +0,0 @@ |
38 |
-# Copyright 1999-2018 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI="6" |
42 |
- |
43 |
-inherit eutils multilib user toolchain-funcs versionator |
44 |
- |
45 |
-DESCRIPTION="The PowerDNS Daemon" |
46 |
-HOMEPAGE="https://www.powerdns.com/" |
47 |
-SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
48 |
- |
49 |
-LICENSE="GPL-2" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="~amd64 ~x86" |
52 |
- |
53 |
-# other possible flags: |
54 |
-# db2: we lack the dep |
55 |
-# oracle: dito (need Oracle Client Libraries) |
56 |
-# xdb: (almost) dead, surely not supported |
57 |
- |
58 |
-IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test" |
59 |
- |
60 |
-REQUIRED_USE="mydns? ( mysql )" |
61 |
- |
62 |
-RDEPEND=" |
63 |
- libressl? ( dev-libs/libressl:= ) |
64 |
- !libressl? ( dev-libs/openssl:= ) |
65 |
- >=dev-libs/boost-1.35:= |
66 |
- botan? ( dev-libs/botan:2= ) |
67 |
- lua? ( |
68 |
- !luajit? ( dev-lang/lua:= ) |
69 |
- luajit? ( dev-lang/luajit:= ) |
70 |
- ) |
71 |
- mysql? ( virtual/mysql ) |
72 |
- postgres? ( dev-db/postgresql:= ) |
73 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
74 |
- sqlite? ( dev-db/sqlite:3 ) |
75 |
- opendbx? ( dev-db/opendbx ) |
76 |
- geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
77 |
- sodium? ( dev-libs/libsodium:= ) |
78 |
- tinydns? ( >=dev-db/tinycdb-0.77 ) |
79 |
- protobuf? ( dev-libs/protobuf )" |
80 |
-DEPEND="${RDEPEND} |
81 |
- virtual/pkgconfig |
82 |
- doc? ( app-doc/doxygen )" |
83 |
- |
84 |
-S="${WORKDIR}"/${P/_/-} |
85 |
- |
86 |
-src_configure() { |
87 |
- local dynmodules="pipe bind" # the default backends, always enabled |
88 |
- |
89 |
- #use db2 && dynmodules+=" db2" |
90 |
- use ldap && dynmodules+=" ldap" |
91 |
- use lua && dynmodules+=" lua" |
92 |
- use mydns && dynmodules+=" mydns" |
93 |
- use mysql && dynmodules+=" gmysql" |
94 |
- use opendbx && dynmodules+=" opendbx" |
95 |
- #use oracle && dynmodules+=" goracle oracle" |
96 |
- use postgres && dynmodules+=" gpgsql" |
97 |
- use remote && dynmodules+=" remote" |
98 |
- use sqlite && dynmodules+=" gsqlite3" |
99 |
- use tinydns && dynmodules+=" tinydns" |
100 |
- use geoip && dynmodules+=" geoip" |
101 |
- #use xdb && dynmodules+=" xdb" |
102 |
- |
103 |
- econf \ |
104 |
- --disable-static \ |
105 |
- --sysconfdir=/etc/powerdns \ |
106 |
- --libdir=/usr/$(get_libdir)/powerdns \ |
107 |
- --with-modules= \ |
108 |
- --with-dynmodules="${dynmodules}" \ |
109 |
- --with-mysql-lib=/usr/$(get_libdir) \ |
110 |
- $(use_enable botan) \ |
111 |
- $(use_enable debug verbose-logging) \ |
112 |
- $(use_enable test unit-tests) \ |
113 |
- $(use_enable tools) \ |
114 |
- $(use_enable systemd) \ |
115 |
- $(use_enable sodium libsodium) \ |
116 |
- $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \ |
117 |
- '--without-lua --without-luajit') \ |
118 |
- $(use_with protobuf) \ |
119 |
- ${myconf} |
120 |
-} |
121 |
- |
122 |
-src_compile() { |
123 |
- default |
124 |
- use doc && emake -C codedocs codedocs |
125 |
-} |
126 |
- |
127 |
-src_install() { |
128 |
- default |
129 |
- |
130 |
- mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
131 |
- |
132 |
- fperms 0700 /etc/powerdns |
133 |
- fperms 0600 /etc/powerdns/pdns.conf |
134 |
- |
135 |
- # set defaults: setuid=pdns, setgid=pdns |
136 |
- sed -i \ |
137 |
- -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
138 |
- "${D}"/etc/powerdns/pdns.conf |
139 |
- |
140 |
- newinitd "${FILESDIR}"/pdns-r1 pdns |
141 |
- |
142 |
- keepdir /var/empty |
143 |
- |
144 |
- use doc && dohtml -r codedocs/html/. |
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 |
- prune_libtool_files --all |
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 |
- version_compare ${old} 3.2 |
180 |
- [[ $? -eq 1 ]] || continue |
181 |
- |
182 |
- ewarn "To fix a security bug (bug #458018) had the following" |
183 |
- ewarn "files/directories the world-readable bit removed (if set):" |
184 |
- ewarn " ${EPREFIX}/etc/powerdns" |
185 |
- ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
186 |
- ewarn "Check if this is correct for your setup" |
187 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
188 |
- chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
189 |
- |
190 |
- break |
191 |
- done |
192 |
-} |
193 |
|
194 |
diff --git a/net-dns/pdns/pdns-4.1.1.ebuild b/net-dns/pdns/pdns-4.1.1.ebuild |
195 |
deleted file mode 100644 |
196 |
index bfe5185aaf7..00000000000 |
197 |
--- a/net-dns/pdns/pdns-4.1.1.ebuild |
198 |
+++ /dev/null |
199 |
@@ -1,155 +0,0 @@ |
200 |
-# Copyright 1999-2018 Gentoo Foundation |
201 |
-# Distributed under the terms of the GNU General Public License v2 |
202 |
- |
203 |
-EAPI="6" |
204 |
- |
205 |
-inherit eutils multilib user toolchain-funcs versionator |
206 |
- |
207 |
-DESCRIPTION="The PowerDNS Daemon" |
208 |
-HOMEPAGE="https://www.powerdns.com/" |
209 |
-SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
210 |
- |
211 |
-LICENSE="GPL-2" |
212 |
-SLOT="0" |
213 |
-KEYWORDS="~amd64 ~x86" |
214 |
- |
215 |
-# other possible flags: |
216 |
-# db2: we lack the dep |
217 |
-# oracle: dito (need Oracle Client Libraries) |
218 |
-# xdb: (almost) dead, surely not supported |
219 |
- |
220 |
-IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test" |
221 |
- |
222 |
-REQUIRED_USE="mydns? ( mysql )" |
223 |
- |
224 |
-RDEPEND=" |
225 |
- libressl? ( dev-libs/libressl:= ) |
226 |
- !libressl? ( dev-libs/openssl:= ) |
227 |
- >=dev-libs/boost-1.35:= |
228 |
- botan? ( dev-libs/botan:2= ) |
229 |
- lua? ( |
230 |
- !luajit? ( dev-lang/lua:= ) |
231 |
- luajit? ( dev-lang/luajit:= ) |
232 |
- ) |
233 |
- mysql? ( virtual/mysql ) |
234 |
- postgres? ( dev-db/postgresql:= ) |
235 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
236 |
- sqlite? ( dev-db/sqlite:3 ) |
237 |
- opendbx? ( dev-db/opendbx ) |
238 |
- geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
239 |
- sodium? ( dev-libs/libsodium:= ) |
240 |
- tinydns? ( >=dev-db/tinycdb-0.77 ) |
241 |
- protobuf? ( dev-libs/protobuf )" |
242 |
-DEPEND="${RDEPEND} |
243 |
- virtual/pkgconfig |
244 |
- doc? ( app-doc/doxygen )" |
245 |
- |
246 |
-S="${WORKDIR}"/${P/_/-} |
247 |
- |
248 |
-src_configure() { |
249 |
- local dynmodules="pipe bind" # the default backends, always enabled |
250 |
- |
251 |
- #use db2 && dynmodules+=" db2" |
252 |
- use ldap && dynmodules+=" ldap" |
253 |
- use lua && dynmodules+=" lua" |
254 |
- use mydns && dynmodules+=" mydns" |
255 |
- use mysql && dynmodules+=" gmysql" |
256 |
- use opendbx && dynmodules+=" opendbx" |
257 |
- #use oracle && dynmodules+=" goracle oracle" |
258 |
- use postgres && dynmodules+=" gpgsql" |
259 |
- use remote && dynmodules+=" remote" |
260 |
- use sqlite && dynmodules+=" gsqlite3" |
261 |
- use tinydns && dynmodules+=" tinydns" |
262 |
- use geoip && dynmodules+=" geoip" |
263 |
- #use xdb && dynmodules+=" xdb" |
264 |
- |
265 |
- econf \ |
266 |
- --disable-static \ |
267 |
- --sysconfdir=/etc/powerdns \ |
268 |
- --libdir=/usr/$(get_libdir)/powerdns \ |
269 |
- --with-modules= \ |
270 |
- --with-dynmodules="${dynmodules}" \ |
271 |
- --with-mysql-lib=/usr/$(get_libdir) \ |
272 |
- $(use_enable botan) \ |
273 |
- $(use_enable debug verbose-logging) \ |
274 |
- $(use_enable test unit-tests) \ |
275 |
- $(use_enable tools) \ |
276 |
- $(use_enable systemd) \ |
277 |
- $(use_enable sodium libsodium) \ |
278 |
- $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \ |
279 |
- '--without-lua --without-luajit') \ |
280 |
- $(use_with protobuf) \ |
281 |
- ${myconf} |
282 |
-} |
283 |
- |
284 |
-src_compile() { |
285 |
- default |
286 |
- use doc && emake -C codedocs codedocs |
287 |
-} |
288 |
- |
289 |
-src_install() { |
290 |
- default |
291 |
- |
292 |
- mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
293 |
- |
294 |
- fperms 0700 /etc/powerdns |
295 |
- fperms 0600 /etc/powerdns/pdns.conf |
296 |
- |
297 |
- # set defaults: setuid=pdns, setgid=pdns |
298 |
- sed -i \ |
299 |
- -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
300 |
- "${D}"/etc/powerdns/pdns.conf |
301 |
- |
302 |
- newinitd "${FILESDIR}"/pdns-r1 pdns |
303 |
- |
304 |
- keepdir /var/empty |
305 |
- |
306 |
- use doc && dohtml -r codedocs/html/. |
307 |
- |
308 |
- # Install development headers |
309 |
- insinto /usr/include/pdns |
310 |
- doins pdns/*.hh |
311 |
- insinto /usr/include/pdns/backends/gsql |
312 |
- doins pdns/backends/gsql/*.hh |
313 |
- |
314 |
- if use ldap ; then |
315 |
- insinto /etc/openldap/schema |
316 |
- doins "${FILESDIR}"/dnsdomain2.schema |
317 |
- fi |
318 |
- |
319 |
- prune_libtool_files --all |
320 |
-} |
321 |
- |
322 |
-pkg_preinst() { |
323 |
- enewgroup pdns |
324 |
- enewuser pdns -1 -1 /var/empty pdns |
325 |
-} |
326 |
- |
327 |
-pkg_postinst() { |
328 |
- elog "PowerDNS provides multiple instances support. You can create more instances" |
329 |
- elog "by symlinking the pdns init script to another name." |
330 |
- elog |
331 |
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
332 |
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
333 |
- |
334 |
- if use ldap ; then |
335 |
- ewarn "The official LDAP backend module is only compile-tested by upstream." |
336 |
- ewarn "Try net-dns/pdns-ldap-backend if you have problems with it." |
337 |
- fi |
338 |
- |
339 |
- local old |
340 |
- for old in ${REPLACING_VERSIONS}; do |
341 |
- version_compare ${old} 3.2 |
342 |
- [[ $? -eq 1 ]] || continue |
343 |
- |
344 |
- ewarn "To fix a security bug (bug #458018) had the following" |
345 |
- ewarn "files/directories the world-readable bit removed (if set):" |
346 |
- ewarn " ${EPREFIX}/etc/powerdns" |
347 |
- ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
348 |
- ewarn "Check if this is correct for your setup" |
349 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
350 |
- chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
351 |
- |
352 |
- break |
353 |
- done |
354 |
-} |
355 |
|
356 |
diff --git a/net-dns/pdns/pdns-4.1.2.ebuild b/net-dns/pdns/pdns-4.1.2.ebuild |
357 |
deleted file mode 100644 |
358 |
index bfe5185aaf7..00000000000 |
359 |
--- a/net-dns/pdns/pdns-4.1.2.ebuild |
360 |
+++ /dev/null |
361 |
@@ -1,155 +0,0 @@ |
362 |
-# Copyright 1999-2018 Gentoo Foundation |
363 |
-# Distributed under the terms of the GNU General Public License v2 |
364 |
- |
365 |
-EAPI="6" |
366 |
- |
367 |
-inherit eutils multilib user toolchain-funcs versionator |
368 |
- |
369 |
-DESCRIPTION="The PowerDNS Daemon" |
370 |
-HOMEPAGE="https://www.powerdns.com/" |
371 |
-SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
372 |
- |
373 |
-LICENSE="GPL-2" |
374 |
-SLOT="0" |
375 |
-KEYWORDS="~amd64 ~x86" |
376 |
- |
377 |
-# other possible flags: |
378 |
-# db2: we lack the dep |
379 |
-# oracle: dito (need Oracle Client Libraries) |
380 |
-# xdb: (almost) dead, surely not supported |
381 |
- |
382 |
-IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test" |
383 |
- |
384 |
-REQUIRED_USE="mydns? ( mysql )" |
385 |
- |
386 |
-RDEPEND=" |
387 |
- libressl? ( dev-libs/libressl:= ) |
388 |
- !libressl? ( dev-libs/openssl:= ) |
389 |
- >=dev-libs/boost-1.35:= |
390 |
- botan? ( dev-libs/botan:2= ) |
391 |
- lua? ( |
392 |
- !luajit? ( dev-lang/lua:= ) |
393 |
- luajit? ( dev-lang/luajit:= ) |
394 |
- ) |
395 |
- mysql? ( virtual/mysql ) |
396 |
- postgres? ( dev-db/postgresql:= ) |
397 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
398 |
- sqlite? ( dev-db/sqlite:3 ) |
399 |
- opendbx? ( dev-db/opendbx ) |
400 |
- geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
401 |
- sodium? ( dev-libs/libsodium:= ) |
402 |
- tinydns? ( >=dev-db/tinycdb-0.77 ) |
403 |
- protobuf? ( dev-libs/protobuf )" |
404 |
-DEPEND="${RDEPEND} |
405 |
- virtual/pkgconfig |
406 |
- doc? ( app-doc/doxygen )" |
407 |
- |
408 |
-S="${WORKDIR}"/${P/_/-} |
409 |
- |
410 |
-src_configure() { |
411 |
- local dynmodules="pipe bind" # the default backends, always enabled |
412 |
- |
413 |
- #use db2 && dynmodules+=" db2" |
414 |
- use ldap && dynmodules+=" ldap" |
415 |
- use lua && dynmodules+=" lua" |
416 |
- use mydns && dynmodules+=" mydns" |
417 |
- use mysql && dynmodules+=" gmysql" |
418 |
- use opendbx && dynmodules+=" opendbx" |
419 |
- #use oracle && dynmodules+=" goracle oracle" |
420 |
- use postgres && dynmodules+=" gpgsql" |
421 |
- use remote && dynmodules+=" remote" |
422 |
- use sqlite && dynmodules+=" gsqlite3" |
423 |
- use tinydns && dynmodules+=" tinydns" |
424 |
- use geoip && dynmodules+=" geoip" |
425 |
- #use xdb && dynmodules+=" xdb" |
426 |
- |
427 |
- econf \ |
428 |
- --disable-static \ |
429 |
- --sysconfdir=/etc/powerdns \ |
430 |
- --libdir=/usr/$(get_libdir)/powerdns \ |
431 |
- --with-modules= \ |
432 |
- --with-dynmodules="${dynmodules}" \ |
433 |
- --with-mysql-lib=/usr/$(get_libdir) \ |
434 |
- $(use_enable botan) \ |
435 |
- $(use_enable debug verbose-logging) \ |
436 |
- $(use_enable test unit-tests) \ |
437 |
- $(use_enable tools) \ |
438 |
- $(use_enable systemd) \ |
439 |
- $(use_enable sodium libsodium) \ |
440 |
- $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \ |
441 |
- '--without-lua --without-luajit') \ |
442 |
- $(use_with protobuf) \ |
443 |
- ${myconf} |
444 |
-} |
445 |
- |
446 |
-src_compile() { |
447 |
- default |
448 |
- use doc && emake -C codedocs codedocs |
449 |
-} |
450 |
- |
451 |
-src_install() { |
452 |
- default |
453 |
- |
454 |
- mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
455 |
- |
456 |
- fperms 0700 /etc/powerdns |
457 |
- fperms 0600 /etc/powerdns/pdns.conf |
458 |
- |
459 |
- # set defaults: setuid=pdns, setgid=pdns |
460 |
- sed -i \ |
461 |
- -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
462 |
- "${D}"/etc/powerdns/pdns.conf |
463 |
- |
464 |
- newinitd "${FILESDIR}"/pdns-r1 pdns |
465 |
- |
466 |
- keepdir /var/empty |
467 |
- |
468 |
- use doc && dohtml -r codedocs/html/. |
469 |
- |
470 |
- # Install development headers |
471 |
- insinto /usr/include/pdns |
472 |
- doins pdns/*.hh |
473 |
- insinto /usr/include/pdns/backends/gsql |
474 |
- doins pdns/backends/gsql/*.hh |
475 |
- |
476 |
- if use ldap ; then |
477 |
- insinto /etc/openldap/schema |
478 |
- doins "${FILESDIR}"/dnsdomain2.schema |
479 |
- fi |
480 |
- |
481 |
- prune_libtool_files --all |
482 |
-} |
483 |
- |
484 |
-pkg_preinst() { |
485 |
- enewgroup pdns |
486 |
- enewuser pdns -1 -1 /var/empty pdns |
487 |
-} |
488 |
- |
489 |
-pkg_postinst() { |
490 |
- elog "PowerDNS provides multiple instances support. You can create more instances" |
491 |
- elog "by symlinking the pdns init script to another name." |
492 |
- elog |
493 |
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
494 |
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
495 |
- |
496 |
- if use ldap ; then |
497 |
- ewarn "The official LDAP backend module is only compile-tested by upstream." |
498 |
- ewarn "Try net-dns/pdns-ldap-backend if you have problems with it." |
499 |
- fi |
500 |
- |
501 |
- local old |
502 |
- for old in ${REPLACING_VERSIONS}; do |
503 |
- version_compare ${old} 3.2 |
504 |
- [[ $? -eq 1 ]] || continue |
505 |
- |
506 |
- ewarn "To fix a security bug (bug #458018) had the following" |
507 |
- ewarn "files/directories the world-readable bit removed (if set):" |
508 |
- ewarn " ${EPREFIX}/etc/powerdns" |
509 |
- ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
510 |
- ewarn "Check if this is correct for your setup" |
511 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
512 |
- chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
513 |
- |
514 |
- break |
515 |
- done |
516 |
-} |
517 |
|
518 |
diff --git a/net-dns/pdns/pdns-4.1.3.ebuild b/net-dns/pdns/pdns-4.1.3.ebuild |
519 |
deleted file mode 100644 |
520 |
index bfe5185aaf7..00000000000 |
521 |
--- a/net-dns/pdns/pdns-4.1.3.ebuild |
522 |
+++ /dev/null |
523 |
@@ -1,155 +0,0 @@ |
524 |
-# Copyright 1999-2018 Gentoo Foundation |
525 |
-# Distributed under the terms of the GNU General Public License v2 |
526 |
- |
527 |
-EAPI="6" |
528 |
- |
529 |
-inherit eutils multilib user toolchain-funcs versionator |
530 |
- |
531 |
-DESCRIPTION="The PowerDNS Daemon" |
532 |
-HOMEPAGE="https://www.powerdns.com/" |
533 |
-SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
534 |
- |
535 |
-LICENSE="GPL-2" |
536 |
-SLOT="0" |
537 |
-KEYWORDS="~amd64 ~x86" |
538 |
- |
539 |
-# other possible flags: |
540 |
-# db2: we lack the dep |
541 |
-# oracle: dito (need Oracle Client Libraries) |
542 |
-# xdb: (almost) dead, surely not supported |
543 |
- |
544 |
-IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test" |
545 |
- |
546 |
-REQUIRED_USE="mydns? ( mysql )" |
547 |
- |
548 |
-RDEPEND=" |
549 |
- libressl? ( dev-libs/libressl:= ) |
550 |
- !libressl? ( dev-libs/openssl:= ) |
551 |
- >=dev-libs/boost-1.35:= |
552 |
- botan? ( dev-libs/botan:2= ) |
553 |
- lua? ( |
554 |
- !luajit? ( dev-lang/lua:= ) |
555 |
- luajit? ( dev-lang/luajit:= ) |
556 |
- ) |
557 |
- mysql? ( virtual/mysql ) |
558 |
- postgres? ( dev-db/postgresql:= ) |
559 |
- ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
560 |
- sqlite? ( dev-db/sqlite:3 ) |
561 |
- opendbx? ( dev-db/opendbx ) |
562 |
- geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
563 |
- sodium? ( dev-libs/libsodium:= ) |
564 |
- tinydns? ( >=dev-db/tinycdb-0.77 ) |
565 |
- protobuf? ( dev-libs/protobuf )" |
566 |
-DEPEND="${RDEPEND} |
567 |
- virtual/pkgconfig |
568 |
- doc? ( app-doc/doxygen )" |
569 |
- |
570 |
-S="${WORKDIR}"/${P/_/-} |
571 |
- |
572 |
-src_configure() { |
573 |
- local dynmodules="pipe bind" # the default backends, always enabled |
574 |
- |
575 |
- #use db2 && dynmodules+=" db2" |
576 |
- use ldap && dynmodules+=" ldap" |
577 |
- use lua && dynmodules+=" lua" |
578 |
- use mydns && dynmodules+=" mydns" |
579 |
- use mysql && dynmodules+=" gmysql" |
580 |
- use opendbx && dynmodules+=" opendbx" |
581 |
- #use oracle && dynmodules+=" goracle oracle" |
582 |
- use postgres && dynmodules+=" gpgsql" |
583 |
- use remote && dynmodules+=" remote" |
584 |
- use sqlite && dynmodules+=" gsqlite3" |
585 |
- use tinydns && dynmodules+=" tinydns" |
586 |
- use geoip && dynmodules+=" geoip" |
587 |
- #use xdb && dynmodules+=" xdb" |
588 |
- |
589 |
- econf \ |
590 |
- --disable-static \ |
591 |
- --sysconfdir=/etc/powerdns \ |
592 |
- --libdir=/usr/$(get_libdir)/powerdns \ |
593 |
- --with-modules= \ |
594 |
- --with-dynmodules="${dynmodules}" \ |
595 |
- --with-mysql-lib=/usr/$(get_libdir) \ |
596 |
- $(use_enable botan) \ |
597 |
- $(use_enable debug verbose-logging) \ |
598 |
- $(use_enable test unit-tests) \ |
599 |
- $(use_enable tools) \ |
600 |
- $(use_enable systemd) \ |
601 |
- $(use_enable sodium libsodium) \ |
602 |
- $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \ |
603 |
- '--without-lua --without-luajit') \ |
604 |
- $(use_with protobuf) \ |
605 |
- ${myconf} |
606 |
-} |
607 |
- |
608 |
-src_compile() { |
609 |
- default |
610 |
- use doc && emake -C codedocs codedocs |
611 |
-} |
612 |
- |
613 |
-src_install() { |
614 |
- default |
615 |
- |
616 |
- mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
617 |
- |
618 |
- fperms 0700 /etc/powerdns |
619 |
- fperms 0600 /etc/powerdns/pdns.conf |
620 |
- |
621 |
- # set defaults: setuid=pdns, setgid=pdns |
622 |
- sed -i \ |
623 |
- -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
624 |
- "${D}"/etc/powerdns/pdns.conf |
625 |
- |
626 |
- newinitd "${FILESDIR}"/pdns-r1 pdns |
627 |
- |
628 |
- keepdir /var/empty |
629 |
- |
630 |
- use doc && dohtml -r codedocs/html/. |
631 |
- |
632 |
- # Install development headers |
633 |
- insinto /usr/include/pdns |
634 |
- doins pdns/*.hh |
635 |
- insinto /usr/include/pdns/backends/gsql |
636 |
- doins pdns/backends/gsql/*.hh |
637 |
- |
638 |
- if use ldap ; then |
639 |
- insinto /etc/openldap/schema |
640 |
- doins "${FILESDIR}"/dnsdomain2.schema |
641 |
- fi |
642 |
- |
643 |
- prune_libtool_files --all |
644 |
-} |
645 |
- |
646 |
-pkg_preinst() { |
647 |
- enewgroup pdns |
648 |
- enewuser pdns -1 -1 /var/empty pdns |
649 |
-} |
650 |
- |
651 |
-pkg_postinst() { |
652 |
- elog "PowerDNS provides multiple instances support. You can create more instances" |
653 |
- elog "by symlinking the pdns init script to another name." |
654 |
- elog |
655 |
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
656 |
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
657 |
- |
658 |
- if use ldap ; then |
659 |
- ewarn "The official LDAP backend module is only compile-tested by upstream." |
660 |
- ewarn "Try net-dns/pdns-ldap-backend if you have problems with it." |
661 |
- fi |
662 |
- |
663 |
- local old |
664 |
- for old in ${REPLACING_VERSIONS}; do |
665 |
- version_compare ${old} 3.2 |
666 |
- [[ $? -eq 1 ]] || continue |
667 |
- |
668 |
- ewarn "To fix a security bug (bug #458018) had the following" |
669 |
- ewarn "files/directories the world-readable bit removed (if set):" |
670 |
- ewarn " ${EPREFIX}/etc/powerdns" |
671 |
- ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
672 |
- ewarn "Check if this is correct for your setup" |
673 |
- ewarn "This is a one-time change and will not happen on subsequent updates." |
674 |
- chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
675 |
- |
676 |
- break |
677 |
- done |
678 |
-} |