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: Sat, 03 Oct 2020 11:05:35
Message-Id: 1601723033.6842082c6e057977fed0d94e3d444beb8993205f.swegener@gentoo
1 commit: 6842082c6e057977fed0d94e3d444beb8993205f
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 11:02:48 2020 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 11:03:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6842082c
7
8 net-dns/pdns: Cleanup
9
10 Bug: https://bugs.gentoo.org/744160
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
13
14 net-dns/pdns/Manifest | 1 -
15 net-dns/pdns/pdns-4.3.0.ebuild | 170 -----------------------------------------
16 2 files changed, 171 deletions(-)
17
18 diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest
19 index 718d3a2d3e7..382f6561c5f 100644
20 --- a/net-dns/pdns/Manifest
21 +++ b/net-dns/pdns/Manifest
22 @@ -1,2 +1 @@
23 -DIST pdns-4.3.0.tar.bz2 1211536 BLAKE2B 3291597c4f0c39e23f793b128ef26b1ce3dc77640ddf6979242ab291b0e2780ae5c19b18591ea90f5282810044959feca265a245e27eca1f2ebacbdeeb8a3785 SHA512 0734dbfb83a2e5080dc54cfc016ceb3e1f7e15a2de2f33392b2f3c995357fa97f9e87ff21e969f148c3e881165471d3058eb2b9cf632117ebce0d7818e025fe2
24 DIST pdns-4.3.1.tar.bz2 1216876 BLAKE2B 0449835d104ec430329dc88087b489e29f1e1fa0c2a22af8715883a0a80d73f3a4848df207abbf986b946c640c4f1d35a1c8335f13f96a00915e4a40bcbecc9f SHA512 e61e23544f1e57c1ec3a85b4edbc3ff3e8e831410237afdc8896e9f34602774c1dc8bd02eb7440e765262fcc988f98e47b6f1b7945427b1f4a59dd6b84b9437e
25
26 diff --git a/net-dns/pdns/pdns-4.3.0.ebuild b/net-dns/pdns/pdns-4.3.0.ebuild
27 deleted file mode 100644
28 index 91ef4052527..00000000000
29 --- a/net-dns/pdns/pdns-4.3.0.ebuild
30 +++ /dev/null
31 @@ -1,170 +0,0 @@
32 -# Copyright 1999-2020 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI="7"
36 -
37 -inherit multilib
38 -
39 -DESCRIPTION="The PowerDNS Daemon"
40 -HOMEPAGE="https://www.powerdns.com/"
41 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0"
45 -KEYWORDS="amd64 x86"
46 -
47 -# other possible flags:
48 -# db2: we lack the dep
49 -# oracle: dito (need Oracle Client Libraries)
50 -# xdb: (almost) dead, surely not supported
51 -
52 -IUSE="debug doc geoip ldap libressl luajit lua-records mydns mysql postgres protobuf remote sodium sqlite systemd tools tinydns test"
53 -RESTRICT="!test? ( test )"
54 -
55 -REQUIRED_USE="mydns? ( mysql )"
56 -
57 -RDEPEND="
58 - libressl? ( dev-libs/libressl:= )
59 - !libressl? ( dev-libs/openssl:= )
60 - >=dev-libs/boost-1.35:=
61 - !luajit? ( dev-lang/lua:= )
62 - luajit? ( dev-lang/luajit:= )
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 - protobuf? ( dev-libs/protobuf )"
72 -DEPEND="${RDEPEND}"
73 -RDEPEND="${RDEPEND}
74 - acct-user/pdns
75 - acct-group/pdns"
76 -
77 -BDEPEND="virtual/pkgconfig
78 - doc? ( app-doc/doxygen )"
79 -
80 -S="${WORKDIR}"/${P/_/-}
81 -
82 -PATCHES=( "${FILESDIR}"/${P}-boost-1.73-compatibility.patch )
83 -
84 -src_configure() {
85 - local dynmodules="pipe bind" # the default backends, always enabled
86 -
87 - #use db2 && dynmodules+=" db2"
88 - use ldap && dynmodules+=" ldap"
89 - use mydns && dynmodules+=" mydns"
90 - use mysql && dynmodules+=" gmysql"
91 - #use oracle && dynmodules+=" goracle oracle"
92 - use postgres && dynmodules+=" gpgsql"
93 - use remote && dynmodules+=" remote"
94 - use sqlite && dynmodules+=" gsqlite3"
95 - use tinydns && dynmodules+=" tinydns"
96 - use geoip && dynmodules+=" geoip"
97 - #use xdb && dynmodules+=" xdb"
98 -
99 - econf \
100 - --disable-static \
101 - --sysconfdir=/etc/powerdns \
102 - --libdir=/usr/$(get_libdir)/powerdns \
103 - --with-modules= \
104 - --with-dynmodules="${dynmodules}" \
105 - --with-mysql-lib=/usr/$(get_libdir) \
106 - --with-lua=$(usex luajit luajit lua) \
107 - $(use_enable debug verbose-logging) \
108 - $(use_enable lua-records) \
109 - $(use_enable test unit-tests) \
110 - $(use_enable tools) \
111 - $(use_enable systemd) \
112 - $(use_with sodium libsodium) \
113 - $(use_with protobuf) \
114 - ${myconf}
115 -}
116 -
117 -src_compile() {
118 - default
119 - use doc && emake -C codedocs codedocs
120 -}
121 -
122 -src_install() {
123 - default
124 -
125 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
126 -
127 - fperms 0700 /etc/powerdns
128 - fperms 0600 /etc/powerdns/pdns.conf
129 -
130 - # set defaults: setuid=pdns, setgid=pdns
131 - sed -i \
132 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
133 - "${D}"/etc/powerdns/pdns.conf
134 -
135 - newinitd "${FILESDIR}"/pdns-r1 pdns
136 -
137 - keepdir /var/empty
138 -
139 - if use doc; then
140 - docinto html
141 - dodoc -r codedocs/html/.
142 - fi
143 -
144 - # Install development headers
145 - insinto /usr/include/pdns
146 - doins pdns/*.hh
147 - insinto /usr/include/pdns/backends/gsql
148 - doins pdns/backends/gsql/*.hh
149 -
150 - if use ldap ; then
151 - insinto /etc/openldap/schema
152 - doins "${FILESDIR}"/dnsdomain2.schema
153 - fi
154 -
155 - find "${D}" -name '*.la' -delete || die
156 -}
157 -
158 -pkg_postinst() {
159 - elog "PowerDNS provides multiple instances support. You can create more instances"
160 - elog "by symlinking the pdns init script to another name."
161 - elog
162 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
163 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
164 -
165 - if use ldap ; then
166 - echo
167 - ewarn "The official LDAP backend module is only compile-tested by upstream."
168 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
169 - fi
170 -
171 - local old
172 - for old in ${REPLACING_VERSIONS}; do
173 - ver_test ${old} -lt 3.2 || continue
174 -
175 - echo
176 - ewarn "To fix a security bug (bug #458018) had the following"
177 - ewarn "files/directories the world-readable bit removed (if set):"
178 - ewarn " ${EPREFIX}/etc/powerdns"
179 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
180 - ewarn "Check if this is correct for your setup"
181 - ewarn "This is a one-time change and will not happen on subsequent updates."
182 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
183 -
184 - break
185 - done
186 -
187 - if use postgres; then
188 - for old in ${REPLACING_VERSIONS}; do
189 - ver_test ${old} -lt 4.1.11-r1 || continue
190 -
191 - echo
192 - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend."
193 - ewarn "This security fix needs to be applied manually to the database schema."
194 - ewarn "Please refer to the official security advisory for more information:"
195 - ewarn
196 - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html"
197 -
198 - break
199 - done
200 - fi
201 -}