1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-dns/rbldnsd/rbldnsd-0.997.ebuild,v 1.3 2013/09/05 18:59:06 mgorny Exp $
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 RDEPEND="zlib? ( sys-libs/zlib )"
21 test? ( ${PYTHON_DEPS}
22 dev-python/pydns:2[${PYTHON_USEDEP}] )"
25 epatch "${FILESDIR}/${P}-robust-ipv6-test-support.patch"
29 # The ./configure file is handwritten and doesn't support a `make
30 # install` target, so there are no --prefix options. The econf
31 # function appends those automatically, so we can't use it.
35 || die "./configure failed"
42 RANLIB="$(tc-getRANLIB)"
54 keepdir /var/db/rbldnsd
55 dodoc CHANGES* TODO NEWS README*
56 newinitd "${FILESDIR}"/initd-${PV} rbldnsd
57 newconfd "${FILESDIR}"/confd-${PV} rbldnsd
62 enewuser rbldns -1 -1 /var/db/rbldnsd rbldns
63 chown rbldns:rbldns /var/db/rbldnsd