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, 27 Aug 2016 06:12:16
Message-Id: 1472278321.0739684813bf436d0e961fa8d6944fc289dbc4c1.swegener@gentoo
1 commit: 0739684813bf436d0e961fa8d6944fc289dbc4c1
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 27 06:11:29 2016 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 27 06:12:01 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07396848
7
8 net-dns/pdns-recursor: Version bump
9
10 Package-Manager: portage-2.2.28
11 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
12
13 net-dns/pdns-recursor/Manifest | 1 +
14 net-dns/pdns-recursor/pdns-recursor-4.0.2.ebuild | 75 ++++++++++++++++++++++++
15 2 files changed, 76 insertions(+)
16
17 diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
18 index 11d19db..77efbf8 100644
19 --- a/net-dns/pdns-recursor/Manifest
20 +++ b/net-dns/pdns-recursor/Manifest
21 @@ -2,3 +2,4 @@ DIST pdns-recursor-3.6.4.tar.bz2 200278 SHA256 b1ab90cd91b10a4888d0641b39195d5b3
22 DIST pdns-recursor-3.7.3.tar.bz2 245192 SHA256 859ca6071147dd2e2ac1b2a5c3d5c2cbff0f5cbc501660db4259e7cbf27fea11 SHA512 35b95130e46d04c91adc3c4676a6e5546ac25d21ec576734162764732993d876d34f0e8124b7b6934c8354c0d042ffa5ec30f138b83a9aeaafcefa3808adcf23 WHIRLPOOL 62bc6b2cb5d6b8350da378af1b3fdf621e5719cd07968603c57dabfdbe384f56971e45c0a757c0b654a727729de55d59798683fe92f5338fc23684d22e372c9a
23 DIST pdns-recursor-4.0.0.tar.bz2 1034944 SHA256 900a5d5858c9caa825afd9df657dadebcc1842e3068754c19562eeaab8c791fd SHA512 1a0a9ce39e5540a79308721bb47cccde54679570a218cef9740be06cfe9971af88f1cf82b3daabc4c1733484446a4432ffaf4e875ae9532cbb4a9264fcac7798 WHIRLPOOL 0a8577f582390844f0ad7d4aafce977383ed6984f4d4543f442b3b029d68c86c9d41742488edd4dec31fdc38a63bc6bf1333445dab626b9cc714e90589e7579e
24 DIST pdns-recursor-4.0.1.tar.bz2 1035584 SHA256 472db541307c8ca83a846d260ecfc854fd8e879c1bb2ce5683a8df5d21e860b0 SHA512 3e69606bda3d296b0c3fd9212afa2a098ab04637718356d220a9490bc3e2a0ca97210934d398ad740509cea9e8f8d2ab2e16a1ba75d559f6b82bf64a729ad018 WHIRLPOOL 5702272c34835238b7a63de6bc4bae0836d9879e8e98d97d7f79e08397f5c2f2d75f10878b94c44fdf862ad924635b6f86a65b31312e0fb16ab38f30c4646bac
25 +DIST pdns-recursor-4.0.2.tar.bz2 1045767 SHA256 d0c46bf47a3f9b3100043319ef9cdec83eba2c35f0a268d704d5c3a3facfea41 SHA512 74dea771deb0bcce6209c256f4c2c82a76d34a80a4a67497b58bf8889166a51864c2649527475aa6e6355af8bba86a68d599828274eaa7521006384223f2e937 WHIRLPOOL 4eda1d13a888f31e1dc90ff3238acee8999423197d514a7ba49ce1fc623512d13694ffd0cf8891d4141e34907cc2ff9f30607b327179f4257a8ed89b4d9973d4
26
27 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.2.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.2.ebuild
28 new file mode 100644
29 index 00000000..a4dddaa
30 --- /dev/null
31 +++ b/net-dns/pdns-recursor/pdns-recursor-4.0.2.ebuild
32 @@ -0,0 +1,75 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI="5"
38 +
39 +inherit toolchain-funcs flag-o-matic eutils versionator
40 +
41 +DESCRIPTION="The PowerDNS Recursor"
42 +HOMEPAGE="http://www.powerdns.com/"
43 +SRC_URI="http://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE="lua luajit protobuf systemd"
49 +REQUIRED_USE="?? ( lua luajit )"
50 +
51 +DEPEND="lua? ( >=dev-lang/lua-5.1:= )
52 + luajit? ( dev-lang/luajit:= )
53 + protobuf? (
54 + dev-libs/protobuf
55 + >=dev-libs/boost-1.42
56 + )
57 + >=dev-libs/boost-1.35"
58 +RDEPEND="${DEPEND}
59 + !<net-dns/pdns-2.9.20-r1"
60 +DEPEND="${DEPEND}
61 + 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_with lua) \
74 + $(use_with luajit) \
75 + $(use_with protobuf)
76 +}
77 +
78 +src_install() {
79 + default
80 +
81 + mv "${D}"/etc/powerdns/recursor.conf{-dist,}
82 +
83 + # set defaults: setuid=nobody, setgid=nobody
84 + sed -i \
85 + -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \
86 + -e 's/^# quiet=$/quiet=on/' \
87 + -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
88 + "${D}"/etc/powerdns/recursor.conf
89 +
90 + doinitd "${FILESDIR}"/pdns-recursor
91 +
92 + keepdir /var/lib/powerdns
93 +}
94 +
95 +pkg_postinst() {
96 + local old
97 +
98 + for old in ${REPLACING_VERSIONS}; do
99 + version_compare ${old} 4.0.0-r1
100 + [[ $? -eq 1 ]] || continue
101 +
102 + ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
103 + ewarn "to pdns-recursor, please update your runlevels accordingly."
104 +
105 + break
106 + done
107 +}