1 |
commit: bbcc6011d3831063aaaa9bd07c39211e495f8fe0 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 15:26:33 2022 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 15:30:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbcc6011 |
7 |
|
8 |
net-dns/pdns: Version bump to 4.6.0 |
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.0.ebuild | 167 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 168 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest |
18 |
index eb75caeaeb8d..2e33a5a52d19 100644 |
19 |
--- a/net-dns/pdns/Manifest |
20 |
+++ b/net-dns/pdns/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST pdns-4.4.1.tar.bz2 1276990 BLAKE2B 9771cf3273ab7e8ab4607a91563bfe0dc3f4532b |
22 |
DIST pdns-4.4.2.tar.bz2 1273410 BLAKE2B 71c6bdf9e6253babb69e221b7fbc9e500dc92cdd8ba14a1ec2b22986355663f66ddb72579dde42eb4532206263e74a874ea1ce23b3407a019c30b9ca10a2f04a SHA512 cf96a55179f19f75972bcd636b858c9d112662d0007b8895deeea7737f6f348d4318ecb5d2c2e77f66d1af82575a0f9a3207e16da1e70fc8bb316226f9252205 |
23 |
DIST pdns-4.5.2.tar.bz2 1266572 BLAKE2B 9bd3d391e32c4040cc916003a45d47784ea309dd43a326919e2ca5415e1a1c542d5937cf1570951a4100a524a933aa9c0114ef8e28957f64acb6f7a7fa18e237 SHA512 0a183d8c0bb517799afa0f9382e3c06ad3c6e9c871b7912073a860364ca97dc121be2372080100677db10601c8ef96ad56b10787c02a9a9ede82f8a1cc904c6e |
24 |
DIST pdns-4.5.3.tar.bz2 1265929 BLAKE2B 49425dd65bc2ea1ceaba5349db828b8e7e0031f7327bc867235fe293a107cebae69f734731a21369616ce2a5121309490556ba7838a91a9cabb74a6f0d4e42c0 SHA512 9708f69ed045c801e5cbc5d62f57532ad461f1e9e4574fe2b5d5f72e8534587cfc28f55afaaa1a52f59d7feb8331a683b3f5db7e896d01002996321598550607 |
25 |
+DIST pdns-4.6.0.tar.bz2 1299604 BLAKE2B 832e2dfb2a66fafd40d096193aad30feae8b751585199e9e4c9092e6bc02f478b617be1997df4bff58ce0a9b69100654bfafc062c4bf96ffad230132de9ce5d0 SHA512 bbe64ad01fed0ea93cec90d47b2fe71228b9298999f14456dd4b5617929c0e370b5b7cb568deeb17cbf3fd42873bb8c986e655ddda8c7b93b4591361ddef2397 |
26 |
|
27 |
diff --git a/net-dns/pdns/pdns-4.6.0.ebuild b/net-dns/pdns/pdns-4.6.0.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..b5bfd57800c4 |
30 |
--- /dev/null |
31 |
+++ b/net-dns/pdns/pdns-4.6.0.ebuild |
32 |
@@ -0,0 +1,167 @@ |
33 |
+# Copyright 1999-2022 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 flag-o-matic 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 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 |
+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 mydns && dynmodules+=" mydns" |
93 |
+ use mysql && dynmodules+=" gmysql" |
94 |
+ #use oracle && dynmodules+=" goracle oracle" |
95 |
+ use postgres && dynmodules+=" gpgsql" |
96 |
+ use remote && dynmodules+=" remote" |
97 |
+ use sqlite && dynmodules+=" gsqlite3" |
98 |
+ use tinydns && dynmodules+=" tinydns" |
99 |
+ use geoip && dynmodules+=" geoip" |
100 |
+ #use xdb && dynmodules+=" xdb" |
101 |
+ |
102 |
+ econf \ |
103 |
+ --disable-static \ |
104 |
+ --sysconfdir=/etc/powerdns \ |
105 |
+ --libdir=/usr/$(get_libdir)/powerdns \ |
106 |
+ --with-service-user=pdns \ |
107 |
+ --with-service-group=pdns \ |
108 |
+ --with-modules= \ |
109 |
+ --with-dynmodules="${dynmodules}" \ |
110 |
+ --with-mysql-lib=/usr/$(get_libdir) \ |
111 |
+ --with-lua="${ELUA}" \ |
112 |
+ $(use_enable debug verbose-logging) \ |
113 |
+ $(use_enable lua-records) \ |
114 |
+ $(use_enable test unit-tests) \ |
115 |
+ $(use_enable tools) \ |
116 |
+ $(use_enable systemd) \ |
117 |
+ $(use_with sodium libsodium) \ |
118 |
+ ${myconf} |
119 |
+} |
120 |
+ |
121 |
+src_compile() { |
122 |
+ default |
123 |
+ use doc && emake -C codedocs codedocs |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ default |
128 |
+ |
129 |
+ mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
130 |
+ |
131 |
+ fperms 0700 /etc/powerdns |
132 |
+ fperms 0600 /etc/powerdns/pdns.conf |
133 |
+ |
134 |
+ # set defaults: setuid=pdns, setgid=pdns |
135 |
+ sed -i \ |
136 |
+ -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
137 |
+ "${D}"/etc/powerdns/pdns.conf |
138 |
+ |
139 |
+ newinitd "${FILESDIR}"/pdns-r1 pdns |
140 |
+ |
141 |
+ keepdir /var/empty |
142 |
+ |
143 |
+ if use doc; then |
144 |
+ docinto html |
145 |
+ dodoc -r codedocs/html/. |
146 |
+ fi |
147 |
+ |
148 |
+ # Install development headers |
149 |
+ insinto /usr/include/pdns |
150 |
+ doins pdns/*.hh |
151 |
+ insinto /usr/include/pdns/backends/gsql |
152 |
+ doins pdns/backends/gsql/*.hh |
153 |
+ |
154 |
+ if use ldap ; then |
155 |
+ insinto /etc/openldap/schema |
156 |
+ doins "${FILESDIR}"/dnsdomain2.schema |
157 |
+ fi |
158 |
+ |
159 |
+ find "${D}" -name '*.la' -delete || die |
160 |
+} |
161 |
+ |
162 |
+pkg_postinst() { |
163 |
+ elog "PowerDNS provides multiple instances support. You can create more instances" |
164 |
+ elog "by symlinking the pdns init script to another name." |
165 |
+ elog |
166 |
+ elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
167 |
+ elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
168 |
+ |
169 |
+ local old |
170 |
+ for old in ${REPLACING_VERSIONS}; do |
171 |
+ ver_test ${old} -lt 3.2 || continue |
172 |
+ |
173 |
+ echo |
174 |
+ ewarn "To fix a security bug (bug #458018) had the following" |
175 |
+ ewarn "files/directories the world-readable bit removed (if set):" |
176 |
+ ewarn " ${EPREFIX}/etc/powerdns" |
177 |
+ ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
178 |
+ ewarn "Check if this is correct for your setup" |
179 |
+ ewarn "This is a one-time change and will not happen on subsequent updates." |
180 |
+ chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
181 |
+ |
182 |
+ break |
183 |
+ done |
184 |
+ |
185 |
+ if use postgres; then |
186 |
+ for old in ${REPLACING_VERSIONS}; do |
187 |
+ ver_test ${old} -lt 4.1.11-r1 || continue |
188 |
+ |
189 |
+ echo |
190 |
+ ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend." |
191 |
+ ewarn "This security fix needs to be applied manually to the database schema." |
192 |
+ ewarn "Please refer to the official security advisory for more information:" |
193 |
+ ewarn |
194 |
+ ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html" |
195 |
+ |
196 |
+ break |
197 |
+ done |
198 |
+ fi |
199 |
+} |