1 |
commit: 78cc00601534ed2a46734435be59406e613da17a |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 22 22:10:50 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 22 22:47:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78cc0060 |
7 |
|
8 |
net-dns/pdns-recursor: migrate to lua-single.eclass |
9 |
|
10 |
Another nice-and-easy PowerDNS package. Builds, tests and installs fine |
11 |
against all implementations currently in the tree. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/752804 |
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
.../pdns-recursor/pdns-recursor-4.4.2-r100.ebuild | 87 ++++++++++++++++++++++ |
17 |
profiles/package.mask | 1 + |
18 |
2 files changed, 88 insertions(+) |
19 |
|
20 |
diff --git a/net-dns/pdns-recursor/pdns-recursor-4.4.2-r100.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.4.2-r100.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..b14a7f9982c |
23 |
--- /dev/null |
24 |
+++ b/net-dns/pdns-recursor/pdns-recursor-4.4.2-r100.ebuild |
25 |
@@ -0,0 +1,87 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
32 |
+ |
33 |
+inherit flag-o-matic lua-single |
34 |
+ |
35 |
+DESCRIPTION="The PowerDNS Recursor" |
36 |
+HOMEPAGE="https://www.powerdns.com/" |
37 |
+SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
38 |
+ |
39 |
+LICENSE="GPL-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~arm ~x86" |
42 |
+IUSE="debug dnstap libressl protobuf snmp sodium systemd" |
43 |
+REQUIRED_USE="${LUA_REQUIRED_USE} |
44 |
+ dnstap? ( protobuf )" |
45 |
+ |
46 |
+DEPEND="${LUA_DEPS} |
47 |
+ protobuf? ( |
48 |
+ dev-libs/protobuf |
49 |
+ >=dev-libs/boost-1.42:= |
50 |
+ ) |
51 |
+ dnstap? ( dev-libs/fstrm ) |
52 |
+ systemd? ( sys-apps/systemd:0= ) |
53 |
+ snmp? ( net-analyzer/net-snmp ) |
54 |
+ sodium? ( dev-libs/libsodium:= ) |
55 |
+ libressl? ( dev-libs/libressl:= ) |
56 |
+ !libressl? ( dev-libs/openssl:= ) |
57 |
+ >=dev-libs/boost-1.35:=" |
58 |
+RDEPEND="${DEPEND} |
59 |
+ !<net-dns/pdns-2.9.20-r1 |
60 |
+ acct-user/pdns |
61 |
+ acct-group/pdns" |
62 |
+BDEPEND="virtual/pkgconfig" |
63 |
+ |
64 |
+S="${WORKDIR}"/${P/_/-} |
65 |
+ |
66 |
+pkg_setup() { |
67 |
+ lua-single_pkg_setup |
68 |
+ filter-flags -ftree-vectorize |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ econf \ |
73 |
+ --sysconfdir=/etc/powerdns \ |
74 |
+ --with-nod-cache-dir=/var/lib/powerdns \ |
75 |
+ --with-service-user=pdns \ |
76 |
+ --with-service-group=pdns \ |
77 |
+ --with-lua="${ELUA}" \ |
78 |
+ $(use_enable debug verbose-logging) \ |
79 |
+ $(use_enable systemd) \ |
80 |
+ $(use_enable dnstap dnstap) \ |
81 |
+ $(use_with sodium libsodium) \ |
82 |
+ $(use_with protobuf) \ |
83 |
+ $(use_with snmp net-snmp) |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ default |
88 |
+ |
89 |
+ mv "${D}"/etc/powerdns/recursor.conf{-dist,} |
90 |
+ |
91 |
+ # set defaults: setuid=nobody, setgid=nobody |
92 |
+ sed -i \ |
93 |
+ -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \ |
94 |
+ -e 's/^# quiet=$/quiet=on/' \ |
95 |
+ -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \ |
96 |
+ "${D}"/etc/powerdns/recursor.conf |
97 |
+ |
98 |
+ newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ local old |
103 |
+ |
104 |
+ for old in ${REPLACING_VERSIONS}; do |
105 |
+ ver_test ${old} -lt 4.0.0-r1 || continue |
106 |
+ |
107 |
+ ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor" |
108 |
+ ewarn "to pdns-recursor, please update your runlevels accordingly." |
109 |
+ |
110 |
+ break |
111 |
+ done |
112 |
+} |
113 |
|
114 |
diff --git a/profiles/package.mask b/profiles/package.mask |
115 |
index 2860cf13c43..a516bab7a4c 100644 |
116 |
--- a/profiles/package.mask |
117 |
+++ b/profiles/package.mask |
118 |
@@ -562,6 +562,7 @@ kde-apps/kdebase-meta:5 |
119 |
>=net-dns/dnsdist-1.5.1-r100 |
120 |
>=net-dns/dnsmasq-2.82-r100 |
121 |
>=net-dns/pdns-4.4.0-r100 |
122 |
+>=net-dns/pdns-recursor-4.4.2-r100 |
123 |
>=net-im/prosody-0.11.7-r100 |
124 |
>=net-im/swift-4.0.2-r100 |
125 |
>=net-irc/hexchat-2.14.3-r100 |