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/
Date: Mon, 22 Aug 2022 18:54:55
Message-Id: 1661194444.2720895b51dde28d8902a7a134b55142b0617cfb.swegener@gentoo
1 commit: 2720895b51dde28d8902a7a134b55142b0617cfb
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 22 18:50:57 2022 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 22 18:54:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2720895b
7
8 net-dns/pdns: Cleanup
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
12
13 net-dns/pdns/Manifest | 1 -
14 net-dns/pdns/pdns-4.6.2-r1.ebuild | 170 --------------------------------------
15 2 files changed, 171 deletions(-)
16
17 diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest
18 index 042001801d4f..f60ae1ab6846 100644
19 --- a/net-dns/pdns/Manifest
20 +++ b/net-dns/pdns/Manifest
21 @@ -1,2 +1 @@
22 -DIST pdns-4.6.2.tar.bz2 1302527 BLAKE2B ff4e7f5ab0d0cd176e6c714d5bdf0b231ee05f092c91b19309b62b4d638d2fd1149e426ae98e153b1f64aca1f972f69c3475ee672936b85cc810f305ce899f90 SHA512 10e7f4338f99f063ca8d694c148d468e66dd1b9feb2cf8dba04861396addb138b9335908d666e7e2701424d1fdb3c29e40b596098f19b1443643b9e6ab356c0a
23 DIST pdns-4.6.3.tar.bz2 1302651 BLAKE2B 58a66952293bd5caf7b03d114e11f4d6774f5f2aab969b33c1c510b745790f7276b9913cc03e3e4565e5b1de6f61decf338a3b6430d0429c2b87cc9690d9388d SHA512 ea44a0c929e36bf9002d8db7bf1e06ec372a08b31b60c74bbc3ea5600073fb745151f33798a0a4bd151ce17ad7efb07be30f7ddcf620d5bdaab6de4f37f4296f
24
25 diff --git a/net-dns/pdns/pdns-4.6.2-r1.ebuild b/net-dns/pdns/pdns-4.6.2-r1.ebuild
26 deleted file mode 100644
27 index 4bf6be5ad8f0..000000000000
28 --- a/net-dns/pdns/pdns-4.6.2-r1.ebuild
29 +++ /dev/null
30 @@ -1,170 +0,0 @@
31 -# Copyright 1999-2022 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -LUA_COMPAT=( lua5-{1..4} luajit )
37 -
38 -inherit flag-o-matic lua-single
39 -
40 -DESCRIPTION="The PowerDNS Daemon"
41 -HOMEPAGE="https://www.powerdns.com/"
42 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
43 -
44 -LICENSE="GPL-2"
45 -SLOT="0"
46 -KEYWORDS="amd64 x86"
47 -
48 -# other possible flags:
49 -# db2: we lack the dep
50 -# oracle: dito (need Oracle Client Libraries)
51 -# xdb: (almost) dead, surely not supported
52 -
53 -IUSE="debug doc geoip ldap lmdb lua-records mydns mysql postgres remote sodium sqlite systemd tools tinydns test"
54 -RESTRICT="!test? ( test )"
55 -
56 -REQUIRED_USE="${LUA_REQUIRED_USE}
57 - mydns? ( mysql )"
58 -
59 -DEPEND="${LUA_DEPS}
60 - dev-libs/openssl:=
61 - >=dev-libs/boost-1.35:=
62 - lmdb? ( >=dev-db/lmdb-0.9.29 )
63 - lua-records? ( >=net-misc/curl-7.21.3 )
64 - mysql? ( dev-db/mysql-connector-c:= )
65 - postgres? ( dev-db/postgresql:= )
66 - ldap? ( >=net-nds/openldap-2.0.27-r4:= app-crypt/mit-krb5 )
67 - sqlite? ( dev-db/sqlite:3 )
68 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip )
69 - sodium? ( dev-libs/libsodium:= )
70 - tinydns? ( >=dev-db/tinycdb-0.77 )
71 - elibc_glibc? ( x86? ( >=sys-libs/glibc-2.34 ) )"
72 -RDEPEND="${DEPEND}
73 - acct-user/pdns
74 - acct-group/pdns"
75 -
76 -BDEPEND="virtual/pkgconfig
77 - doc? ( app-doc/doxygen[dot] )"
78 -
79 -S="${WORKDIR}"/${P/_/-}
80 -
81 -pkg_setup() {
82 - lua-single_pkg_setup
83 - append-lfs-flags
84 - append-cppflags -D_TIME_BITS=64
85 -}
86 -
87 -src_configure() {
88 - local dynmodules="pipe bind" # the default backends, always enabled
89 -
90 - #use db2 && dynmodules+=" db2"
91 - use ldap && dynmodules+=" ldap"
92 - use lmdb && dynmodules+=" lmdb"
93 - use mydns && dynmodules+=" mydns"
94 - use mysql && dynmodules+=" gmysql"
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-service-user=pdns \
108 - --with-service-group=pdns \
109 - --with-modules= \
110 - --with-dynmodules="${dynmodules}" \
111 - --with-mysql-lib=/usr/$(get_libdir) \
112 - --with-lua="${ELUA}" \
113 - $(use_enable debug verbose-logging) \
114 - $(use_enable lua-records) \
115 - $(use_enable test unit-tests) \
116 - $(use_enable tools) \
117 - $(use_enable systemd) \
118 - $(use_with sodium libsodium) \
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 - if use doc; then
145 - docinto html
146 - dodoc -r codedocs/html/.
147 - fi
148 -
149 - # Install development headers
150 - insinto /usr/include/pdns
151 - doins pdns/*.hh
152 - insinto /usr/include/pdns/backends/gsql
153 - doins pdns/backends/gsql/*.hh
154 -
155 - if use ldap ; then
156 - insinto /etc/openldap/schema
157 - doins "${FILESDIR}"/dnsdomain2.schema
158 - fi
159 -
160 - find "${D}" -name '*.la' -delete || die
161 -}
162 -
163 -pkg_postinst() {
164 - elog "PowerDNS provides multiple instances support. You can create more instances"
165 - elog "by symlinking the pdns init script to another name."
166 - elog
167 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
168 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
169 -
170 - local old
171 - for old in ${REPLACING_VERSIONS}; do
172 - ver_test ${old} -lt 3.2 || continue
173 -
174 - echo
175 - ewarn "To fix a security bug (bug #458018) had the following"
176 - ewarn "files/directories the world-readable bit removed (if set):"
177 - ewarn " ${EPREFIX}/etc/powerdns"
178 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
179 - ewarn "Check if this is correct for your setup"
180 - ewarn "This is a one-time change and will not happen on subsequent updates."
181 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
182 -
183 - break
184 - done
185 -
186 - if use postgres; then
187 - for old in ${REPLACING_VERSIONS}; do
188 - ver_test ${old} -lt 4.1.11-r1 || continue
189 -
190 - echo
191 - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend."
192 - ewarn "This security fix needs to be applied manually to the database schema."
193 - ewarn "Please refer to the official security advisory for more information:"
194 - ewarn
195 - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html"
196 -
197 - break
198 - done
199 - fi
200 -}