From: Michael Orlitzky Date: Wed, 18 Dec 2013 16:14:52 +0000 (-0500) Subject: Remove rbldnsd (in portage). X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjo-overlay.git;a=commitdiff_plain;h=4440dd5f008806b0556352b7530c471005524e99 Remove rbldnsd (in portage). --- diff --git a/net-dns/rbldnsd/Manifest b/net-dns/rbldnsd/Manifest deleted file mode 100644 index 04850e2..0000000 --- a/net-dns/rbldnsd/Manifest +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - -AUX confd-0.997a 1370 SHA256 dc440295d2a45023a1fdf6f1c16fea7b6c0608082b250b1150dc85278e36fac3 SHA512 5518ceeaf6ae674a301c9b77f8a3654bf6f06c65acdf7107b01f165e92c4cd1c290d89060cc4242ef504e790eca42548cef432cbdbd8e9d05685e25adee234db WHIRLPOOL be2ba3f0bb1ffcb840f2d78ec02e95c8b571430856e0697285ffedc1d7b99ded8034a5e99e7290bd79b99078d5aaad573fd3c58257441c0bc7db8396c4c0215a -AUX initd-0.997a 558 SHA256 b8861f0206be96bcdc7ed392694790a08496c67ac172800b2d0e0d33a234f1ed SHA512 e2d2669024bc4831f7fd8ccd598386553f61280aa3fb3d22e7d2aa9b1cf23a1847cfa627bcfe5ba847cdf5cf14eb5fc75fa9b2525bf54889e33450fcaeea44d7 WHIRLPOOL cf0f69931c0a251c7e69a8befe9637253b905b8f8d29ade9c6de0c768ec8c053fb7d563414eb20dfee3f7512e135a81375b0049dc9e03cc536d34112f2d88e04 -AUX rbldnsd-0.997a-robust-ipv6-test-support.patch 10866 SHA256 a1e29bc52a2d69c73c50300628aba0187556491246c54fbd6bb518e231f0bf89 SHA512 37f47f5305c074a8d1267f0879fe96a311589321a11db61ac27f5cc9db246f126811cc86343a4535a14487a52dc30312c70783470a154e8e750f276098d3e5a8 WHIRLPOOL e2366b5064768b105980d4c8f8572d93b7a24b45f8fddd9ec34944017fc5de3037c6808ffeeb40b6107751ebb617b8dc22aaff36363dbfd6010b207be8b352b4 -DIST rbldnsd-0.997a.tar.gz 144771 SHA256 9c17c6bde6995058204a66805444039d31523a7d4ef40cec059e505a0882a8ef SHA512 9a3e1a0ad2cd9dd08bcc114c70213a875e984f3761fa32c44fe544d8173f54330fe355ad229a120e64b8f4c8286187d0baa055526d3a85bc846df070bb213529 WHIRLPOOL b453396c9876fd4972c6028b5916ae9717d60d555e5bb33bc97f0a8910ee516a80d1a3cb6030a3850ec304794f4a00fd9f3dced0d5c7fd1388e7d87d53fedb24 -EBUILD rbldnsd-0.997a.ebuild 1514 SHA256 2c24cd45a597fdbe97c62c55751fd46581b71c715636b637ca5ca6d347d63179 SHA512 f32a1031c3256c8db5d7c4317256a66e632897e0b8291ea2681e30474ee56740500194a2f7748fba0157e5427372e13a5f8ebd2a3d92e055dc2ebc8c162ec8f3 WHIRLPOOL f4b2406b996b06791530e1b81171c5dcb5bcff2e878cfe90b8c801c5118f74dcc681cd7204304c6ce5be288a6bedd43cdac62ba880da74f183105c3d3873907f -MISC metadata.xml 1179 SHA256 6a9d5a1772e174859bf13dbe53a955671ad97eeb8322dd6ff9772046460e017d SHA512 d2f2925bd8de92dc0d9dffce03b0ce8a61c28a0abbbdc3ca21ca10ac3f22a773dcbf19e880563e0557a1512fe3e0586f3b4ef5abd0b6add8278e6b24ea709051 WHIRLPOOL 42f38dbd07679c6e1ceb9d3b054928e5a0f3befdb8d4f5e74b3b23a486bb98066bc7a44e2dab05ef39465f44e41ad815a0cc3f7a32add5bff84c78a484a986c6 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iQJ8BAEBCABmBQJSqbiXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxNEU5RDcyRDdCMUFGREVGQzBCNDFDMUY2 -RjQ4RDNEQTA1QzJEQURCAAoJEG9I09oFwtrbRj8P+wesNS+1EjWpI+gdTE6Pty8b -qroxXX4x2LPwgypxTnZ6vIQn6jVyU33Qsm29QvRn8461nffxaIVYw7H2IrcPZOQn -e8UJPr029ekkmqG3zHmjT9OciZvVP5kUsK473w/gspsvj27Kbe02KhVSMPUNSOn+ -vQSvWHQK9snfWPyceCQY1TZOVt9fGETVAmM2gWQb2ncTfgFHHQiUyw8vm8GK9Wki -dH6uo0M2x0Ct0zBlt7RSd2GUBIYMShZz4uQhf34Ct74XLFjc1t9yFRsMDVd3dRog -+vBwPBdqzHb89MHxYxhJWMPbaAuzcfpssNvfaDLjXkDIk+cy3DiBGnvB3EiLkOO3 -IJaDU49e8gDvZxk92QadP9EG8dJGRaWqxTOwucHWrvy5nD97bBtENcal01KGeTpr -dgqu16n5UMKzy3Py+LU+t92HNTvVnQXB+wPHbnsqDlVzvUSeaAyysSw/vPes84Cz -u7ZbdMrQMhyBSKQV9RpGKuAY3BQv8p8sccQWv+WUEaogu1D0t4xakLkep1hRuxHp -Q/Aopa4BCerIbwrC158BNyf5vgJaF93ffyWnAWHI5/U8vswlXVSYx4BpFnVWnxYg -M2VTDUUOkQtSmkYzN1OiGm21QmI2hKJ+LeKtrNp2HisbdXs+Hvd365JNwUrEjOuZ -h8fEFPcAgEgpNnFtBwqr -=LQfG ------END PGP SIGNATURE----- diff --git a/net-dns/rbldnsd/files/confd-0.997a b/net-dns/rbldnsd/files/confd-0.997a deleted file mode 100644 index 0fb7685..0000000 --- a/net-dns/rbldnsd/files/confd-0.997a +++ /dev/null @@ -1,35 +0,0 @@ -# A whitespace-separated list of addresses on which to listen. The -# syntax is "host:port", where the port defaults to 53. -# -# Note that by default the rbldnsd init script does not require any -# interfaces other than lo to be "up" (see bug #439092). So if you -# LISTEN on a non-loopback interface, you should specify a dependency -# on that interface using rc_need. An example is given below assuming -# that net.lan0 provides 192.168.0.1. -# -# rc_need="net.lan0" -# -# LISTEN="127.0.0.1 -# 192.168.0.1" -# -LISTEN="localhost" - - -# A whitespace-separated list of RBL zones. For the correct syntax, please -# see the rbldnsd(8) man page. The following $ZONES will look for -# files named "badguys.example.com" and "spammers.example.net" (in the -# appropriate format) under /var/db/rbldnsd, and use those same names -# for the blacklists contained therein. -ZONES="badguys.example.com:ip4set:badguys.example.com - spammers.example.net:ip4tset:spammers.example.net" - - -# Add any additional options for the rbldnsd daemon below. The -a and -# -vv below are suggested for performance/security reasons. They are -# described in the man page. -# -# The rootdir (-r) and PID (-p) options are passed automatically, with -# rootdir set to /var/db/rbldnsd (where you should put your zone -# files). The daemon will run as the rbldns user, which was created by -# portage. -OPTIONS="-a -vv" diff --git a/net-dns/rbldnsd/files/initd-0.997a b/net-dns/rbldnsd/files/initd-0.997a deleted file mode 100644 index 8d3548e..0000000 --- a/net-dns/rbldnsd/files/initd-0.997a +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -start() { - ebegin "Starting rbldnsd" - - start-stop-daemon --start --quiet --pidfile /run/rbldnsd.pid \ - --exec /usr/sbin/rbldnsd -- \ - -r /var/db/rbldnsd \ - -p /run/rbldnsd.pid \ - $(for x in ${LISTEN}; do echo "-b ${x}"; done) \ - ${OPTIONS} \ - ${ZONES} - - eend $? -} - -stop() { - ebegin "Stopping rbldnsd" - start-stop-daemon --stop --quiet --pidfile /run/rbldnsd.pid \ - --exec /usr/sbin/rbldnsd - eend $? -} diff --git a/net-dns/rbldnsd/files/rbldnsd-0.997a-robust-ipv6-test-support.patch b/net-dns/rbldnsd/files/rbldnsd-0.997a-robust-ipv6-test-support.patch deleted file mode 100644 index 5621075..0000000 --- a/net-dns/rbldnsd/files/rbldnsd-0.997a-robust-ipv6-test-support.patch +++ /dev/null @@ -1,329 +0,0 @@ -diff --git a/NEWS b/NEWS -index 8d8bdd9..4d8c01d 100644 ---- a/NEWS -+++ b/NEWS -@@ -1,6 +1,19 @@ - This file describes user-visible changes in rbldnsd. - Newer news is at the top. - -+Next release -+ -+ - fix tests for systems without ipv6 support, or when ipv6 is -+ disabled in rbldnsd at compile-time -+ -+ - fix tests for API change in pydns >= 2.3.6 -+ -+ - It is no longer an error to request binding to a particular -+ address/port more than once. (The subsequent requests are simply -+ ignored.) (This avoids confusion on certain systems/configurations -+ where gethostbyname("localhost") can return 127.0.0.1 multiple -+ times.) -+ - 0.997a (23 Jul 2013) - - - minor fixes/changes in packaging, no code changes. -diff --git a/rbldnsd.c b/rbldnsd.c -index abf1d01..8322bdd 100644 ---- a/rbldnsd.c -+++ b/rbldnsd.c -@@ -203,10 +203,79 @@ static volatile int signalled; - #define SIGNALLED_ZSTATS 0x10 - #define SIGNALLED_TERM 0x20 - -+static inline int sockaddr_in_equal(const struct sockaddr_in *addr1, -+ const struct sockaddr_in *addr2) -+{ -+ return (addr1->sin_port == addr2->sin_port -+ && addr1->sin_addr.s_addr == addr2->sin_addr.s_addr); -+} -+ -+#ifndef NO_IPv6 -+static inline int sockaddr_in6_equal(const struct sockaddr_in6 *addr1, -+ const struct sockaddr_in6 *addr2) -+{ -+ if (memcmp(addr1->sin6_addr.s6_addr, addr2->sin6_addr.s6_addr, 16) != 0) -+ return 0; -+ return (addr1->sin6_port == addr2->sin6_port -+ && addr1->sin6_flowinfo == addr2->sin6_flowinfo -+ && addr1->sin6_scope_id == addr2->sin6_scope_id); -+} -+#endif -+ -+static inline int sockaddr_equal(const struct sockaddr *addr1, -+ const struct sockaddr *addr2) -+{ -+ if (addr1->sa_family != addr2->sa_family) -+ return 0; -+ switch (addr1->sa_family) { -+ case AF_INET: -+ return sockaddr_in_equal((const struct sockaddr_in *)addr1, -+ (const struct sockaddr_in *)addr2); -+#ifndef NO_IPv6 -+ return sockaddr_in6_equal((const struct sockaddr_in6 *)addr1, -+ (const struct sockaddr_in6 *)addr2); -+#endif -+ default: -+ error(0, "unknown address family (%d)", addr1->sa_family); -+ } -+} -+ -+/* already_bound(addr, addrlen) -+ * -+ * Determine whether we've already bound to a particular address. -+ * This is here mostly to deal with the fact that on certain systems, -+ * gethostbyname()/getaddrinfo() can return a duplicate 127.0.0.1 -+ * for 'localhost'. See -+ * - http://sourceware.org/bugzilla/show_bug.cgi?id=4980 -+ * - https://bugzilla.redhat.com/show_bug.cgi?id=496300 -+ */ -+static int already_bound(const struct sockaddr *addr, socklen_t addrlen) { -+#ifdef NO_IPv6 -+ struct sockaddr_in addr_buf; -+#else -+ struct sockaddr_in6 addr_buf; -+#endif -+ struct sockaddr *boundaddr = (struct sockaddr *)&addr_buf; -+ socklen_t buflen; -+ int i; -+ -+ for (i = 0; i < numsock; i++) { -+ buflen = sizeof(addr_buf); -+ if (getsockname(sock[i], boundaddr, &buflen) < 0) -+ error(errno, "getsockname failed"); -+ if (buflen == addrlen && sockaddr_equal(boundaddr, addr)) -+ return 1; -+ } -+ return 0; -+} -+ - #ifdef NO_IPv6 - static void newsocket(struct sockaddr_in *sin) { - int fd; - const char *host = ip4atos(ntohl(sin->sin_addr.s_addr)); -+ -+ if (already_bound((struct sockaddr *)sin, sizeof(*sin))) -+ return; - if (numsock >= MAXSOCK) - error(0, "too many listening sockets (%d max)", MAXSOCK); - fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); -@@ -223,6 +292,8 @@ static int newsocket(struct addrinfo *ai) { - int fd; - char host[NI_MAXHOST], serv[NI_MAXSERV]; - -+ if (already_bound(ai->ai_addr, ai->ai_addrlen)) -+ return 1; - if (numsock >= MAXSOCK) - error(0, "too many listening sockets (%d max)", MAXSOCK); - fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); -diff --git a/rbldnsd.py b/rbldnsd.py -index 9300ef2..4b78dee 100644 ---- a/rbldnsd.py -+++ b/rbldnsd.py -@@ -2,6 +2,7 @@ - - - """ -+import errno - from itertools import count - import subprocess - from tempfile import NamedTemporaryFile, TemporaryFile -@@ -12,6 +13,14 @@ try: - import DNS - except ImportError: - raise RuntimeError("The pydns library is not installed") -+try: -+ from DNS import SocketError as DNS_SocketError -+except ImportError: -+ class DNS_SocketError(Exception): -+ """ Dummy, never raised. -+ -+ (Older versions of pydns before 2.3.6 do not raise SocketError.) -+ """ - - DUMMY_ZONE_HEADER = """ - $SOA 0 example.org. hostmaster.example.com. 0 1h 1h 2d 1h -@@ -113,7 +122,6 @@ class Rbldnsd(object): - stderr=self.stderr) - - # wait for rbldnsd to start responding -- time.sleep(0.1) - for retry in count(): - if daemon.poll() is not None: - raise DaemonError( -@@ -124,12 +132,18 @@ class Rbldnsd(object): - break - except QueryRefused: - break -+ except DNS_SocketError as ex: -+ # pydns >= 2.3.6 -+ wrapped_error = ex.args[0] -+ if wrapped_error.errno != errno.ECONNREFUSED: -+ raise - except DNS.DNSError as ex: -+ # pydns < 2.3.6 - if str(ex) != 'no working nameservers found': - raise -- elif retries > 10: -- raise DaemonError( -- "rbldnsd does not seem to be responding") -+ if retry > 10: -+ raise DaemonError("rbldnsd does not seem to be responding") -+ time.sleep(0.1) - - def _stop_daemon(self): - daemon = self._daemon -@@ -150,6 +164,22 @@ class Rbldnsd(object): - raise DaemonError("rbldnsd exited with code %d" - % daemon.returncode) - -+ @property -+ def no_ipv6(self): -+ """ Was rbldnsd compiled with -DNO_IPv6? -+ """ -+ # If rbldnsd was compiled with -DNO_IPv6, the (therefore -+ # unsupported) '-6' command-line switch will not be described -+ # in the help message -+ cmd = [self.daemon_bin, '-h'] -+ proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) -+ help_message = proc.stdout.readlines() -+ if proc.wait() != 0: -+ raise subprocess.CalledProcessError(proc.returncode, cmd) -+ return not any(line.lstrip().startswith('-6 ') -+ for line in help_message) -+ -+ - class TestRbldnsd(unittest.TestCase): - def test(self): - rbldnsd = Rbldnsd() -diff --git a/test_acl.py b/test_acl.py -index d93ca0a..10bed1c 100644 ---- a/test_acl.py -+++ b/test_acl.py -@@ -1,5 +1,8 @@ - """ Tests for the acl dataset - """ -+from functools import wraps -+import socket -+import sys - from tempfile import NamedTemporaryFile - import unittest - -@@ -9,6 +12,35 @@ __all__ = [ - 'TestAclDataset', - ] - -+try: -+ from unittest import skipIf -+except ImportError: -+ # hokey replacement (for python <= 2.6) -+ def skipIf(condition, reason): -+ if condition: -+ def decorate(f): -+ @wraps(f) -+ def skipped(*args, **kw): -+ sys.stderr.write("skipped test: %s " % reason) -+ return skipped -+ return decorate -+ else: -+ return lambda f: f -+ -+def _have_ipv6(): -+ # Check for IPv6 support -+ if not getattr(socket, 'has_ipv6', False): -+ return False # no python support for ipv6 -+ elif Rbldnsd().no_ipv6: -+ return False # rbldnsd compiled with -DNO_IPv6 -+ try: -+ socket.socket(socket.AF_INET6, socket.SOCK_DGRAM).close() -+ except socket.error: -+ return False # no kernel (or libc) support for ipv6? -+ return True -+ -+no_ipv6 = not _have_ipv6() -+ - def daemon(acl, addr='localhost'): - """ Create an Rbldnsd instance with given ACL - """ -@@ -33,11 +65,13 @@ class TestAclDataset(unittest.TestCase): - addr='127.0.0.1') as dnsd: - self.assertEqual(dnsd.query('test.example.com'), 'Success') - -+ @skipIf(no_ipv6, "IPv6 unsupported") - def test_refuse_ipv6(self): - with daemon(acl=["::1 :refuse"], - addr='::1') as dnsd: - self.assertRaises(QueryRefused, dnsd.query, 'test.example.com') - -+ @skipIf(no_ipv6, "IPv6 unsupported") - def test_pass_ipv6(self): - with daemon(acl=[ "0/0 :refuse", - "0::1 :pass" ], -diff --git a/test_ip4trie.py b/test_ip4trie.py -index fe9e78f..2cce09b 100644 ---- a/test_ip4trie.py -+++ b/test_ip4trie.py -@@ -9,7 +9,7 @@ __all__ = [ - ] - - def ip4trie(zone_data): -- """ Run rbldnsd with an ip6trie dataset -+ """ Run rbldnsd with an ip4trie dataset - """ - dnsd = Rbldnsd() - dnsd.add_dataset('ip4trie', ZoneFile(zone_data)) -diff --git a/test_ip6trie.py b/test_ip6trie.py -index d3600db..377c5dd 100644 ---- a/test_ip6trie.py -+++ b/test_ip6trie.py -@@ -15,15 +15,6 @@ def ip6trie(zone_data): - dnsd.add_dataset('ip6trie', ZoneFile(zone_data)) - return dnsd - --def rfc3152(ip6addr, domain='example.com'): -- from socket import inet_pton, AF_INET6 -- from struct import unpack -- -- bytes = unpack("16B", inet_pton(AF_INET6, ip6addr)) -- nibbles = '.'.join("%x.%x" % (byte & 0xf, (byte >> 4) & 0xf) -- for byte in reversed(bytes)) -- return "%s.%s" % (nibbles, domain) -- - class TestIp6TrieDataset(unittest.TestCase): - def test_exclusion(self): - with ip6trie(["dead::/16 listed", -@@ -31,5 +22,35 @@ class TestIp6TrieDataset(unittest.TestCase): - self.assertEqual(dnsd.query(rfc3152("dead::beef")), None) - self.assertEqual(dnsd.query(rfc3152("dead::beee")), "listed") - -+ -+def rfc3152(ip6addr, domain='example.com'): -+ return "%s.%s" % ('.'.join(reversed(_to_nibbles(ip6addr))), domain) -+ -+def _to_nibbles(ip6addr): -+ """ Convert ip6 address (in rfc4291 notation) to a sequence of nibbles -+ -+ NB: We avoid the use of socket.inet_pton(AF_INET6, ip6addr) here -+ because it fails (with 'error: can't use AF_INET6, IPv6 is -+ disabled') when python has been compiled without IPv6 support. See -+ http://www.corpit.ru/pipermail/rbldnsd/2013q3/001181.html -+ -+ """ -+ def _split_words(addr): -+ return [ int(w, 16) for w in addr.split(':') ] if addr else [] -+ -+ if '::' in ip6addr: -+ head, tail = [ _split_words(s) for s in ip6addr.split('::', 1) ] -+ nzeros = 8 - len(head) - len(tail) -+ assert nzeros >= 0 -+ words = head + [ 0 ] * nzeros + tail -+ else: -+ words = _split_words(ip6addr) -+ -+ assert len(words) == 8 -+ for word in words: -+ assert 0 <= word <= 0xffff -+ -+ return ''.join("%04x" % word for word in words) -+ - if __name__ == '__main__': - unittest.main() diff --git a/net-dns/rbldnsd/metadata.xml b/net-dns/rbldnsd/metadata.xml deleted file mode 100644 index 2c45ca4..0000000 --- a/net-dns/rbldnsd/metadata.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - proxy-maintainers - - michael@orlitzky.com - Michael Orlitzky - Proxy Maintainer. CC on bugs. - - - rbldnsd is a small and fast DNS daemon which is especially made to serve DNSBL - zones. This daemon was inspired by Dan J. Bernstein's rbldns program found in - the djbdns package. - - rbldnsd is extremely fast - it outperforms both bind and djbdns greatly. It has - very small memory footprint. - - The daemon can serve both IP-based (ordb.org, dsbl.org etc) and name-based - (rfc-ignorant.org) blocklists. Unlike DJB's rbldns, it has ability to specify - individual values for every entry, can serve as many zones on a single IP - address as you wish, and, finally, it is a real nameserver: it can reply to DNS - metadata requests. The daemon keeps all zones in memory for faster operations, - but its memory usage is very efficient, especially for repeated TXT values which - are stored only once. - - diff --git a/net-dns/rbldnsd/rbldnsd-0.997a.ebuild b/net-dns/rbldnsd/rbldnsd-0.997a.ebuild deleted file mode 100644 index 1754fc0..0000000 --- a/net-dns/rbldnsd/rbldnsd-0.997a.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -PYTHON_COMPAT=( python{2_6,2_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}/${P}-robust-ipv6-test-support.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-${PV} rbldnsd - newconfd "${FILESDIR}"/confd-${PV} rbldnsd -} - -pkg_postinst() { - enewgroup rbldns - enewuser rbldns -1 -1 /var/db/rbldnsd rbldns - chown rbldns:rbldns /var/db/rbldnsd -}