1 |
commit: 390249f9888149c83468fe7a083a33b5c1136d70 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 11 16:18:30 2020 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 11 17:09:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=390249f9 |
7 |
|
8 |
net-dns/rbldnsd: new revision with GLEP81 and a fix for python deps. |
9 |
|
10 |
Standard GLEP81 update in the process of fixing bug 708584, which |
11 |
looks to need only a single has_version call predicated on USE=test |
12 |
added in python_check_deps(). |
13 |
|
14 |
Closes: https://bugs.gentoo.org/708584 |
15 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
16 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
17 |
|
18 |
net-dns/rbldnsd/rbldnsd-0.998b-r1.ebuild | 69 ++++++++++++++++++++++++++++++++ |
19 |
1 file changed, 69 insertions(+) |
20 |
|
21 |
diff --git a/net-dns/rbldnsd/rbldnsd-0.998b-r1.ebuild b/net-dns/rbldnsd/rbldnsd-0.998b-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..c73e294de9e |
24 |
--- /dev/null |
25 |
+++ b/net-dns/rbldnsd/rbldnsd-0.998b-r1.ebuild |
26 |
@@ -0,0 +1,69 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+PYTHON_COMPAT=( python2_7 ) |
32 |
+ |
33 |
+inherit toolchain-funcs python-any-r1 |
34 |
+ |
35 |
+DESCRIPTION="DNS server designed to serve blacklist zones" |
36 |
+HOMEPAGE="https://rbldnsd.io/" |
37 |
+SRC_URI="https://github.com/spamhaus/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="GPL-2" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~hppa ~sparc ~x86" |
42 |
+IUSE="ipv6 test zlib" |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+RDEPEND="zlib? ( sys-libs/zlib )" |
46 |
+DEPEND="${RDEPEND}" |
47 |
+BDEPEND=" |
48 |
+ acct-group/rbldns |
49 |
+ acct-user/rbldns |
50 |
+ test? ( |
51 |
+ ${RDEPEND} |
52 |
+ ${PYTHON_DEPS} |
53 |
+ $(python_gen_any_dep 'dev-python/pydns:2[${PYTHON_USEDEP}]') |
54 |
+ )" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}/rbldnsd-0.997a-robust-ipv6-test-support.patch" |
58 |
+) |
59 |
+ |
60 |
+src_configure() { |
61 |
+ # The ./configure file is handwritten and doesn't support a `make |
62 |
+ # install` target, so there are no --prefix options. The econf |
63 |
+ # function appends those automatically, so we can't use it. |
64 |
+ ./configure \ |
65 |
+ $(use_enable ipv6) \ |
66 |
+ $(use_enable zlib) \ |
67 |
+ || die "./configure failed" |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ emake \ |
72 |
+ AR="$(tc-getAR)" \ |
73 |
+ CC="$(tc-getCC)" \ |
74 |
+ RANLIB="$(tc-getRANLIB)" |
75 |
+} |
76 |
+ |
77 |
+src_test() { |
78 |
+ emake check \ |
79 |
+ CC="$(tc-getCC)" \ |
80 |
+ PYTHON="${PYTHON}" |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ einstalldocs |
85 |
+ dosbin rbldnsd |
86 |
+ doman rbldnsd.8 |
87 |
+ newinitd "${FILESDIR}"/initd-0.997a rbldnsd |
88 |
+ newconfd "${FILESDIR}"/confd-0.997a rbldnsd |
89 |
+ diropts -g rbldns -o rbldns -m 0750 |
90 |
+ keepdir /var/db/rbldnsd |
91 |
+} |
92 |
+ |
93 |
+python_check_deps() { |
94 |
+ ! use test || has_version "dev-python/pydns:2[${PYTHON_USEDEP}]" |
95 |
+} |