1 |
commit: 89eac2a6827af34d00b41249d357760dc0aa14dd |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 31 20:29:05 2019 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 31 20:29:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89eac2a6 |
7 |
|
8 |
net-dns/pdns: Version bump |
9 |
|
10 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
net-dns/pdns/Manifest | 1 + |
14 |
net-dns/pdns/pdns-4.1.6.ebuild | 157 +++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 158 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest |
18 |
index ba74f79b849..4c6d6c1aa4c 100644 |
19 |
--- a/net-dns/pdns/Manifest |
20 |
+++ b/net-dns/pdns/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pdns-4.1.5.tar.bz2 1116238 BLAKE2B f67b94881cce988a7ac9f579b3107422aff68d1b4c6d4dc8b3b066ce76abb5a280f8ded0b4640f4ce3f3aec0652bdf544ab4bfc83a2a2e7d2d363ceae0efb7c8 SHA512 c5c42975e6402f17b3cdf947a26c944a462d39c23bef44b6f6e823b8c9459be9e8bd750aa0481f9f707eec8b124c4edc4769a6241c75836583ee0bbe111e33e5 |
23 |
+DIST pdns-4.1.6.tar.bz2 1116100 BLAKE2B 691dc67c28342534dca11dafd786dededce930d39b1ef77670ff6627c175dbb527a3759aae7d3cc2fb56419d67baecc528c812ffee86da57e84c8da103bc991f SHA512 094e532ff50aeb54c8b3e46e3b4a77d1fb2c9d3d0fccce6ccb71b3825f5e53f53af680625ea4e98b5dbc29fbd210bc3b4a47c7f05b4b3ac2cf7537369a7e15b2 |
24 |
|
25 |
diff --git a/net-dns/pdns/pdns-4.1.6.ebuild b/net-dns/pdns/pdns-4.1.6.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..9c4996e63d3 |
28 |
--- /dev/null |
29 |
+++ b/net-dns/pdns/pdns-4.1.6.ebuild |
30 |
@@ -0,0 +1,157 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+inherit multilib user |
37 |
+ |
38 |
+DESCRIPTION="The PowerDNS Daemon" |
39 |
+HOMEPAGE="https://www.powerdns.com/" |
40 |
+SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+ |
46 |
+# other possible flags: |
47 |
+# db2: we lack the dep |
48 |
+# oracle: dito (need Oracle Client Libraries) |
49 |
+# xdb: (almost) dead, surely not supported |
50 |
+ |
51 |
+IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test" |
52 |
+ |
53 |
+REQUIRED_USE="mydns? ( mysql )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ libressl? ( dev-libs/libressl:= ) |
57 |
+ !libressl? ( dev-libs/openssl:= ) |
58 |
+ >=dev-libs/boost-1.35:= |
59 |
+ botan? ( dev-libs/botan:2= ) |
60 |
+ lua? ( |
61 |
+ !luajit? ( dev-lang/lua:= ) |
62 |
+ luajit? ( dev-lang/luajit:= ) |
63 |
+ ) |
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 |
+ opendbx? ( dev-db/opendbx ) |
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 |
+DEPEND="${RDEPEND}" |
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 lua && dynmodules+=" lua" |
85 |
+ use mydns && dynmodules+=" mydns" |
86 |
+ use mysql && dynmodules+=" gmysql" |
87 |
+ use opendbx && dynmodules+=" opendbx" |
88 |
+ #use oracle && dynmodules+=" goracle oracle" |
89 |
+ use postgres && dynmodules+=" gpgsql" |
90 |
+ use remote && dynmodules+=" remote" |
91 |
+ use sqlite && dynmodules+=" gsqlite3" |
92 |
+ use tinydns && dynmodules+=" tinydns" |
93 |
+ use geoip && dynmodules+=" geoip" |
94 |
+ #use xdb && dynmodules+=" xdb" |
95 |
+ |
96 |
+ econf \ |
97 |
+ --disable-static \ |
98 |
+ --sysconfdir=/etc/powerdns \ |
99 |
+ --libdir=/usr/$(get_libdir)/powerdns \ |
100 |
+ --with-modules= \ |
101 |
+ --with-dynmodules="${dynmodules}" \ |
102 |
+ --with-mysql-lib=/usr/$(get_libdir) \ |
103 |
+ $(use_enable botan) \ |
104 |
+ $(use_enable debug verbose-logging) \ |
105 |
+ $(use_enable test unit-tests) \ |
106 |
+ $(use_enable tools) \ |
107 |
+ $(use_enable systemd) \ |
108 |
+ $(use_enable sodium libsodium) \ |
109 |
+ $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \ |
110 |
+ '--without-lua --without-luajit') \ |
111 |
+ $(use_with protobuf) \ |
112 |
+ ${myconf} |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ default |
117 |
+ use doc && emake -C codedocs codedocs |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ default |
122 |
+ |
123 |
+ mv "${D}"/etc/powerdns/pdns.conf{-dist,} |
124 |
+ |
125 |
+ fperms 0700 /etc/powerdns |
126 |
+ fperms 0600 /etc/powerdns/pdns.conf |
127 |
+ |
128 |
+ # set defaults: setuid=pdns, setgid=pdns |
129 |
+ sed -i \ |
130 |
+ -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \ |
131 |
+ "${D}"/etc/powerdns/pdns.conf |
132 |
+ |
133 |
+ newinitd "${FILESDIR}"/pdns-r1 pdns |
134 |
+ |
135 |
+ keepdir /var/empty |
136 |
+ |
137 |
+ if use doc; then |
138 |
+ docinto html |
139 |
+ dodoc -r codedocs/html/. |
140 |
+ fi |
141 |
+ |
142 |
+ # Install development headers |
143 |
+ insinto /usr/include/pdns |
144 |
+ doins pdns/*.hh |
145 |
+ insinto /usr/include/pdns/backends/gsql |
146 |
+ doins pdns/backends/gsql/*.hh |
147 |
+ |
148 |
+ if use ldap ; then |
149 |
+ insinto /etc/openldap/schema |
150 |
+ doins "${FILESDIR}"/dnsdomain2.schema |
151 |
+ fi |
152 |
+ |
153 |
+ find "${D}" -name '*.la' -delete || die |
154 |
+} |
155 |
+ |
156 |
+pkg_preinst() { |
157 |
+ enewgroup pdns |
158 |
+ enewuser pdns -1 -1 /var/empty pdns |
159 |
+} |
160 |
+ |
161 |
+pkg_postinst() { |
162 |
+ elog "PowerDNS provides multiple instances support. You can create more instances" |
163 |
+ elog "by symlinking the pdns init script to another name." |
164 |
+ elog |
165 |
+ elog "The name must be in the format pdns.<suffix> and PowerDNS will use the" |
166 |
+ elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default." |
167 |
+ |
168 |
+ if use ldap ; then |
169 |
+ ewarn "The official LDAP backend module is only compile-tested by upstream." |
170 |
+ ewarn "Try net-dns/pdns-ldap-backend if you have problems with it." |
171 |
+ fi |
172 |
+ |
173 |
+ local old |
174 |
+ for old in ${REPLACING_VERSIONS}; do |
175 |
+ ver_test ${old} -lt 3.2 || continue |
176 |
+ |
177 |
+ ewarn "To fix a security bug (bug #458018) had the following" |
178 |
+ ewarn "files/directories the world-readable bit removed (if set):" |
179 |
+ ewarn " ${EPREFIX}/etc/powerdns" |
180 |
+ ewarn " ${EPREFIX}/etc/powerdns/pdns.conf" |
181 |
+ ewarn "Check if this is correct for your setup" |
182 |
+ ewarn "This is a one-time change and will not happen on subsequent updates." |
183 |
+ chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf} |
184 |
+ |
185 |
+ break |
186 |
+ done |
187 |
+} |