1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_6,2_7} )
8 inherit eutils toolchain-funcs user python-single-r1
10 DESCRIPTION="DNS server designed to serve blacklist zones"
11 HOMEPAGE="http://www.corpit.ru/mjt/rbldnsd.html"
12 SRC_URI="http://www.corpit.ru/mjt/rbldnsd/${P}.tar.gz"
16 KEYWORDS="~amd64 ~hppa ~sparc ~x86 ~x86-fbsd"
19 REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
21 RDEPEND="zlib? ( sys-libs/zlib )"
23 test? ( ${PYTHON_DEPS}
24 dev-python/pydns:2[${PYTHON_USEDEP}] )"
27 epatch "${FILESDIR}/${P}-robust-ipv6-test-support.patch"
31 # The ./configure file is handwritten and doesn't support a `make
32 # install` target, so there are no --prefix options. The econf
33 # function appends those automatically, so we can't use it.
37 || die "./configure failed"
44 RANLIB="$(tc-getRANLIB)"
56 keepdir /var/db/rbldnsd
57 dodoc CHANGES* TODO NEWS README*
58 newinitd "${FILESDIR}"/initd-${PV} rbldnsd
59 newconfd "${FILESDIR}"/confd-${PV} rbldnsd
64 enewuser rbldns -1 -1 /var/db/rbldnsd rbldns
65 chown rbldns:rbldns /var/db/rbldnsd