[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2023-01-27 Thread Joonas Niilola
commit: 8f8d4de81f6f3e78b9f34beb5f4a6f5dd39a9e9e
Author: Joonas Niilola  gentoo  org>
AuthorDate: Fri Jan 27 08:34:23 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Fri Jan 27 08:35:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f8d4de8

net-dns/dnsdist: drop versions

Signed-off-by: Joonas Niilola  gentoo.org>

 net-dns/dnsdist/Manifest   |  4 -
 net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild  | 85 --
 net-dns/dnsdist/dnsdist-1.6.0.ebuild   | 84 -
 net-dns/dnsdist/dnsdist-1.6.1.ebuild   | 80 
 net-dns/dnsdist/dnsdist-1.7.0.ebuild   | 81 -
 net-dns/dnsdist/dnsdist-1.7.1.ebuild   | 84 -
 net-dns/dnsdist/dnsdist-1.7.2.ebuild   | 84 -
 net-dns/dnsdist/dnsdist-1.7.3.ebuild   | 84 -
 .../dnsdist-1.6.0-gcc11-missing-include.patch  | 24 --
 9 files changed, 610 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index 4f7a541a9b21..b7764a5a1b3a 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,7 +1,3 @@
 DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 
1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e
 SHA512 
68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f
-DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B 
d093142875882cacaa456d76d42e703e45577c32a0e5d5024fb372180d2bdd4ff0c82546142f6c2c01904bdd15407f0a39dc1d658e04e171cffe386cfc1e943d
 SHA512 
f6a1676c431d5622af075bc184c9f82b4ea0bb40ec84797a8fe835804f91bc0a93a745495f193bb52f3a5204ec0e98ed41bc206c997d1f5b13e872bb31747b0f
 DIST dnsdist-1.6.1.tar.bz2 1328069 BLAKE2B 
a9e9c0cb35ebc2ecd93d7fa0d6d3961b02d711da2df56240335786a5d2e529d4a7e8716f578b6e935edd3bc79dfed767d358b9feaff32dd9cd65993ef0b97b71
 SHA512 
68e114eeb1a7ae8a4ce52a7de31095c46d0ba8f572676a8ef1e858b97da199c04ec88656c7642160ba07b7db325cc2a49cd91794da8dd2e81a5301d089c34f90
-DIST dnsdist-1.7.0.tar.bz2 1392585 BLAKE2B 
3766da5f63df6390f555307d665efcbb2ad1462abae3af44503479d4c6ae6453e43527d2bcac718fabeb8b60ec989f264860532b480c465afc440405f9efac74
 SHA512 
abaed7aaa18f4acaf220dc938da6896e521373b1da3b6b9c4114467dd5d8b0e6cd9809534edbc6ba5b789ed8387fb47317c47bd4e00e66a6ccb035f6dd6068af
-DIST dnsdist-1.7.1.tar.bz2 1392179 BLAKE2B 
48189da6bceb1723b19bab7c42ec8cd834f3ef6d822b5da23fe2f4e02ec825d1566bce472f522fa9ac0b027d36f3089ce7c0c7eb1c7e1161c050dc50305dfdb6
 SHA512 
eee44a9994c6cab84977cad58539ca59882149d6898dfeed9e4190f06ddbc280b836bf426d22e6980d8acae1437290bddcc5166af165b6eb48c77c669281a310
-DIST dnsdist-1.7.2.tar.bz2 1391588 BLAKE2B 
cf2a9853be4c896b3909f871fad771d4298eb2586702a8a85eff2c612d275214cdad82e93961f4cfd58300f5629f06569c51a2c4f15de58188a69116bd5275de
 SHA512 
2048ac0f861547fb103da1a128fd39a35ed689ccbf3c080232a3bd0550c9e7c7e01c95864d61e065e341a9f4111c974d2db2aba73eb8f7cba9bf8273da39b8a6
 DIST dnsdist-1.7.3.tar.bz2 1379011 BLAKE2B 
e7d1cb9dba3d3ad1dd696d324697ffac60863112eae83307237639bea339f7ed1c3f320002d3467a44ab38a9ea60ade95fff43645c889d29465760f7f467b996
 SHA512 
2a39096709db5b41cf3bd21170689bc85ad2cd550896d02ddd85eff7410780ea59d6cf8e08b0a08962ee93b49b7f3228dfa649275453215e23c25098aca40e1a

diff --git a/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild
deleted file mode 100644
index 2b055db7ffc6..
--- a/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit flag-o-matic lua-single
-
-DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
-HOMEPAGE="https://dnsdist.org;
-
-SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="dnscrypt dnstap doh gnutls +lmdb regex remote-logging snmp +ssl systemd 
test"
-RESTRICT="!test? ( test )"
-REQUIRED_USE="${LUA_REQUIRED_USE}
-   dnscrypt? ( ssl )
-   gnutls? ( ssl )
-   doh? ( ssl !gnutls )"
-
-RDEPEND="acct-group/dnsdist
-   acct-user/dnsdist
-   dev-libs/boost:=
-   dev-libs/libedit:=
-   dnscrypt? ( dev-libs/libsodium:= )
-   dnstap? ( dev-libs/fstrm:= )
-   doh? ( www-servers/h2o:=[libh2o] )
-   lmdb? ( dev-db/lmdb:= )
-   regex? ( dev-libs/re2:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
-   snmp? ( net-analyzer/net-snmp:= )
-   ssl? (
-   gnutls? ( net-libs/gnutls:= )
-   !gnutls? ( dev-libs/openssl:= )
-   )
-   systemd? ( sys-apps/systemd:0= )
-   ${LUA_DEPS}
-"
-
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-src_prepare() {
- 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2021-06-14 Thread Sam James
commit: 6f4c9bd084526bce777418dc7a1d269046413bea
Author: Sam James  gentoo  org>
AuthorDate: Tue Jun 15 03:45:51 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Jun 15 03:45:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f4c9bd0

net-dns/dnsdist: fix build with GCC 11, protobuf no longer optional

* Fix build with GCC 11
* Upstream made protobuf mandatory

Closes: https://bugs.gentoo.org/790719
Signed-off-by: Sam James  gentoo.org>

 net-dns/dnsdist/dnsdist-1.6.0.ebuild   |  9 
 .../dnsdist-1.6.0-gcc11-missing-include.patch  | 24 ++
 2 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.6.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.6.0.ebuild
index 3340f22db78..84866fb8314 100644
--- a/net-dns/dnsdist/dnsdist-1.6.0.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.6.0.ebuild
@@ -26,12 +26,12 @@ RDEPEND="acct-group/dnsdist
acct-user/dnsdist
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
+   >=dev-libs/protobuf-3:=
dnscrypt? ( dev-libs/libsodium:= )
dnstap? ( dev-libs/fstrm:= )
doh? ( www-servers/h2o:=[libh2o] )
lmdb? ( dev-db/lmdb:= )
regex? ( dev-libs/re2:= )
-   remote-logging? ( >=dev-libs/protobuf-3:= )
snmp? ( net-analyzer/net-snmp:= )
ssl? (
gnutls? ( net-libs/gnutls:= )
@@ -44,9 +44,9 @@ RDEPEND="acct-group/dnsdist
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
-src_prepare() {
-   default
-}
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.6.0-gcc11-missing-include.patch
+)
 
 src_configure() {
econf \
@@ -57,7 +57,6 @@ src_configure() {
$(use_enable dnstap) \
$(use_with lmdb ) \
$(use_with regex re2) \
-   $(use_with remote-logging protobuf) \
$(use_with snmp net-snmp) \
$(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
$(use_enable systemd) \

diff --git a/net-dns/dnsdist/files/dnsdist-1.6.0-gcc11-missing-include.patch 
b/net-dns/dnsdist/files/dnsdist-1.6.0-gcc11-missing-include.patch
new file mode 100644
index 000..6e549b2450e
--- /dev/null
+++ b/net-dns/dnsdist/files/dnsdist-1.6.0-gcc11-missing-include.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/790719
+https://github.com/hhoffstaette/portage/blob/master/net-dns/dnsdist/files/dnsdist-1.6.0-add-missing-include.patch
+
+From: Kees Monshouwer 
+Date: Tue, 11 May 2021 10:27:01 +0200
+Subject: [PATCH] add missing includes (Fedora 34, gcc 11.1 / clang 12)
+
+[HH: reduced to necessary patch for dnsdist]
+---
+ lock.hh  | 1 +
+ 1 file changed, 1 insertions(+)
+
+diff --git a/lock.hh b/lock.hh
+index 09299d7979d..0644502f871 100644
+--- a/lock.hh
 b/lock.hh
+@@ -20,6 +20,7 @@
+  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 
USA.
+  */
+ #pragma once
++#include 
+ #include 
+ 
+ class ReadWriteLock



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2020-07-31 Thread Andreas Schuerch
commit: b7fb560859a6a7f42ec0517ec2ee19e5f1f99172
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Fri Jul 31 08:12:13 2020 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Fri Jul 31 08:13:21 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7fb5608

net-dns/dnsdist: version bump to 1.5.0 and bug 711454

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas Schuerch  gentoo.org>

 net-dns/dnsdist/Manifest |  1 +
 net-dns/dnsdist/dnsdist-1.5.0.ebuild | 84 
 net-dns/dnsdist/files/dnsdist.initd  |  5 ++-
 3 files changed, 88 insertions(+), 2 deletions(-)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
index c3750fa2697..6d2a06fbff8 100644
--- a/net-dns/dnsdist/Manifest
+++ b/net-dns/dnsdist/Manifest
@@ -1,2 +1,3 @@
 DIST dnsdist-1.3.3.tar.bz2 971253 BLAKE2B 
e9c36969fc1e4b95b71a3f6885503aea2d527b4d9abce9cb137c290a21aee994a441c0e17c0bf985396fda51020b5ef910753554990259abb16641d93d2d1010
 SHA512 
c0e3435eafc1f7bcdf41346cecf7b089cc142716f94058f9ec262d0c6ad16467e0b8bed5abc648829c597120c94f998602849ded574e75bfc1a1fb70c1b719ad
 DIST dnsdist-1.4.0.tar.bz2 1044479 BLAKE2B 
79aef57ed2b1036f222e8bcfdf615c3221c9dfdbc8fd3f80d778fb050f74bc200958b4d605dcadd5c23ac6c4b5b1a36048108cd85394920e99d6037177b81342
 SHA512 
c9450e97325d8ad8c8c3a395412c46ea8053cbe1ebe73329a1618212ba29bdf2f8da908ae2b90c314b5aab613387f42363e3a5322b1a36f60190fb48e1c425c5
+DIST dnsdist-1.5.0.tar.bz2 1067645 BLAKE2B 
de07de8f862a633d8eb11ccf632e01c2ce779a35ef61ba2fcf932894d692f2f3edfd638ce77f178bbfbfc1115d8e76f5522e10061fcf61650170a5b59d5cc9ca
 SHA512 
df6f8caae001f152f0d264176c570778842979484d16e4199afe0e2591006392444245dd8ce23287cdcf9613e2c40a9e3564f5236e5f5a6fd67b89d6ea0d9ed4

diff --git a/net-dns/dnsdist/dnsdist-1.5.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.5.0.ebuild
new file mode 100644
index 000..b36be988dc3
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.5.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="https://dnsdist.org;
+
+SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt dnstap doh gnutls +lmdb luajit regex remote-logging snmp +ssl 
systemd test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="dnscrypt? ( ssl )
+   gnutls? ( ssl )
+   doh? ( ssl !gnutls )"
+
+RDEPEND="acct-group/dnsdist
+   acct-user/dnsdist
+   >=dev-libs/boost-1.35:=
+   dev-libs/libedit:=
+   dnscrypt? ( dev-libs/libsodium:= )
+   dnstap? ( dev-libs/fstrm:= )
+   doh? ( www-servers/h2o:=[libh2o] )
+   lmdb? ( dev-db/lmdb:= )
+   luajit? ( dev-lang/luajit:= )
+   !luajit? ( >=dev-lang/lua-5.1:= )
+   regex? ( dev-libs/re2:= )
+   remote-logging? ( >=dev-libs/protobuf-3:= )
+   snmp? ( net-analyzer/net-snmp:= )
+   ssl? (
+   gnutls? ( net-libs/gnutls:= )
+   !gnutls? ( dev-libs/openssl:= )
+   )
+   systemd? ( sys-apps/systemd:0= )
+"
+
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+"
+
+src_prepare() {
+   default
+}
+
+src_configure() {
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   $(use_enable doh dns-over-https) \
+   $(use_enable dnscrypt) \
+   $(use_enable dnstap) \
+   $(use_with lmdb ) \
+   $(use luajit && echo "--with-lua=luajit" || echo 
"--with-lua=lua" ) \
+   $(use_with regex re2) \
+   $(use_with remote-logging protobuf) \
+   $(use_with snmp net-snmp) \
+   $(use ssl && { echo "--enable-dns-over-tls" && use_with gnutls 
&& use_with !gnutls libssl;} || echo "--without-gnutls --without-libssl") \
+   $(use_enable systemd) \
+   $(use_enable test unit-tests)
+   sed 's/hardcode_libdir_flag_spec_CXX='\''$wl-rpath 
$wl$libdir'\''/hardcode_libdir_flag_spec_CXX='\''$wl-rpath $wl\/$libdir'\''/g' \
+   -i "${S}/configure"
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+}

diff --git a/net-dns/dnsdist/files/dnsdist.initd 
b/net-dns/dnsdist/files/dnsdist.initd
index f15a6d9e6a4..554c43b0150 100644
--- a/net-dns/dnsdist/files/dnsdist.initd
+++ 

[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2019-03-30 Thread Andreas Schuerch
commit: 198b4ec0e6d0d24464a31896012aa358c8beb941
Author: Andreas Schuerch  gentoo  org>
AuthorDate: Sat Mar 30 10:00:21 2019 +
Commit: Andreas Schuerch  gentoo  org>
CommitDate: Sat Mar 30 10:02:12 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=198b4ec0

net-dns/dnsdist: added useflags bug 672516 and initscript changes

Signed-off-by: Andreas Schuerch  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 net-dns/dnsdist/{dnsdist-1.3.3.ebuild => dnsdist-1.3.3-r1.ebuild} | 7 +--
 net-dns/dnsdist/dnsdist-.ebuild   | 7 +--
 net-dns/dnsdist/files/dnsdist.initd   | 8 
 3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/net-dns/dnsdist/dnsdist-1.3.3.ebuild 
b/net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
similarity index 97%
rename from net-dns/dnsdist/dnsdist-1.3.3.ebuild
rename to net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
index b13e2bdae49..ed3b96e1ed6 100644
--- a/net-dns/dnsdist/dnsdist-1.3.3.ebuild
+++ b/net-dns/dnsdist/dnsdist-1.3.3-r1.ebuild
@@ -28,7 +28,7 @@ IUSE="dnscrypt gnutls fstrm luajit regex remote-logging snmp 
+ssl systemd test"
 REQUIRED_USE="dnscrypt? ( ssl )
gnutls? ( ssl )"
 
-DEPEND="
+RDEPEND="
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
fstrm? ( dev-libs/fstrm:= )
@@ -45,11 +45,14 @@ DEPEND="
systemd? ( sys-apps/systemd:0= )
 "
 
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+"
 
 [[ ${PV} ==  ]] && DEPEND+="
app-text/pandoc
dev-util/ragel
+   dev-python/virtualenv
 "
 
 src_prepare() {

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
index b13e2bdae49..ed3b96e1ed6 100644
--- a/net-dns/dnsdist/dnsdist-.ebuild
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -28,7 +28,7 @@ IUSE="dnscrypt gnutls fstrm luajit regex remote-logging snmp 
+ssl systemd test"
 REQUIRED_USE="dnscrypt? ( ssl )
gnutls? ( ssl )"
 
-DEPEND="
+RDEPEND="
>=dev-libs/boost-1.35:=
dev-libs/libedit:=
fstrm? ( dev-libs/fstrm:= )
@@ -45,11 +45,14 @@ DEPEND="
systemd? ( sys-apps/systemd:0= )
 "
 
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig
+"
 
 [[ ${PV} ==  ]] && DEPEND+="
app-text/pandoc
dev-util/ragel
+   dev-python/virtualenv
 "
 
 src_prepare() {

diff --git a/net-dns/dnsdist/files/dnsdist.initd 
b/net-dns/dnsdist/files/dnsdist.initd
index bfeef82d46f..17c86ca431d 100644
--- a/net-dns/dnsdist/files/dnsdist.initd
+++ b/net-dns/dnsdist/files/dnsdist.initd
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 extra_commands="configcheck"
@@ -25,14 +25,14 @@ depend() {
 }
 
 start() {
-   checkpath -q -d ${PIDDIR} -o ${DNSDIST_USER}:${DNSDIST_GROUP} 
+   checkpath -q -d ${PIDDIR} -o ${DNSDIST_USER}:${DNSDIST_GROUP}
 
configcheck || return 1
 
ebegin "Starting dnsdist (${DNSDIST_INSTANCE})"
start-stop-daemon --start --exec $DNSDIST --pidfile ${PIDFILE} \
-   -- -d -p ${PIDFILE} -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
-   -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS} 
+   -b -- -u ${DNSDIST_USER} -g ${DNSDIST_GROUP} \
+   -C $DNSDIST_CONFFILE ${DNSDIST_OPTIONS}
eend $?
 }
 



[gentoo-commits] repo/gentoo:master commit in: net-dns/dnsdist/files/, net-dns/dnsdist/

2017-05-23 Thread Michał Górny
commit: 0e7456587ffeff7a2922737205caaf3da0a2ee2c
Author: bgo  9dt  de>
AuthorDate: Tue May 23 21:44:31 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue May 23 22:16:54 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e745658

net-dns/dnsdist: New package, #611892

Closes: https://github.com/gentoo/gentoo/pull/4606

 net-dns/dnsdist/Manifest |   1 +
 net-dns/dnsdist/dnsdist-1.1.0.ebuild |  99 ++
 net-dns/dnsdist/dnsdist-.ebuild  | 101 +++
 net-dns/dnsdist/files/dnsdist-readline.patch |  25 +++
 net-dns/dnsdist/files/dnsdist.conf.example   |  19 +
 net-dns/dnsdist/files/dnsdist.confd  |  13 
 net-dns/dnsdist/files/dnsdist.initd  |  55 +++
 net-dns/dnsdist/metadata.xml |  22 ++
 8 files changed, 335 insertions(+)

diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest
new file mode 100644
index 000..83b82a38f36
--- /dev/null
+++ b/net-dns/dnsdist/Manifest
@@ -0,0 +1 @@
+DIST dnsdist-1.1.0.tar.bz2 874837 SHA256 
b4a1e8931b6d05a24494f54224211c0de0eeb1f5ff170f6b9f5665219bfeafc2 SHA512 
91da716997c2440e153944f510a39dd86c9cf8ba8093a7f51a9a5d58ab0a1c230bd99ec57fe8ff0721279c8c4429ad576fe797c1fbe4cde2b9fb8f0405025320
 WHIRLPOOL 
6d88f4159b8155c9600af94e6e8401c426f183102a18b3f35fc066b8a19d781f5800a2aa64d306ab4ee0daadbaaab1d29b2df05c10058a9b99b9d9cf1abf071e

diff --git a/net-dns/dnsdist/dnsdist-1.1.0.ebuild 
b/net-dns/dnsdist/dnsdist-1.1.0.ebuild
new file mode 100644
index 000..4b025151e37
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-1.1.0.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
+
+if [[ ${PV} =  ]]; then
+   ADDITIONAL_ECLASSES="autotools git-r3"
+fi
+
+inherit eutils flag-o-matic user ${ADDITIONAL_ECLASSES}
+
+DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
+HOMEPAGE="http://dnsdist.org;
+
+if [[ ${PV} ==  ]]; then
+   SRC_URI=""
+   S="${WORKDIR}/${P}/pdns/dnsdistdist"
+else
+   SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.bz2;
+   KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="dnscrypt luajit readline regex remote-logging +ssl test"
+RESTRICT="readline? ( bindist )"
+REQUIRED_USE="dnscrypt? ( ssl )"
+
+DEPEND="
+   >=dev-libs/boost-1.35:=
+   luajit? ( dev-lang/luajit:= )
+   !luajit? ( >=dev-lang/lua-5.1:= )
+   remote-logging? ( dev-libs/protobuf:= )
+   readline? ( sys-libs/readline:0= )
+   !readline? ( dev-libs/libedit:= )
+   regex? ( dev-libs/re2:= )
+   ssl? ( dev-libs/libsodium:= )
+"
+
+RDEPEND="${DEPEND}"
+
+[[ ${PV} ==  ]] && DEPEND+="
+   app-text/pandoc
+   dev-util/ragel
+"
+
+src_prepare() {
+   eapply "${FILESDIR}/${PN}-readline.patch"
+   eapply_user
+
+   [[ ${PV} ==  ]] && eautoreconf
+}
+
+src_configure() {
+   if use readline ; then
+   local -x LIBEDIT_CFLAGS="-I/usr/include/readline"
+   local -x LIBEDIT_LIBS="-lreadline -lcurses"
+   append-cxxflags -DREADLINE
+   fi
+
+   econf \
+   --sysconfdir=/etc/dnsdist \
+   $(use_enable ssl libsodium) \
+   $(use_with remote-logging protobuf) \
+   $(use_enable regex re2) \
+   $(use_enable dnscrypt) \
+   $(use_with luajit) \
+   $(use_enable test unit-tests)
+}
+
+src_install() {
+   default
+
+   insinto /etc/dnsdist
+   doins "${FILESDIR}"/dnsdist.conf.example
+
+   newconfd "${FILESDIR}"/dnsdist.confd ${PN}
+   newinitd "${FILESDIR}"/dnsdist.initd ${PN}
+}
+
+pkg_preinst() {
+   enewgroup dnsdist
+   enewuser dnsdist -1 -1 -1 dnsdist
+}
+
+pkg_postinst() {
+   elog "dnsdist provides multiple instances support. You can create more 
instances"
+   elog "by symlinking the dnsdist init script to another name."
+   elog
+   elog "The name must be in the format dnsdist. and dnsdist will 
use the"
+   elog "/etc/dnsdist/dnsdist-.conf configuration file instead of 
the default."
+
+   if use readline ; then
+   ewarn "dnsdist (GPLv2) was linked against readline (GPLv3)."
+   ewarn "A binary distribution should therefore not happen."
+   fi
+}

diff --git a/net-dns/dnsdist/dnsdist-.ebuild 
b/net-dns/dnsdist/dnsdist-.ebuild
new file mode 100644
index 000..a0571422096
--- /dev/null
+++ b/net-dns/dnsdist/dnsdist-.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/PowerDNS/pdns.git;
+
+if [[ ${PV} =  ]]; then
+   ADDITIONAL_ECLASSES="autotools git-r3"
+fi
+
+inherit eutils flag-o-matic user