Gentoo Archives: gentoo-commits

From: Andreas Schuerch <nativemad@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/
Date: Fri, 31 Jul 2020 08:13:45
Message-Id: 1596183201.b7fb560859a6a7f42ec0517ec2ee19e5f1f99172.nativemad@gentoo
1 commit: b7fb560859a6a7f42ec0517ec2ee19e5f1f99172
2 Author: Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 31 08:12:13 2020 +0000
4 Commit: Andreas Schuerch <nativemad <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 31 08:13:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7fb5608
7
8 net-dns/dnsdist: version bump to 1.5.0 and bug 711454
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Andreas Schuerch <nativemad <AT> gentoo.org>
12
13 net-dns/dnsdist/Manifest | 1 +
14 net-dns/dnsdist/dnsdist-1.5.0.ebuild | 84 ++++++++++++++++++++++++++++++++++++
15 net-dns/dnsdist/files/dnsdist.initd | 5 ++-
16 3 files changed, 88 insertions(+), 2 deletions(-)
17
18 diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
19 index c3750fa2697..6d2a06fbff8 100644
20 --- a/net-dns/dnsdist/Manifest
21 +++ b/net-dns/dnsdist/Manifest
22 @@ -1,2 +1,3 @@
23 DIST dnsdist-1.3.3.tar.bz2 971253 BLAKE2B e9c36969fc1e4b95b71a3f6885503aea2d527b4d9abce9cb137c290a21aee994a441c0e17c0bf985396fda51020b5ef910753554990259abb16641d93d2d1010 SHA512 c0e3435eafc1f7bcdf41346cecf7b089cc142716f94058f9ec262d0c6ad16467e0b8bed5abc648829c597120c94f998602849ded574e75bfc1a1fb70c1b719ad
24 DIST dnsdist-1.4.0.tar.bz2 1044479 BLAKE2B 79aef57ed2b1036f222e8bcfdf615c3221c9dfdbc8fd3f80d778fb050f74bc200958b4d605dcadd5c23ac6c4b5b1a36048108cd85394920e99d6037177b81342 SHA512 c9450e97325d8ad8c8c3a395412c46ea8053cbe1ebe73329a1618212ba29bdf2f8da908ae2b90c314b5aab613387f42363e3a5322b1a36f60190fb48e1c425c5
25 +DIST dnsdist-1.5.0.tar.bz2 1067645 BLAKE2B de07de8f862a633d8eb11ccf632e01c2ce779a35ef61ba2fcf932894d692f2f3edfd638ce77f178bbfbfc1115d8e76f5522e10061fcf61650170a5b59d5cc9ca SHA512 df6f8caae001f152f0d264176c570778842979484d16e4199afe0e2591006392444245dd8ce23287cdcf9613e2c40a9e3564f5236e5f5a6fd67b89d6ea0d9ed4
26
27 diff --git a/net-dns/dnsdist/dnsdist-1.5.0.ebuild b/net-dns/dnsdist/dnsdist-1.5.0.ebuild
28 new file mode 100644
29 index 00000000000..b36be988dc3
30 --- /dev/null
31 +++ b/net-dns/dnsdist/dnsdist-1.5.0.ebuild
32 @@ -0,0 +1,84 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit eutils flag-o-matic
39 +
40 +DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
41 +HOMEPAGE="https://dnsdist.org"
42 +
43 +SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2"
44 +KEYWORDS="~amd64 ~x86"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +IUSE="dnscrypt dnstap doh gnutls +lmdb luajit regex remote-logging snmp +ssl systemd test"
49 +RESTRICT="!test? ( test )"
50 +REQUIRED_USE="dnscrypt? ( ssl )
51 + gnutls? ( ssl )
52 + doh? ( ssl !gnutls )"
53 +
54 +RDEPEND="acct-group/dnsdist
55 + acct-user/dnsdist
56 + >=dev-libs/boost-1.35:=
57 + dev-libs/libedit:=
58 + dnscrypt? ( dev-libs/libsodium:= )
59 + dnstap? ( dev-libs/fstrm:= )
60 + doh? ( www-servers/h2o:=[libh2o] )
61 + lmdb? ( dev-db/lmdb:= )
62 + luajit? ( dev-lang/luajit:= )
63 + !luajit? ( >=dev-lang/lua-5.1:= )
64 + regex? ( dev-libs/re2:= )
65 + remote-logging? ( >=dev-libs/protobuf-3:= )
66 + snmp? ( net-analyzer/net-snmp:= )
67 + ssl? (
68 + gnutls? ( net-libs/gnutls:= )
69 + !gnutls? ( dev-libs/openssl:= )
70 + )
71 + systemd? ( sys-apps/systemd:0= )
72 +"
73 +
74 +DEPEND="${RDEPEND}
75 + virtual/pkgconfig
76 +"
77 +
78 +src_prepare() {
79 + default
80 +}
81 +
82 +src_configure() {
83 + econf \
84 + --sysconfdir=/etc/dnsdist \
85 + $(use_enable doh dns-over-https) \
86 + $(use_enable dnscrypt) \
87 + $(use_enable dnstap) \
88 + $(use_with lmdb ) \
89 + $(use luajit && echo "--with-lua=luajit" || echo "--with-lua=lua" ) \
90 + $(use_with regex re2) \
91 + $(use_with remote-logging protobuf) \
92 + $(use_with snmp net-snmp) \
93 + $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls && use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
94 + $(use_enable systemd) \
95 + $(use_enable test unit-tests)
96 + sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
97 + -i "${S}/configure"
98 +}
99 +
100 +src_install() {
101 + default
102 +
103 + insinto /etc/dnsdist
104 + doins "${FILESDIR}"/dnsdist.conf.example
105 +
106 + newconfd "${FILESDIR}"/dnsdist.confd ${PN}
107 + newinitd "${FILESDIR}"/dnsdist.initd ${PN}
108 +}
109 +
110 +pkg_postinst() {
111 + elog "dnsdist provides multiple instances support. You can create more instances"
112 + elog "by symlinking the dnsdist init script to another name."
113 + elog
114 + elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the"
115 + elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default."
116 +}
117
118 diff --git a/net-dns/dnsdist/files/dnsdist.initd b/net-dns/dnsdist/files/dnsdist.initd
119 index f15a6d9e6a4..554c43b0150 100644
120 --- a/net-dns/dnsdist/files/dnsdist.initd
121 +++ b/net-dns/dnsdist/files/dnsdist.initd
122 @@ -1,5 +1,5 @@
123 #!/sbin/openrc-run
124 -# Copyright 1999-2019 Gentoo Authors
125 +# Copyright 1999-2020 Gentoo Authors
126 # Distributed under the terms of the GNU General Public License v2
127
128 extra_commands="configcheck"
129 @@ -31,7 +31,8 @@ start() {
130
131 ebegin "Starting dnsdist (${DNSDIST_INSTANCE})"
132 start-stop-daemon --start --exec $DNSDIST --pidfile ${PIDFILE} \
133 - -b -- --supervised -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
134 + -b -m -- --supervised -u ${DNSDIST_USER} -g
135 +${DNSDIST_GROUP} \
136 -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS}
137 eend $?
138 }