1 |
commit: ae3f99ab804d90db772d2a780f2c9cbf460f37e6 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 31 21:35:32 2019 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 1 13:37:26 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae3f99ab |
7 |
|
8 |
net-dns/pdns-recursor: 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-recursor/Manifest | 1 + |
14 |
net-dns/pdns-recursor/pdns-recursor-4.1.11.ebuild | 78 +++++++++++++++++++++++ |
15 |
2 files changed, 79 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest |
18 |
index 62cf394f365..ee58629e78d 100644 |
19 |
--- a/net-dns/pdns-recursor/Manifest |
20 |
+++ b/net-dns/pdns-recursor/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pdns-recursor-4.1.10.tar.bz2 1238148 BLAKE2B b68e33b40d5f1a680cbbd76c9864439a84416071dc75d658a3988e891da7f6a5d0c197d8dda7ff014a30b7f762bfbe5db4a616a6cad4415fd46db119b51ba70a SHA512 204ea40f5c14d1e589935af4fbd24c102090390d741dbc5ad28f4c20044011f4b2b1c7926d8caaf144a7b2b1680f793e66199c5e9238e926da9fba60c5573dcd |
23 |
+DIST pdns-recursor-4.1.11.tar.bz2 1239986 BLAKE2B 33c9b2a2f811c43b67ad2bddf5a11d5d95cc88679d46ba3513f3eeec97bf7694af493a9fea4f733f003056b5f0fc971112e9062883324102ecca28838e2f3e41 SHA512 6041d31f0a517786f44a7fa22c7bfa94d5d4bdc3a7f349d2b47bc66be87404fe8eaf76f45ca18ef8ab96a45c0271f46fdba93a51fbda2542a3ad96e10f51c1d1 |
24 |
|
25 |
diff --git a/net-dns/pdns-recursor/pdns-recursor-4.1.11.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.1.11.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..c054da53cee |
28 |
--- /dev/null |
29 |
+++ b/net-dns/pdns-recursor/pdns-recursor-4.1.11.ebuild |
30 |
@@ -0,0 +1,78 @@ |
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 flag-o-matic |
37 |
+ |
38 |
+DESCRIPTION="The PowerDNS Recursor" |
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 ~arm ~x86" |
45 |
+IUSE="libressl luajit protobuf snmp sodium systemd" |
46 |
+ |
47 |
+DEPEND="!luajit? ( >=dev-lang/lua-5.1:= ) |
48 |
+ luajit? ( dev-lang/luajit:= ) |
49 |
+ protobuf? ( |
50 |
+ dev-libs/protobuf |
51 |
+ >=dev-libs/boost-1.42:= |
52 |
+ ) |
53 |
+ systemd? ( sys-apps/systemd:0= ) |
54 |
+ snmp? ( net-analyzer/net-snmp ) |
55 |
+ sodium? ( dev-libs/libsodium:= ) |
56 |
+ libressl? ( dev-libs/libressl:= ) |
57 |
+ !libressl? ( dev-libs/openssl:= ) |
58 |
+ >=dev-libs/boost-1.35:=" |
59 |
+RDEPEND="${DEPEND} |
60 |
+ !<net-dns/pdns-2.9.20-r1" |
61 |
+BDEPEND="virtual/pkgconfig" |
62 |
+ |
63 |
+S="${WORKDIR}"/${P/_/-} |
64 |
+ |
65 |
+pkg_setup() { |
66 |
+ filter-flags -ftree-vectorize |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ econf \ |
71 |
+ --sysconfdir=/etc/powerdns \ |
72 |
+ $(use_enable systemd) \ |
73 |
+ $(use_enable sodium libsodium) \ |
74 |
+ $(use_with !luajit lua) \ |
75 |
+ $(use_with luajit luajit) \ |
76 |
+ $(use_with protobuf) \ |
77 |
+ $(use_with snmp net-snmp) |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ default |
82 |
+ |
83 |
+ mv "${D}"/etc/powerdns/recursor.conf{-dist,} |
84 |
+ |
85 |
+ # set defaults: setuid=nobody, setgid=nobody |
86 |
+ sed -i \ |
87 |
+ -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \ |
88 |
+ -e 's/^# quiet=$/quiet=on/' \ |
89 |
+ -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \ |
90 |
+ "${D}"/etc/powerdns/recursor.conf |
91 |
+ |
92 |
+ newinitd "${FILESDIR}"/pdns-recursor-r1 pdns-recursor |
93 |
+ |
94 |
+ keepdir /var/lib/powerdns |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ local old |
99 |
+ |
100 |
+ for old in ${REPLACING_VERSIONS}; do |
101 |
+ ver_test ${old} -lt 4.0.0-r1 || continue |
102 |
+ |
103 |
+ ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor" |
104 |
+ ewarn "to pdns-recursor, please update your runlevels accordingly." |
105 |
+ |
106 |
+ break |
107 |
+ done |
108 |
+} |