1 |
commit: f99c7e0dc64b7627875fe84f7df02b3a47d72889 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 20:52:48 2022 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 20:55:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99c7e0d |
7 |
|
8 |
net-dns/pdns-recursor: add 4.7.4 |
9 |
|
10 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
11 |
|
12 |
net-dns/pdns-recursor/Manifest | 1 + |
13 |
net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild | 88 ++++++++++++++++++++++++ |
14 |
2 files changed, 89 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest |
17 |
index b8f16ee04550..b97b16ec6a86 100644 |
18 |
--- a/net-dns/pdns-recursor/Manifest |
19 |
+++ b/net-dns/pdns-recursor/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pdns-recursor-4.7.2.tar.bz2 1580602 BLAKE2B 2d32d553629f665f9060e58f994a0256adc936f6fdb32ecd236ba202731342fe7e17db6678649292b4d1dd97e8579851e38fe41fd4f122dbf3d63f3d71c5de13 SHA512 b80fb1f403d5b81cf7500f6fce64914ab858b7bd7f617265db9a11ea78786de702563482c5b9daa5c9da1c19a0d02d90fd1f4f14b740d2fd492def7f4b1a7def |
22 |
DIST pdns-recursor-4.7.3.tar.bz2 1597064 BLAKE2B e5732c20f18b6711b854a2bcce36705f0f5fbf106e615a646b0a823e0eb4be8ff315f28ebbae77b67935c77255108b92f4ee6515f61019729f5191dfe147ade9 SHA512 e7d9fa32dd53e9b382689e6e735f35b12dbd9f2bb0e8b3031ab58f53a61b5cdc947cb5e857a991768afd1b403bc02d20d434dded5800be450ad45368c9d1dc0e |
23 |
+DIST pdns-recursor-4.7.4.tar.bz2 1609031 BLAKE2B b051a77f1c734546b26c3bb0030c0e57ee4621b14f0e92d7d294fb80fde599aa813f56a64750e1a00587fee8f05aa9ae1def94f3c3709b103223ed48124b66a7 SHA512 51ecccb557a5a9f3aa28144b60ab75b0fe5534bb2534b0a44662b474a01a0fae61f08b8ca787fc27f22b2a89b721ae66e1a954c4ceb829e66f89f286d5e174a8 |
24 |
|
25 |
diff --git a/net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..c8d6a1da1b22 |
28 |
--- /dev/null |
29 |
+++ b/net-dns/pdns-recursor/pdns-recursor-4.7.4.ebuild |
30 |
@@ -0,0 +1,88 @@ |
31 |
+# Copyright 1999-2022 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 flag-o-matic lua-single |
39 |
+ |
40 |
+DESCRIPTION="The PowerDNS Recursor" |
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 ~arm ~x86" |
47 |
+IUSE="debug dnstap snmp sodium systemd test" |
48 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+DEPEND="${LUA_DEPS} |
52 |
+ dnstap? ( dev-libs/fstrm ) |
53 |
+ systemd? ( sys-apps/systemd:0= ) |
54 |
+ snmp? ( net-analyzer/net-snmp ) |
55 |
+ sodium? ( dev-libs/libsodium:= ) |
56 |
+ elibc_glibc? ( |
57 |
+ arm? ( >=sys-libs/glibc-2.34 ) |
58 |
+ x86? ( >=sys-libs/glibc-2.34 ) |
59 |
+ ) |
60 |
+ dev-libs/openssl:= |
61 |
+ dev-libs/boost:=[context]" |
62 |
+RDEPEND="${DEPEND} |
63 |
+ !<net-dns/pdns-2.9.20-r1 |
64 |
+ acct-user/pdns |
65 |
+ acct-group/pdns" |
66 |
+BDEPEND="virtual/pkgconfig" |
67 |
+ |
68 |
+S="${WORKDIR}"/${P/_/-} |
69 |
+ |
70 |
+pkg_setup() { |
71 |
+ lua-single_pkg_setup |
72 |
+ filter-flags -ftree-vectorize |
73 |
+ append-lfs-flags |
74 |
+ append-cppflags -D_TIME_BITS=64 |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ econf \ |
79 |
+ --sysconfdir=/etc/powerdns \ |
80 |
+ --with-nod-cache-dir=/var/lib/powerdns \ |
81 |
+ --with-service-user=pdns \ |
82 |
+ --with-service-group=pdns \ |
83 |
+ --with-lua="${ELUA}" \ |
84 |
+ $(use_enable debug verbose-logging) \ |
85 |
+ $(use_enable systemd) \ |
86 |
+ $(use_enable dnstap dnstap) \ |
87 |
+ $(use_enable test unit-tests) \ |
88 |
+ $(use_with sodium libsodium) \ |
89 |
+ $(use_with snmp net-snmp) |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ default |
94 |
+ |
95 |
+ mv "${D}"/etc/powerdns/recursor.conf{-dist,} |
96 |
+ |
97 |
+ # set defaults: setuid=nobody, setgid=nobody |
98 |
+ sed -i \ |
99 |
+ -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \ |
100 |
+ -e 's/^# quiet=$/quiet=on/' \ |
101 |
+ -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \ |
102 |
+ "${D}"/etc/powerdns/recursor.conf |
103 |
+ |
104 |
+ newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor |
105 |
+} |
106 |
+ |
107 |
+pkg_postinst() { |
108 |
+ local old |
109 |
+ |
110 |
+ for old in ${REPLACING_VERSIONS}; do |
111 |
+ ver_test ${old} -lt 4.0.0-r1 || continue |
112 |
+ |
113 |
+ ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor" |
114 |
+ ewarn "to pdns-recursor, please update your runlevels accordingly." |
115 |
+ |
116 |
+ break |
117 |
+ done |
118 |
+} |