Gentoo Archives: gentoo-commits

From: Sven Wegener <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns/files/, net-dns/pdns/
Date: Mon, 30 Oct 2017 13:27:59
Message-Id: 1509370057.ba7f4abd8ff7d36e4c8305f1322acff4f2042417.swegener@gentoo
1 commit: ba7f4abd8ff7d36e4c8305f1322acff4f2042417
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 30 10:20:39 2017 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 30 13:27:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba7f4abd
7
8 net-dns/pdns: Cleanup
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.4
11
12 net-dns/pdns/Manifest | 2 -
13 net-dns/pdns/files/pdns | 61 ---------------
14 net-dns/pdns/pdns-4.0.2.ebuild | 153 --------------------------------------
15 net-dns/pdns/pdns-4.0.3-r3.ebuild | 153 --------------------------------------
16 net-dns/pdns/pdns-4.0.3.ebuild | 153 --------------------------------------
17 5 files changed, 522 deletions(-)
18
19 diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest
20 index bc8e3b0769a..5efd44bfb6c 100644
21 --- a/net-dns/pdns/Manifest
22 +++ b/net-dns/pdns/Manifest
23 @@ -1,4 +1,2 @@
24 -DIST pdns-4.0.2.tar.bz2 1314886 SHA256 d051e53b63f586c924f00ce8a81662f7bd285b461d125d4991538f92cf7e629d SHA512 6720289332ee5186f4c58a00a720f3bb58480c0ae7f09915148ca8b40e2dfdc77e2f14123df903692afa464539eeef6b21e8ea3d284278897751ba807e2cdffe WHIRLPOOL 6b58de4f2fc6fe830255203c281ca518a543b373171f73021cd8efd597c146b438a7ffd6ed018b637816fe07153a51f947818a0fa76dc237ba0f50903d3afbe9
25 -DIST pdns-4.0.3.tar.bz2 1312299 SHA256 60fa21550b278b41f58701af31c9f2b121badf271fb9d7642f6d35bfbea8e282 SHA512 58d33ac6cf457a916bae6abd8d2dc17f76fbcd1bd9e649948584dd669f5596b43e3e4d91841700ea1ea2cd1ac102749e503cd9075273540f33a2321e20d8bfc2 WHIRLPOOL a28ab5011b3365423f13331c31e8f0fdb9aef0798155ce6fcbe328f82ebc3ca57a966b77f48c31422d374837ee4be3f7f0bc935bab463add19714eb8abd46493
26 DIST pdns-4.0.4.tar.bz2 1320327 SHA256 d974ab89de69477c7f581a3233bc731eacbb43d479291e472b2c531c83b6d763 SHA512 4ef4705cd990b03976775167c7c37850d45907e198549feda5f5701172e008e3f1f74a35a9bebdb24b63dec15ff63cb2cc9dfc8f92e4e1012e0539c5a88b845b WHIRLPOOL 5ac68a15155424d42fb4b84be1b34eb2e51498ae5193ae104215e4bb52a72845923f82dc6b112ce165444cdbfe3aaf01557d2f6ab42f6531dd525aee15ee1b19
27 DIST pdns-4.1.0-rc1.tar.bz2 1106039 SHA256 a973202ca1c9333c236d76286ab1d8566d420a877a003130381150171d63d4ff SHA512 7356277126578b34587579039d4c63e9ba7822ddd39810b4a43eb06d076c2d247d8b8db7162b2aafd1cb73fd83047b0b5584d4d8bb333ec77597717bac76b450 WHIRLPOOL 19a003a7564691f5ba812f34b376d79c6acbb538df7e4b978a7058f919ef71d778770527d7a091a689a433e915cfccfc22152bc4da46e36ba6c335a31bcdb40f
28
29 diff --git a/net-dns/pdns/files/pdns b/net-dns/pdns/files/pdns
30 deleted file mode 100644
31 index c1603791311..00000000000
32 --- a/net-dns/pdns/files/pdns
33 +++ /dev/null
34 @@ -1,61 +0,0 @@
35 -#!/sbin/openrc-run
36 -# Copyright 1999-2017 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -extra_commands="monitor"
40 -extra_started_commands="reload dump"
41 -
42 -PDNS_INSTANCE="${SVCNAME#pdns[.-]}"
43 -PDNS_CONFIG=""
44 -
45 -if [ -n "${PDNS_INSTANCE}" ] && [ "${PDNS_INSTANCE}" != "pdns" ]
46 -then
47 - PDNS_CONFIG="--config-name=${PDNS_INSTANCE}"
48 -else
49 - PDNS_INSTANCE="default"
50 -fi
51 -
52 -depend() {
53 - need net
54 - use mysql postgresql
55 -}
56 -
57 -start() {
58 - ebegin "Starting PowerDNS (${PDNS_INSTANCE})"
59 - /usr/sbin/pdns_server \
60 - ${PDNS_CONFIG} \
61 - --daemon=yes \
62 - --guardian=yes
63 - eend $?
64 -}
65 -
66 -stop() {
67 - ebegin "Stopping PowerDNS (${PDNS_INSTANCE})"
68 - /usr/bin/pdns_control ${PDNS_CONFIG} quit >/dev/null 2>&1
69 - eend $?
70 -}
71 -
72 -reload() {
73 - ebegin "Reloading PowerDNS (${PDNS_INSTANCE})"
74 - /usr/bin/pdns_control ${PDNS_CONFIG} cycle >/dev/null 2>&1
75 - eend $?
76 -}
77 -
78 -dump() {
79 - ebegin "Dumping PowerDNS (${PDNS_INSTANCE}) variables"
80 - /usr/bin/pdns_control ${PDNS_CONFIG} list
81 - eend $?
82 -}
83 -
84 -monitor() {
85 - ebegin "Starting PowerDNS (${PDNS_INSTANCE}) in monitor mode"
86 - /usr/sbin/pdns_server \
87 - ${PDNS_CONFIG} \
88 - --daemon=no \
89 - --guardian=no \
90 - --control-console=yes \
91 - --loglevel=9 \
92 - --log-dns-details=yes \
93 - --query-logging=yes
94 - eend $?
95 -}
96
97 diff --git a/net-dns/pdns/pdns-4.0.2.ebuild b/net-dns/pdns/pdns-4.0.2.ebuild
98 deleted file mode 100644
99 index 99bcbba8399..00000000000
100 --- a/net-dns/pdns/pdns-4.0.2.ebuild
101 +++ /dev/null
102 @@ -1,153 +0,0 @@
103 -# Copyright 1999-2017 Gentoo Foundation
104 -# Distributed under the terms of the GNU General Public License v2
105 -
106 -EAPI="6"
107 -
108 -inherit eutils multilib user toolchain-funcs versionator
109 -
110 -DESCRIPTION="The PowerDNS Daemon"
111 -HOMEPAGE="https://www.powerdns.com/"
112 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
113 -
114 -LICENSE="GPL-2"
115 -SLOT="0"
116 -KEYWORDS="amd64 x86"
117 -
118 -# other possible flags:
119 -# db2: we lack the dep
120 -# oracle: dito (need Oracle Client Libraries)
121 -# xdb: (almost) dead, surely not supported
122 -
123 -IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sqlite systemd tools tinydns test"
124 -
125 -REQUIRED_USE="mydns? ( mysql ) ?? ( lua luajit )"
126 -
127 -RDEPEND="
128 - libressl? ( dev-libs/libressl:= )
129 - !libressl? ( dev-libs/openssl:= )
130 - >=dev-libs/boost-1.35:=
131 - botan? ( =dev-libs/botan-1.10*[threads] )
132 - lua? ( dev-lang/lua:= )
133 - luajit? ( dev-lang/luajit:= )
134 - mysql? ( virtual/mysql )
135 - postgres? ( dev-db/postgresql:= )
136 - ldap? ( >=net-nds/openldap-2.0.27-r4 )
137 - sqlite? ( dev-db/sqlite:3 )
138 - opendbx? ( dev-db/opendbx )
139 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1 dev-libs/geoip )
140 - tinydns? ( >=dev-db/tinycdb-0.77 )
141 - protobuf? ( dev-libs/protobuf )"
142 -DEPEND="${RDEPEND}
143 - virtual/pkgconfig
144 - doc? ( app-doc/doxygen )"
145 -
146 -S="${WORKDIR}"/${P/_/-}
147 -
148 -src_configure() {
149 - local dynmodules="pipe bind" # the default backends, always enabled
150 -
151 - #use db2 && dynmodules+=" db2"
152 - use ldap && dynmodules+=" ldap"
153 - use lua && dynmodules+=" lua"
154 - use mydns && dynmodules+=" mydns"
155 - use mysql && dynmodules+=" gmysql"
156 - use opendbx && dynmodules+=" opendbx"
157 - #use oracle && dynmodules+=" goracle oracle"
158 - use postgres && dynmodules+=" gpgsql"
159 - use remote && dynmodules+=" remote"
160 - use sqlite && dynmodules+=" gsqlite3"
161 - use tinydns && dynmodules+=" tinydns"
162 - use geoip && dynmodules+=" geoip"
163 - #use xdb && dynmodules+=" xdb"
164 -
165 - econf \
166 - --disable-static \
167 - --sysconfdir=/etc/powerdns \
168 - --libdir=/usr/$(get_libdir)/powerdns \
169 - --with-modules= \
170 - --with-dynmodules="${dynmodules}" \
171 - --with-pgsql-includes=/usr/include \
172 - --with-pgsql-lib=/usr/$(get_libdir) \
173 - --with-mysql-lib=/usr/$(get_libdir) \
174 - $(use_enable botan botan1.10) \
175 - $(use_enable debug verbose-logging) \
176 - $(use_enable test unit-tests) \
177 - $(use_enable tools) \
178 - $(use_enable systemd) \
179 - $(use_with lua) \
180 - $(use_with luajit) \
181 - $(use_with protobuf) \
182 - ${myconf}
183 -}
184 -
185 -src_compile() {
186 - default
187 - use doc && emake -C codedocs codedocs
188 -}
189 -
190 -src_install() {
191 - default
192 -
193 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
194 -
195 - fperms 0700 /etc/powerdns
196 - fperms 0600 /etc/powerdns/pdns.conf
197 -
198 - # set defaults: setuid=pdns, setgid=pdns
199 - sed -i \
200 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
201 - "${D}"/etc/powerdns/pdns.conf
202 -
203 - doinitd "${FILESDIR}"/pdns
204 -
205 - keepdir /var/empty
206 -
207 - use doc && dohtml -r codedocs/html/.
208 -
209 - # Install development headers
210 - insinto /usr/include/pdns
211 - doins pdns/*.hh
212 - insinto /usr/include/pdns/backends/gsql
213 - doins pdns/backends/gsql/*.hh
214 -
215 - if use ldap ; then
216 - insinto /etc/openldap/schema
217 - doins "${FILESDIR}"/dnsdomain2.schema
218 - fi
219 -
220 - prune_libtool_files --all
221 -}
222 -
223 -pkg_preinst() {
224 - enewgroup pdns
225 - enewuser pdns -1 -1 /var/empty pdns
226 -}
227 -
228 -pkg_postinst() {
229 - elog "PowerDNS provides multiple instances support. You can create more instances"
230 - elog "by symlinking the pdns init script to another name."
231 - elog
232 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
233 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
234 -
235 - if use ldap ; then
236 - ewarn "The official LDAP backend module is only compile-tested by upstream."
237 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
238 - fi
239 -
240 - local old
241 - for old in ${REPLACING_VERSIONS}; do
242 - version_compare ${old} 3.2
243 - [[ $? -eq 1 ]] || continue
244 -
245 - ewarn "To fix a security bug (bug #458018) had the following"
246 - ewarn "files/directories the world-readable bit removed (if set):"
247 - ewarn " ${EPREFIX}/etc/powerdns"
248 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
249 - ewarn "Check if this is correct for your setup"
250 - ewarn "This is a one-time change and will not happen on subsequent updates."
251 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
252 -
253 - break
254 - done
255 -}
256
257 diff --git a/net-dns/pdns/pdns-4.0.3-r3.ebuild b/net-dns/pdns/pdns-4.0.3-r3.ebuild
258 deleted file mode 100644
259 index 2ba5df54f29..00000000000
260 --- a/net-dns/pdns/pdns-4.0.3-r3.ebuild
261 +++ /dev/null
262 @@ -1,153 +0,0 @@
263 -# Copyright 1999-2017 Gentoo Foundation
264 -# Distributed under the terms of the GNU General Public License v2
265 -
266 -EAPI="6"
267 -
268 -inherit eutils multilib user toolchain-funcs versionator
269 -
270 -DESCRIPTION="The PowerDNS Daemon"
271 -HOMEPAGE="https://www.powerdns.com/"
272 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
273 -
274 -LICENSE="GPL-2"
275 -SLOT="0"
276 -KEYWORDS="~amd64 ~x86"
277 -
278 -# other possible flags:
279 -# db2: we lack the dep
280 -# oracle: dito (need Oracle Client Libraries)
281 -# xdb: (almost) dead, surely not supported
282 -
283 -IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sqlite systemd tools tinydns test"
284 -
285 -REQUIRED_USE="mydns? ( mysql ) ?? ( lua luajit )"
286 -
287 -RDEPEND="
288 - libressl? ( dev-libs/libressl:= )
289 - !libressl? ( dev-libs/openssl:= )
290 - >=dev-libs/boost-1.35:=
291 - botan? ( =dev-libs/botan-1.10*[threads] )
292 - lua? ( dev-lang/lua:= )
293 - luajit? ( dev-lang/luajit:= )
294 - mysql? ( virtual/mysql )
295 - postgres? ( dev-db/postgresql:= )
296 - ldap? ( >=net-nds/openldap-2.0.27-r4 )
297 - sqlite? ( dev-db/sqlite:3 )
298 - opendbx? ( dev-db/opendbx )
299 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1 dev-libs/geoip )
300 - tinydns? ( >=dev-db/tinycdb-0.77 )
301 - protobuf? ( dev-libs/protobuf )"
302 -DEPEND="${RDEPEND}
303 - virtual/pkgconfig
304 - doc? ( app-doc/doxygen )"
305 -
306 -S="${WORKDIR}"/${P/_/-}
307 -
308 -src_configure() {
309 - local dynmodules="pipe bind" # the default backends, always enabled
310 -
311 - #use db2 && dynmodules+=" db2"
312 - use ldap && dynmodules+=" ldap"
313 - use lua && dynmodules+=" lua"
314 - use mydns && dynmodules+=" mydns"
315 - use mysql && dynmodules+=" gmysql"
316 - use opendbx && dynmodules+=" opendbx"
317 - #use oracle && dynmodules+=" goracle oracle"
318 - use postgres && dynmodules+=" gpgsql"
319 - use remote && dynmodules+=" remote"
320 - use sqlite && dynmodules+=" gsqlite3"
321 - use tinydns && dynmodules+=" tinydns"
322 - use geoip && dynmodules+=" geoip"
323 - #use xdb && dynmodules+=" xdb"
324 -
325 - econf \
326 - --disable-static \
327 - --sysconfdir=/etc/powerdns \
328 - --libdir=/usr/$(get_libdir)/powerdns \
329 - --with-modules= \
330 - --with-dynmodules="${dynmodules}" \
331 - --with-pgsql-includes=/usr/include \
332 - --with-pgsql-lib=/usr/$(get_libdir) \
333 - --with-mysql-lib=/usr/$(get_libdir) \
334 - $(use_enable botan botan1.10) \
335 - $(use_enable debug verbose-logging) \
336 - $(use_enable test unit-tests) \
337 - $(use_enable tools) \
338 - $(use_enable systemd) \
339 - $(use_with lua) \
340 - $(use_with luajit) \
341 - $(use_with protobuf) \
342 - ${myconf}
343 -}
344 -
345 -src_compile() {
346 - default
347 - use doc && emake -C codedocs codedocs
348 -}
349 -
350 -src_install() {
351 - default
352 -
353 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
354 -
355 - fperms 0700 /etc/powerdns
356 - fperms 0600 /etc/powerdns/pdns.conf
357 -
358 - # set defaults: setuid=pdns, setgid=pdns
359 - sed -i \
360 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
361 - "${D}"/etc/powerdns/pdns.conf
362 -
363 - newinitd "${FILESDIR}"/pdns-r1 pdns
364 -
365 - keepdir /var/empty
366 -
367 - use doc && dohtml -r codedocs/html/.
368 -
369 - # Install development headers
370 - insinto /usr/include/pdns
371 - doins pdns/*.hh
372 - insinto /usr/include/pdns/backends/gsql
373 - doins pdns/backends/gsql/*.hh
374 -
375 - if use ldap ; then
376 - insinto /etc/openldap/schema
377 - doins "${FILESDIR}"/dnsdomain2.schema
378 - fi
379 -
380 - prune_libtool_files --all
381 -}
382 -
383 -pkg_preinst() {
384 - enewgroup pdns
385 - enewuser pdns -1 -1 /var/empty pdns
386 -}
387 -
388 -pkg_postinst() {
389 - elog "PowerDNS provides multiple instances support. You can create more instances"
390 - elog "by symlinking the pdns init script to another name."
391 - elog
392 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
393 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
394 -
395 - if use ldap ; then
396 - ewarn "The official LDAP backend module is only compile-tested by upstream."
397 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
398 - fi
399 -
400 - local old
401 - for old in ${REPLACING_VERSIONS}; do
402 - version_compare ${old} 3.2
403 - [[ $? -eq 1 ]] || continue
404 -
405 - ewarn "To fix a security bug (bug #458018) had the following"
406 - ewarn "files/directories the world-readable bit removed (if set):"
407 - ewarn " ${EPREFIX}/etc/powerdns"
408 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
409 - ewarn "Check if this is correct for your setup"
410 - ewarn "This is a one-time change and will not happen on subsequent updates."
411 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
412 -
413 - break
414 - done
415 -}
416
417 diff --git a/net-dns/pdns/pdns-4.0.3.ebuild b/net-dns/pdns/pdns-4.0.3.ebuild
418 deleted file mode 100644
419 index c7455c660e7..00000000000
420 --- a/net-dns/pdns/pdns-4.0.3.ebuild
421 +++ /dev/null
422 @@ -1,153 +0,0 @@
423 -# Copyright 1999-2017 Gentoo Foundation
424 -# Distributed under the terms of the GNU General Public License v2
425 -
426 -EAPI="6"
427 -
428 -inherit eutils multilib user toolchain-funcs versionator
429 -
430 -DESCRIPTION="The PowerDNS Daemon"
431 -HOMEPAGE="https://www.powerdns.com/"
432 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
433 -
434 -LICENSE="GPL-2"
435 -SLOT="0"
436 -KEYWORDS="~amd64 ~x86"
437 -
438 -# other possible flags:
439 -# db2: we lack the dep
440 -# oracle: dito (need Oracle Client Libraries)
441 -# xdb: (almost) dead, surely not supported
442 -
443 -IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sqlite systemd tools tinydns test"
444 -
445 -REQUIRED_USE="mydns? ( mysql ) ?? ( lua luajit )"
446 -
447 -RDEPEND="
448 - libressl? ( dev-libs/libressl:= )
449 - !libressl? ( dev-libs/openssl:= )
450 - >=dev-libs/boost-1.35:=
451 - botan? ( =dev-libs/botan-1.10*[threads] )
452 - lua? ( dev-lang/lua:= )
453 - luajit? ( dev-lang/luajit:= )
454 - mysql? ( virtual/mysql )
455 - postgres? ( dev-db/postgresql:= )
456 - ldap? ( >=net-nds/openldap-2.0.27-r4 )
457 - sqlite? ( dev-db/sqlite:3 )
458 - opendbx? ( dev-db/opendbx )
459 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1 dev-libs/geoip )
460 - tinydns? ( >=dev-db/tinycdb-0.77 )
461 - protobuf? ( dev-libs/protobuf )"
462 -DEPEND="${RDEPEND}
463 - virtual/pkgconfig
464 - doc? ( app-doc/doxygen )"
465 -
466 -S="${WORKDIR}"/${P/_/-}
467 -
468 -src_configure() {
469 - local dynmodules="pipe bind" # the default backends, always enabled
470 -
471 - #use db2 && dynmodules+=" db2"
472 - use ldap && dynmodules+=" ldap"
473 - use lua && dynmodules+=" lua"
474 - use mydns && dynmodules+=" mydns"
475 - use mysql && dynmodules+=" gmysql"
476 - use opendbx && dynmodules+=" opendbx"
477 - #use oracle && dynmodules+=" goracle oracle"
478 - use postgres && dynmodules+=" gpgsql"
479 - use remote && dynmodules+=" remote"
480 - use sqlite && dynmodules+=" gsqlite3"
481 - use tinydns && dynmodules+=" tinydns"
482 - use geoip && dynmodules+=" geoip"
483 - #use xdb && dynmodules+=" xdb"
484 -
485 - econf \
486 - --disable-static \
487 - --sysconfdir=/etc/powerdns \
488 - --libdir=/usr/$(get_libdir)/powerdns \
489 - --with-modules= \
490 - --with-dynmodules="${dynmodules}" \
491 - --with-pgsql-includes=/usr/include \
492 - --with-pgsql-lib=/usr/$(get_libdir) \
493 - --with-mysql-lib=/usr/$(get_libdir) \
494 - $(use_enable botan botan1.10) \
495 - $(use_enable debug verbose-logging) \
496 - $(use_enable test unit-tests) \
497 - $(use_enable tools) \
498 - $(use_enable systemd) \
499 - $(use_with lua) \
500 - $(use_with luajit) \
501 - $(use_with protobuf) \
502 - ${myconf}
503 -}
504 -
505 -src_compile() {
506 - default
507 - use doc && emake -C codedocs codedocs
508 -}
509 -
510 -src_install() {
511 - default
512 -
513 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
514 -
515 - fperms 0700 /etc/powerdns
516 - fperms 0600 /etc/powerdns/pdns.conf
517 -
518 - # set defaults: setuid=pdns, setgid=pdns
519 - sed -i \
520 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
521 - "${D}"/etc/powerdns/pdns.conf
522 -
523 - doinitd "${FILESDIR}"/pdns
524 -
525 - keepdir /var/empty
526 -
527 - use doc && dohtml -r codedocs/html/.
528 -
529 - # Install development headers
530 - insinto /usr/include/pdns
531 - doins pdns/*.hh
532 - insinto /usr/include/pdns/backends/gsql
533 - doins pdns/backends/gsql/*.hh
534 -
535 - if use ldap ; then
536 - insinto /etc/openldap/schema
537 - doins "${FILESDIR}"/dnsdomain2.schema
538 - fi
539 -
540 - prune_libtool_files --all
541 -}
542 -
543 -pkg_preinst() {
544 - enewgroup pdns
545 - enewuser pdns -1 -1 /var/empty pdns
546 -}
547 -
548 -pkg_postinst() {
549 - elog "PowerDNS provides multiple instances support. You can create more instances"
550 - elog "by symlinking the pdns init script to another name."
551 - elog
552 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
553 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
554 -
555 - if use ldap ; then
556 - ewarn "The official LDAP backend module is only compile-tested by upstream."
557 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
558 - fi
559 -
560 - local old
561 - for old in ${REPLACING_VERSIONS}; do
562 - version_compare ${old} 3.2
563 - [[ $? -eq 1 ]] || continue
564 -
565 - ewarn "To fix a security bug (bug #458018) had the following"
566 - ewarn "files/directories the world-readable bit removed (if set):"
567 - ewarn " ${EPREFIX}/etc/powerdns"
568 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
569 - ewarn "Check if this is correct for your setup"
570 - ewarn "This is a one-time change and will not happen on subsequent updates."
571 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
572 -
573 - break
574 - done
575 -}