net-dns/rbldnsd: add version 0.998.
authorMichael Orlitzky <mjo@gentoo.org>
Sat, 2 Jan 2016 14:36:48 +0000 (09:36 -0500)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 2 Jan 2016 14:37:11 +0000 (09:37 -0500)
Package-Manager: portage-2.2.24

net-dns/rbldnsd/Manifest
net-dns/rbldnsd/rbldnsd-0.998.ebuild [new file with mode: 0644]

index 6e88d40b28c0ae6a5f48f18a2183c4212cedbd0d..54a3ec075c6fc2b48cf6cc1e2b26e575ce62b964 100644 (file)
@@ -1 +1,2 @@
 DIST rbldnsd-0.997a.tar.gz 144771 SHA256 9c17c6bde6995058204a66805444039d31523a7d4ef40cec059e505a0882a8ef SHA512 9a3e1a0ad2cd9dd08bcc114c70213a875e984f3761fa32c44fe544d8173f54330fe355ad229a120e64b8f4c8286187d0baa055526d3a85bc846df070bb213529 WHIRLPOOL b453396c9876fd4972c6028b5916ae9717d60d555e5bb33bc97f0a8910ee516a80d1a3cb6030a3850ec304794f4a00fd9f3dced0d5c7fd1388e7d87d53fedb24
+DIST rbldnsd-0.998.tar.gz 145363 SHA256 bc36082d46828ecdc0c9e3f8f009596746e1242b2b4002ab9cf9b93fe36e4924 SHA512 7b6fb106f8188b2ce6e05b622cf90a393a4642f00faa5bddc184ce02dbd2beee9d8de22cb09ae53a25c475f28f99d13fbf6252f0d4c1d72bf47ba23f769e7074 WHIRLPOOL 27165b85c85de5cd4db65979a093104d2f614af8163f10d65b5ac28eb443d4b9584ac5501314b8c3a8df3d730a0658f8cf88b0d6eb35efb9f3a17f25fc0ed49a
diff --git a/net-dns/rbldnsd/rbldnsd-0.998.ebuild b/net-dns/rbldnsd/rbldnsd-0.998.ebuild
new file mode 100644 (file)
index 0000000..63befe9
--- /dev/null
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils toolchain-funcs user python-single-r1
+
+DESCRIPTION="DNS server designed to serve blacklist zones"
+HOMEPAGE="http://www.corpit.ru/mjt/rbldnsd.html"
+SRC_URI="http://www.corpit.ru/mjt/rbldnsd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~sparc ~x86 ~x86-fbsd"
+IUSE="ipv6 test zlib"
+
+REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+       test? ( ${PYTHON_DEPS}
+               dev-python/pydns:2[${PYTHON_USEDEP}] )"
+
+src_prepare() {
+       epatch "${FILESDIR}/rbldnsd-0.997a-robust-ipv6-test-support.patch"
+       epatch "${FILESDIR}/rbldnsd-0.997a-format-security-compile-fix.patch"
+}
+
+src_configure() {
+       # The ./configure file is handwritten and doesn't support a `make
+       # install` target, so there are no --prefix options. The econf
+       # function appends those automatically, so we can't use it.
+       ./configure \
+               $(use_enable ipv6) \
+               $(use_enable zlib) \
+               || die "./configure failed"
+}
+
+src_compile() {
+       emake \
+               AR="$(tc-getAR)" \
+               CC="$(tc-getCC)" \
+               RANLIB="$(tc-getRANLIB)"
+}
+
+src_test() {
+       emake check \
+               CC="$(tc-getCC)" \
+               PYTHON="${PYTHON}"
+}
+
+src_install() {
+       dosbin rbldnsd
+       doman rbldnsd.8
+       keepdir /var/db/rbldnsd
+       dodoc CHANGES* TODO NEWS README*
+       newinitd "${FILESDIR}"/initd-0.997a rbldnsd
+       newconfd "${FILESDIR}"/confd-0.997a rbldnsd
+}
+
+pkg_postinst() {
+       enewgroup rbldns
+       enewuser rbldns -1 -1 /var/db/rbldnsd rbldns
+       chown rbldns:rbldns /var/db/rbldnsd
+}