From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E94391382C5 for ; Tue, 22 Dec 2020 21:53:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F115FE0ACC; Tue, 22 Dec 2020 21:53:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C7B42E0ACC for ; Tue, 22 Dec 2020 21:53:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7F8183411BA for ; Tue, 22 Dec 2020 21:53:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0BE374E for ; Tue, 22 Dec 2020 21:53:08 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1608673979.5391bc26d8e7602fe492f5d839d56541e4a0478e.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, net-dns/dnsdist/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild profiles/package.mask X-VCS-Directories: net-dns/dnsdist/ profiles/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 5391bc26d8e7602fe492f5d839d56541e4a0478e X-VCS-Branch: master Date: Tue, 22 Dec 2020 21:53:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0bc73173-5888-43bb-9674-5f1982b68be9 X-Archives-Hash: 8acf3c4dade7d9b104eaf6d63732b40d commit: 5391bc26d8e7602fe492f5d839d56541e4a0478e Author: Marek Szuba gentoo org> AuthorDate: Tue Dec 22 21:50:48 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Tue Dec 22 21:52:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5391bc26 net-dns/dnsdist: migrate to lua-single.eclass Nice and easy. Builds, tests and installs fine against all implementations currently in the tree. Closes: https://bugs.gentoo.org/752795 Signed-off-by: Marek Szuba gentoo.org> net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild | 85 +++++++++++++++++++++++++++++++ profiles/package.mask | 1 + 2 files changed, 86 insertions(+) diff --git a/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild b/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild new file mode 100644 index 00000000000..4e2054c07cc --- /dev/null +++ b/net-dns/dnsdist/dnsdist-1.5.1-r100.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2020 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-1.35:= + 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() { + default +} + +src_configure() { + econf \ + --sysconfdir=/etc/dnsdist \ + --with-lua="${ELUA}" \ + $(use_enable doh dns-over-https) \ + $(use_enable dnscrypt) \ + $(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) \ + $(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/profiles/package.mask b/profiles/package.mask index fa5530ecdee..8dc2c8267c6 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -559,6 +559,7 @@ kde-apps/kdebase-meta:5 >=net-analyzer/tracebox-0.4.4-r100 >=net-analyzer/wireshark-3.4.2-r100 >=net-dialup/accel-ppp-1.12.0_p20200913-r100 +>=net-dns/dnsdist-1.5.1-r100 >=net-dns/dnsmasq-2.82-r100 >=net-im/prosody-0.11.7-r100 >=net-im/swift-4.0.2-r100