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