diff options
author | Andreas Schuerch <nativemad@gentoo.org> | 2021-05-17 17:47:12 +0200 |
---|---|---|
committer | Andreas Schuerch <nativemad@gentoo.org> | 2021-05-17 17:47:12 +0200 |
commit | c3bf9abd6dcfef9d57218a50f5ef74186c7711fb (patch) | |
tree | 5920912b7f1f20c9a5c5187ba3dc17f746c2e1ca | |
parent | dev-java/commons-lang: Stabilize 3.12.0 ppc64, #790653 (diff) | |
download | gentoo-c3bf9abd6dcfef9d57218a50f5ef74186c7711fb.tar.gz gentoo-c3bf9abd6dcfef9d57218a50f5ef74186c7711fb.tar.bz2 gentoo-c3bf9abd6dcfef9d57218a50f5ef74186c7711fb.zip |
net-dns/dnsdist: bump to 1.6.0, x86 keyword dropped
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Andreas Schuerch <nativemad@gentoo.org>
-rw-r--r-- | net-dns/dnsdist/Manifest | 1 | ||||
-rw-r--r-- | net-dns/dnsdist/dnsdist-1.6.0.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest index a5947ea150cd..a19099ebb1fc 100644 --- a/net-dns/dnsdist/Manifest +++ b/net-dns/dnsdist/Manifest @@ -1 +1,2 @@ DIST dnsdist-1.5.1.tar.bz2 1068061 BLAKE2B 1c0fdd181b62b96fcd433581715cea9dc204fcdd2f65efd26a5293cc9c17d904e0937b51ba33d2dc01ecc8044f491ba2c6c8720c0816587fa5082da73108783e SHA512 68fe5f55fd081ed80a620933af9f8310be0e21c86ba449a9c557975b5c83f4b64e3002e6032dc002582d081e70e1ec2ff080c5d8389fd46a9896bdafd5a41f9f +DIST dnsdist-1.6.0.tar.bz2 1328707 BLAKE2B d093142875882cacaa456d76d42e703e45577c32a0e5d5024fb372180d2bdd4ff0c82546142f6c2c01904bdd15407f0a39dc1d658e04e171cffe386cfc1e943d SHA512 f6a1676c431d5622af075bc184c9f82b4ea0bb40ec84797a8fe835804f91bc0a93a745495f193bb52f3a5204ec0e98ed41bc206c997d1f5b13e872bb31747b0f diff --git a/net-dns/dnsdist/dnsdist-1.6.0.ebuild b/net-dns/dnsdist/dnsdist-1.6.0.ebuild new file mode 100644 index 000000000000..3340f22db784 --- /dev/null +++ b/net-dns/dnsdist/dnsdist-1.6.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2021 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" + +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.<suffix> and dnsdist will use the" + elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default." +} |