Gentoo Archives: gentoo-commits

From: Sven Wegener <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/
Date: Sat, 26 Mar 2022 19:00:51
Message-Id: 1648321246.8fe5ce0380094cc7036b8c7271de856636e3132f.swegener@gentoo
1 commit: 8fe5ce0380094cc7036b8c7271de856636e3132f
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 26 19:00:25 2022 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 26 19:00:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fe5ce03
7
8 net-dns/pdns-recursor: Version bump, security bug #836006
9
10 Bug: https://bugs.gentoo.org/836006
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
13
14 net-dns/pdns-recursor/Manifest | 1 +
15 net-dns/pdns-recursor/pdns-recursor-4.6.1.ebuild | 84 ++++++++++++++++++++++++
16 2 files changed, 85 insertions(+)
17
18 diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
19 index 27f5e2ac676d..17e2b7bfafdb 100644
20 --- a/net-dns/pdns-recursor/Manifest
21 +++ b/net-dns/pdns-recursor/Manifest
22 @@ -1,3 +1,4 @@
23 DIST pdns-recursor-4.4.7.tar.bz2 1404116 BLAKE2B 42808634fe20735ba0a933a20b7c4dfae0c32b25976e713be46dddfcdf03599b2b29ca8407781ac304fcb004f8a8a29856dc70aeb468f4e773ee5e5a9d1e7631 SHA512 eb4008ec65e42e10d9fc4d0e0fc6c4d4716224f04f530649d88adbc505ea2a8b570bfd738455f9c769e6c242e7996905c7cc457e9f685b06e5d0f73fdffd30a7
24 DIST pdns-recursor-4.5.7.tar.bz2 1475537 BLAKE2B e58a28ed1ca2a9ae69436f9367e83f046ed5bc47bfd13783bd7c956f917c4a6d9c93a9a8e1c4df55ad42bc6ba024faca936fefdaffb2125e4f6635c5e6a20b19 SHA512 dc4a2a129039f79440420c285c37fd11536f2c0b74a39da74560eb782f1ad881839831e97f2a803b1812f128e899ad7c460fada42a831994b21f301f8892e60a
25 DIST pdns-recursor-4.6.0.tar.bz2 1549434 BLAKE2B 3834c3cf58d99ba03b9e2c325a35e7bdc29a6da3fc77998b44a875033a1ce9a538762f21270754c0207be175a2b9f06d06677822a7dffd7f57fe510425772f96 SHA512 ca7e7a4aed904a68f4dcb25e62393d44cbe5a1b64b76882b086e3dcfc08face8d399d2652aeb3c03d8a68b2c9531e78223b815256d7d9e82777621aba8ad068b
26 +DIST pdns-recursor-4.6.1.tar.bz2 1541000 BLAKE2B fede4f654cd9900780df8dcc39585e95d8b0536c6d14476fde6f33a2d307144f50fb7b51bf6e0c950dcaff74120a101effee0c92cf15c4acedfa94a2682b0c5c SHA512 b595dd382bb4bff5cd47bff854952c8ee40bedeafe4236f935c8eceeca7ac97e8668b884e1ec0ce490ce535fab10d161ffc53ca395c0bb02ffcf6005a692674b
27
28 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.6.1.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.6.1.ebuild
29 new file mode 100644
30 index 000000000000..076ff5c64a8c
31 --- /dev/null
32 +++ b/net-dns/pdns-recursor/pdns-recursor-4.6.1.ebuild
33 @@ -0,0 +1,84 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +LUA_COMPAT=( lua5-{1..4} luajit )
40 +
41 +inherit flag-o-matic lua-single
42 +
43 +DESCRIPTION="The PowerDNS Recursor"
44 +HOMEPAGE="https://www.powerdns.com/"
45 +SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~x86"
50 +IUSE="debug dnstap snmp sodium systemd test"
51 +REQUIRED_USE="${LUA_REQUIRED_USE}"
52 +RESTRICT="!test? ( test )"
53 +
54 +DEPEND="${LUA_DEPS}
55 + dnstap? ( dev-libs/fstrm )
56 + systemd? ( sys-apps/systemd:0= )
57 + snmp? ( net-analyzer/net-snmp )
58 + sodium? ( dev-libs/libsodium:= )
59 + dev-libs/openssl:=
60 + >=dev-libs/boost-1.35:="
61 +RDEPEND="${DEPEND}
62 + !<net-dns/pdns-2.9.20-r1
63 + acct-user/pdns
64 + acct-group/pdns"
65 +BDEPEND="virtual/pkgconfig"
66 +
67 +S="${WORKDIR}"/${P/_/-}
68 +
69 +pkg_setup() {
70 + lua-single_pkg_setup
71 + filter-flags -ftree-vectorize
72 + append-lfs-flags
73 + append-cppflags -D_TIME_BITS=64
74 +}
75 +
76 +src_configure() {
77 + econf \
78 + --sysconfdir=/etc/powerdns \
79 + --with-nod-cache-dir=/var/lib/powerdns \
80 + --with-service-user=pdns \
81 + --with-service-group=pdns \
82 + --with-lua="${ELUA}" \
83 + $(use_enable debug verbose-logging) \
84 + $(use_enable systemd) \
85 + $(use_enable dnstap dnstap) \
86 + $(use_enable test unit-tests) \
87 + $(use_with sodium libsodium) \
88 + $(use_with snmp net-snmp)
89 +}
90 +
91 +src_install() {
92 + default
93 +
94 + mv "${D}"/etc/powerdns/recursor.conf{-dist,}
95 +
96 + # set defaults: setuid=nobody, setgid=nobody
97 + sed -i \
98 + -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \
99 + -e 's/^# quiet=$/quiet=on/' \
100 + -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
101 + "${D}"/etc/powerdns/recursor.conf
102 +
103 + newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor
104 +}
105 +
106 +pkg_postinst() {
107 + local old
108 +
109 + for old in ${REPLACING_VERSIONS}; do
110 + ver_test ${old} -lt 4.0.0-r1 || continue
111 +
112 + ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
113 + ewarn "to pdns-recursor, please update your runlevels accordingly."
114 +
115 + break
116 + done
117 +}