1 |
commit: a24df534b9d44cf06232a46c7bddfa5653f4dbec |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 19 21:16:59 2021 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 23 07:14:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a24df534 |
7 |
|
8 |
net-dns/pdns: Version bump to 4.4.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, 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.4.2.ebuild | 172 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 173 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest |
18 |
index 79272d8e502e..9a63416ce99c 100644 |
19 |
--- a/net-dns/pdns/Manifest |
20 |
+++ b/net-dns/pdns/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST pdns-4.4.1.tar.bz2 1276990 BLAKE2B 9771cf3273ab7e8ab4607a91563bfe0dc3f4532b5420861d816eacd2798d66de3a1eb824c191264f9106ec47bd6003d99108b8df678190055948779b9b3b070f SHA512 a6f31972f77ded8ecfb523e8810dd90e5b7aa628746fee2a9a0daae2a7935800f111ce8617ffd71d5ce3881947d4ffc36c9cb37996a7bcc514536bb4abe1f79e |
23 |
+DIST pdns-4.4.2.tar.bz2 1273410 BLAKE2B 71c6bdf9e6253babb69e221b7fbc9e500dc92cdd8ba14a1ec2b22986355663f66ddb72579dde42eb4532206263e74a874ea1ce23b3407a019c30b9ca10a2f04a SHA512 cf96a55179f19f75972bcd636b858c9d112662d0007b8895deeea7737f6f348d4318ecb5d2c2e77f66d1af82575a0f9a3207e16da1e70fc8bb316226f9252205 |
24 |
DIST pdns-4.5.1.tar.bz2 1274965 BLAKE2B 8b1f91b425f02af5a1f6b8a22fe5e689fb9854686058c7ae2dbac5fe29c9562f9a4fff829fe6b7aad595e1fe2a55af19d09d4b002ec8f88115887cb8a74d042b SHA512 428be2bea0d39613fe31def9116c0d3dbfc95eac953ca058df088f06a971a5a1a49067f83c99719af2657e7abcf2e7c471311bd26a1ebf1bae2bd70e1a823fca |
25 |
DIST pdns-4.5.2.tar.bz2 1266572 BLAKE2B 9bd3d391e32c4040cc916003a45d47784ea309dd43a326919e2ca5415e1a1c542d5937cf1570951a4100a524a933aa9c0114ef8e28957f64acb6f7a7fa18e237 SHA512 0a183d8c0bb517799afa0f9382e3c06ad3c6e9c871b7912073a860364ca97dc121be2372080100677db10601c8ef96ad56b10787c02a9a9ede82f8a1cc904c6e |
26 |
|
27 |
diff --git a/net-dns/pdns/pdns-4.4.2.ebuild b/net-dns/pdns/pdns-4.4.2.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..20d36e3033f3 |
30 |
--- /dev/null |
31 |
+++ b/net-dns/pdns/pdns-4.4.2.ebuild |
32 |
@@ -0,0 +1,172 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
39 |
+ |
40 |
+inherit autotools lua-single |
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="debug doc geoip ldap lua-records mydns mysql postgres protobuf remote sodium sqlite systemd tools tinydns test" |
56 |
+RESTRICT="!test? ( test )" |
57 |
+ |
58 |
+REQUIRED_USE="${LUA_REQUIRED_USE} |
59 |
+ mydns? ( mysql )" |
60 |
+ |
61 |
+DEPEND="${LUA_DEPS} |
62 |
+ dev-libs/openssl:= |
63 |
+ >=dev-libs/boost-1.35:= |
64 |
+ lua-records? ( >=net-misc/curl-7.21.3 ) |
65 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
66 |
+ postgres? ( dev-db/postgresql:= ) |
67 |
+ ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 ) |
68 |
+ sqlite? ( dev-db/sqlite:3 ) |
69 |
+ geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip ) |
70 |
+ sodium? ( dev-libs/libsodium:= ) |
71 |
+ tinydns? ( >=dev-db/tinycdb-0.77 ) |
72 |
+ protobuf? ( dev-libs/protobuf )" |
73 |
+RDEPEND="${DEPEND} |
74 |
+ acct-user/pdns |
75 |
+ acct-group/pdns" |
76 |
+ |
77 |
+BDEPEND="virtual/pkgconfig |
78 |
+ doc? ( app-doc/doxygen[dot] )" |
79 |
+ |
80 |
+S="${WORKDIR}"/${P/_/-} |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${PN}-4.4.1-boost-1.76.patch |
84 |
+) |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ eautoreconf |
89 |
+} |
90 |
+ |
91 |
+src_configure() { |
92 |
+ local dynmodules="pipe bind" # the default backends, always enabled |
93 |
+ |
94 |
+ #use db2 && dynmodules+=" db2" |
95 |
+ use ldap && dynmodules+=" ldap" |
96 |
+ use mydns && dynmodules+=" mydns" |
97 |
+ use mysql && dynmodules+=" gmysql" |
98 |
+ #use oracle && dynmodules+=" goracle oracle" |
99 |
+ use postgres && dynmodules+=" gpgsql" |
100 |
+ use remote && dynmodules+=" remote" |
101 |
+ use sqlite && dynmodules+=" gsqlite3" |
102 |
+ use tinydns && dynmodules+=" tinydns" |
103 |
+ use geoip && dynmodules+=" geoip" |
104 |
+ #use xdb && dynmodules+=" xdb" |
105 |
+ |
106 |
+ econf \ |
107 |
+ --disable-static \ |
108 |
+ --sysconfdir=/etc/powerdns \ |
109 |
+ --libdir=/usr/$(get_libdir)/powerdns \ |
110 |
+ --with-service-user=pdns \ |
111 |
+ --with-service-group=pdns \ |
112 |
+ --with-modules= \ |
113 |
+ --with-dynmodules="${dynmodules}" \ |
114 |
+ --with-mysql-lib=/usr/$(get_libdir) \ |
115 |
+ --with-lua="${ELUA}" \ |
116 |
+ $(use_enable debug verbose-logging) \ |
117 |
+ $(use_enable lua-records) \ |
118 |
+ $(use_enable test unit-tests) \ |
119 |
+ $(use_enable tools) \ |
120 |
+ $(use_enable systemd) \ |
121 |
+ $(use_with sodium libsodium) \ |
122 |
+ $(use_with protobuf) \ |
123 |
+ ${myconf} |
124 |
+} |
125 |
+ |
126 |
+src_compile() { |
127 |
+ default |
128 |
+ use doc && emake -C codedocs codedocs |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ default |
133 |
+ |
134 |
+ mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
135 |
+ |
136 |
+ fperms 0700 /etc/powerdns |
137 |
+ fperms 0600 /etc/powerdns/pdns.conf |
138 |
+ |
139 |
+ # set defaults: setuid=pdns, setgid=pdns |
140 |
+ sed -i \ |
141 |
+ -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
142 |
+ "${D}"/etc/powerdns/pdns.conf |
143 |
+ |
144 |
+ newinitd "${FILESDIR}"/pdns-r1 pdns |
145 |
+ |
146 |
+ keepdir /var/empty |
147 |
+ |
148 |
+ if use doc; then |
149 |
+ docinto html |
150 |
+ dodoc -r codedocs/html/. |
151 |
+ fi |
152 |
+ |
153 |
+ # Install development headers |
154 |
+ insinto /usr/include/pdns |
155 |
+ doins pdns/*.hh |
156 |
+ insinto /usr/include/pdns/backends/gsql |
157 |
+ doins pdns/backends/gsql/*.hh |
158 |
+ |
159 |
+ if use ldap ; then |
160 |
+ insinto /etc/openldap/schema |
161 |
+ doins "${FILESDIR}"/dnsdomain2.schema |
162 |
+ fi |
163 |
+ |
164 |
+ find "${D}" -name '*.la' -delete || die |
165 |
+} |
166 |
+ |
167 |
+pkg_postinst() { |
168 |
+ elog "PowerDNS provides multiple instances support. You can create more instances" |
169 |
+ elog "by symlinking the pdns init script to another name." |
170 |
+ elog |
171 |
+ elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
172 |
+ elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
173 |
+ |
174 |
+ local old |
175 |
+ for old in ${REPLACING_VERSIONS}; do |
176 |
+ ver_test ${old} -lt 3.2 || continue |
177 |
+ |
178 |
+ echo |
179 |
+ ewarn "To fix a security bug (bug #458018) had the following" |
180 |
+ ewarn "files/directories the world-readable bit removed (if set):" |
181 |
+ ewarn " ${EPREFIX}/etc/powerdns" |
182 |
+ ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
183 |
+ ewarn "Check if this is correct for your setup" |
184 |
+ ewarn "This is a one-time change and will not happen on subsequent updates." |
185 |
+ chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
186 |
+ |
187 |
+ break |
188 |
+ done |
189 |
+ |
190 |
+ if use postgres; then |
191 |
+ for old in ${REPLACING_VERSIONS}; do |
192 |
+ ver_test ${old} -lt 4.1.11-r1 || continue |
193 |
+ |
194 |
+ echo |
195 |
+ ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend." |
196 |
+ ewarn "This security fix needs to be applied manually to the database schema." |
197 |
+ ewarn "Please refer to the official security advisory for more information:" |
198 |
+ ewarn |
199 |
+ ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html" |
200 |
+ |
201 |
+ break |
202 |
+ done |
203 |
+ fi |
204 |
+} |