1 |
commit: 7cbee1a3d886f00f43e431e0c50a74813ad58456 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 14:36:48 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 14:37:11 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cbee1a3 |
7 |
|
8 |
net-dns/rbldnsd: add version 0.998. |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
net-dns/rbldnsd/Manifest | 1 + |
13 |
net-dns/rbldnsd/rbldnsd-0.998.ebuild | 67 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 68 insertions(+) |
15 |
|
16 |
diff --git a/net-dns/rbldnsd/Manifest b/net-dns/rbldnsd/Manifest |
17 |
index 6e88d40..54a3ec0 100644 |
18 |
--- a/net-dns/rbldnsd/Manifest |
19 |
+++ b/net-dns/rbldnsd/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST rbldnsd-0.997a.tar.gz 144771 SHA256 9c17c6bde6995058204a66805444039d31523a7d4ef40cec059e505a0882a8ef SHA512 9a3e1a0ad2cd9dd08bcc114c70213a875e984f3761fa32c44fe544d8173f54330fe355ad229a120e64b8f4c8286187d0baa055526d3a85bc846df070bb213529 WHIRLPOOL b453396c9876fd4972c6028b5916ae9717d60d555e5bb33bc97f0a8910ee516a80d1a3cb6030a3850ec304794f4a00fd9f3dced0d5c7fd1388e7d87d53fedb24 |
22 |
+DIST rbldnsd-0.998.tar.gz 145363 SHA256 bc36082d46828ecdc0c9e3f8f009596746e1242b2b4002ab9cf9b93fe36e4924 SHA512 7b6fb106f8188b2ce6e05b622cf90a393a4642f00faa5bddc184ce02dbd2beee9d8de22cb09ae53a25c475f28f99d13fbf6252f0d4c1d72bf47ba23f769e7074 WHIRLPOOL 27165b85c85de5cd4db65979a093104d2f614af8163f10d65b5ac28eb443d4b9584ac5501314b8c3a8df3d730a0658f8cf88b0d6eb35efb9f3a17f25fc0ed49a |
23 |
|
24 |
diff --git a/net-dns/rbldnsd/rbldnsd-0.998.ebuild b/net-dns/rbldnsd/rbldnsd-0.998.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..63befe9 |
27 |
--- /dev/null |
28 |
+++ b/net-dns/rbldnsd/rbldnsd-0.998.ebuild |
29 |
@@ -0,0 +1,67 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+PYTHON_COMPAT=( python2_7 ) |
36 |
+ |
37 |
+inherit eutils toolchain-funcs user python-single-r1 |
38 |
+ |
39 |
+DESCRIPTION="DNS server designed to serve blacklist zones" |
40 |
+HOMEPAGE="http://www.corpit.ru/mjt/rbldnsd.html" |
41 |
+SRC_URI="http://www.corpit.ru/mjt/rbldnsd/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~hppa ~sparc ~x86 ~x86-fbsd" |
46 |
+IUSE="ipv6 test zlib" |
47 |
+ |
48 |
+REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
49 |
+ |
50 |
+RDEPEND="zlib? ( sys-libs/zlib )" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ test? ( ${PYTHON_DEPS} |
53 |
+ dev-python/pydns:2[${PYTHON_USEDEP}] )" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ epatch "${FILESDIR}/rbldnsd-0.997a-robust-ipv6-test-support.patch" |
57 |
+ epatch "${FILESDIR}/rbldnsd-0.997a-format-security-compile-fix.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 |
+ dosbin rbldnsd |
85 |
+ doman rbldnsd.8 |
86 |
+ keepdir /var/db/rbldnsd |
87 |
+ dodoc CHANGES* TODO NEWS README* |
88 |
+ newinitd "${FILESDIR}"/initd-0.997a rbldnsd |
89 |
+ newconfd "${FILESDIR}"/confd-0.997a rbldnsd |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { |
93 |
+ enewgroup rbldns |
94 |
+ enewuser rbldns -1 -1 /var/db/rbldnsd rbldns |
95 |
+ chown rbldns:rbldns /var/db/rbldnsd |
96 |
+} |