Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/
Date: Sat, 28 Oct 2017 09:53:23
Message-Id: 1509184327.1c50a5d191b47143338b15a86ce6e36fd1b7abca.monsieurp@gentoo
1 commit: 1c50a5d191b47143338b15a86ce6e36fd1b7abca
2 Author: bgo <bgo <AT> 9dt <DOT> de>
3 AuthorDate: Sat Sep 2 16:44:59 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 28 09:52:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c50a5d1
7
8 net-dns/dnsdist: version bump to 1.2.0.
9
10 Bug: https://bugs.gentoo.org/628534
11 Bug: https://bugs.gentoo.org/628578
12 Package-Manager: Portage-2.3.8, Repoman-2.3.3
13
14 net-dns/dnsdist/Manifest | 2 +-
15 net-dns/dnsdist/dnsdist-1.2.0.ebuild | 86 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 87 insertions(+), 1 deletion(-)
17
18 diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
19 index 83b82a38f36..e064a7a1c5f 100644
20 --- a/net-dns/dnsdist/Manifest
21 +++ b/net-dns/dnsdist/Manifest
22 @@ -1 +1 @@
23 -DIST dnsdist-1.1.0.tar.bz2 874837 SHA256 b4a1e8931b6d05a24494f54224211c0de0eeb1f5ff170f6b9f5665219bfeafc2 SHA512 91da716997c2440e153944f510a39dd86c9cf8ba8093a7f51a9a5d58ab0a1c230bd99ec57fe8ff0721279c8c4429ad576fe797c1fbe4cde2b9fb8f0405025320 WHIRLPOOL 6d88f4159b8155c9600af94e6e8401c426f183102a18b3f35fc066b8a19d781f5800a2aa64d306ab4ee0daadbaaab1d29b2df05c10058a9b99b9d9cf1abf071e
24 +DIST dnsdist-1.2.0.tar.bz2 876104 SHA256 9885c9ee8ac7076aede586ea58d4642eb877e7b2d76c902254494e2a5a5faa78 SHA512 93f8c5f18462d3291c973a690f6ac2b3c5791d9947bee83d9250b503b7526de365bdcb530f3b082e51ae168a9129e77d5558af7cc3b9d2e98a585af53783c237 WHIRLPOOL bec3f7a5174dc7dec71724bb274b3cd02261b666c853bee3a8cce7695fb082cdd09bf28545b7c54355c5d3e15bea33c49ff2f7c0821324e46435efc2ecaba615
25
26 diff --git a/net-dns/dnsdist/dnsdist-1.2.0.ebuild b/net-dns/dnsdist/dnsdist-1.2.0.ebuild
27 new file mode 100644
28 index 00000000000..75b3d1113da
29 --- /dev/null
30 +++ b/net-dns/dnsdist/dnsdist-1.2.0.ebuild
31 @@ -0,0 +1,86 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git"
38 +
39 +if [[ ${PV} = 9999 ]]; then
40 + ADDITIONAL_ECLASSES="autotools git-r3"
41 +fi
42 +
43 +inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
44 +
45 +DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
46 +HOMEPAGE="http://dnsdist.org"
47 +
48 +if [[ ${PV} == 9999 ]]; then
49 + SRC_URI=""
50 + S="${WORKDIR}/${P}/pdns/dnsdistdist"
51 +else
52 + SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2"
53 + KEYWORDS="~amd64 ~x86"
54 +fi
55 +
56 +LICENSE="GPL-2"
57 +SLOT="0"
58 +IUSE="dnscrypt luajit regex remote-logging snmp +ssl test"
59 +REQUIRED_USE="dnscrypt? ( ssl )"
60 +
61 +DEPEND="
62 + >=dev-libs/boost-1.35:=
63 + dev-libs/libedit:=
64 + luajit? ( dev-lang/luajit:= )
65 + !luajit? ( >=dev-lang/lua-5.1:= )
66 + remote-logging? ( dev-libs/protobuf:= )
67 + regex? ( dev-libs/re2:= )
68 + snmp? ( net-analyzer/net-snmp:= )
69 + ssl? ( dev-libs/libsodium:= )
70 +"
71 +
72 +RDEPEND="${DEPEND}"
73 +
74 +[[ ${PV} == 9999 ]] && DEPEND+="
75 + app-text/pandoc
76 + dev-util/ragel
77 +"
78 +
79 +src_prepare() {
80 + default
81 + [[ ${PV} == 9999 ]] && eautoreconf
82 +}
83 +
84 +src_configure() {
85 + econf \
86 + --sysconfdir=/etc/dnsdist \
87 + $(use_enable ssl libsodium) \
88 + $(use_with remote-logging protobuf) \
89 + $(use_enable regex re2) \
90 + $(use_enable dnscrypt) \
91 + $(use_with luajit) \
92 + $(use_enable test unit-tests) \
93 + $(use_with snmp net-snmp)
94 +}
95 +
96 +src_install() {
97 + default
98 +
99 + insinto /etc/dnsdist
100 + doins "${FILESDIR}"/dnsdist.conf.example
101 +
102 + newconfd "${FILESDIR}"/dnsdist.confd ${PN}
103 + newinitd "${FILESDIR}"/dnsdist.initd ${PN}
104 +}
105 +
106 +pkg_preinst() {
107 + enewgroup dnsdist
108 + enewuser dnsdist -1 -1 -1 dnsdist
109 +}
110 +
111 +pkg_postinst() {
112 + elog "dnsdist provides multiple instances support. You can create more instances"
113 + elog "by symlinking the dnsdist init script to another name."
114 + elog
115 + elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the"
116 + elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default."
117 +}