Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/maradns/
Date: Sat, 02 Dec 2017 17:58:43
Message-Id: 1512237487.3c8e4fb07cd0ed1001885f98e69500ddeaf08872.soap@gentoo
1 commit: 3c8e4fb07cd0ed1001885f98e69500ddeaf08872
2 Author: ktrace <coyote <AT> bks <DOT> tv>
3 AuthorDate: Wed Nov 29 18:59:18 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 2 17:58:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c8e4fb0
7
8 net-dns/maradns: version bump to 2.0.14
9
10 Add 2.0.14 MaraDNS, Deadwood 3.2.10
11
12 Package-Manager: Portage-2.3.13, Repoman-2.3.3
13 Closes: https://github.com/gentoo/gentoo/pull/6347
14
15 net-dns/maradns/Manifest | 1 +
16 net-dns/maradns/maradns-2.0.14.ebuild | 111 ++++++++++++++++++++++++++++++++++
17 2 files changed, 112 insertions(+)
18
19 diff --git a/net-dns/maradns/Manifest b/net-dns/maradns/Manifest
20 index fa432eb341b..221f300e61a 100644
21 --- a/net-dns/maradns/Manifest
22 +++ b/net-dns/maradns/Manifest
23 @@ -1 +1,2 @@
24 DIST maradns-2.0.09.tar.bz2 1139409 SHA256 e1ee80836f0fbc47b9b94ec839e112ea19c40bed0b70d672d231849a4dea1083 SHA512 42bfcafaf4e465d8d566b4d9ea8383b5d0f553486b86dd807b35a07358987227e5dc8187de0e8192fba5b53098d61f91091cec112ef7cc80c5d5e73d8acff3bf WHIRLPOOL 6f3e55d8c6633a465c0e9de576921d833c67332cf0cbc8c01e7bc7d70c46102c32566d0ee867cdbf11c8b2b1d5cdc40d18ee4791bd0a4e045ad0e0bc590e61d6
25 +DIST maradns-2.0.14.tar.bz2 1156272 BLAKE2B 7e96d0769dd1df70316cc1bd79fb7e902c723f78db035fe721aaab0d6902958a40c2743374824ae024759164ad9cbda9a3c6ecaec7cc6bf3c5fa7b384101c16f SHA512 57527bba2f9801904f59cc7d9e56cbd7124635841ad8c91cbd3d1b8d58e7fe38d509e19f6ea53e2790777e054b68bb8df02bfa820ba7c9dbe65262e1993a2aa4
26
27 diff --git a/net-dns/maradns/maradns-2.0.14.ebuild b/net-dns/maradns/maradns-2.0.14.ebuild
28 new file mode 100644
29 index 00000000000..8d0ca3ee841
30 --- /dev/null
31 +++ b/net-dns/maradns/maradns-2.0.14.ebuild
32 @@ -0,0 +1,111 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python2_7 )
39 +
40 +inherit python-single-r1 systemd toolchain-funcs user
41 +
42 +DEADWOOD_VER="3.2.10"
43 +
44 +DESCRIPTION="A security-aware DNS server"
45 +HOMEPAGE="http://www.maradns.org/"
46 +SRC_URI="http://www.maradns.org/download/${PV%.*}/${PV}/${P}.tar.bz2"
47 +
48 +# The GPL-2 covers the init script, bug 426018.
49 +LICENSE="BSD-2 GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~mips ~ppc ~x86"
52 +IUSE="authonly examples ipv6"
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
54 +
55 +DEPEND="${PYTHON_DEPS}"
56 +RDEPEND="${DEPEND}
57 + dev-lang/perl"
58 +
59 +pkg_setup() {
60 + ebegin "Creating group and users"
61 + enewgroup maradns 99
62 + enewuser duende 66 -1 -1 maradns
63 + enewuser maradns 99 -1 -1 maradns
64 + eend ${?}
65 +
66 + python-single-r1_pkg_setup
67 +}
68 +
69 +src_prepare() {
70 + default
71 +
72 + # Use duende-ng.c.
73 + cp tools/duende{,-ng}.c \
74 + || die "failed to rename duende-ng.c"
75 + # replace "make" by "$(MAKE)" to avoid GNU Make warning
76 + sed -i 's/\ make\ /\ \$\(MAKE\)\ /g' build/Makefile.linux \
77 + || die "can't patch build/Makefile.linux"
78 +
79 + python_fix_shebang tools/bind2csv2.py
80 +}
81 +
82 +src_configure() {
83 + tc-export CC
84 + ./configure $(use ipv6 && echo "--ipv6") || die "Failed to configure ${PN}"
85 +}
86 +
87 +src_install() {
88 + # Install the MaraDNS and Deadwood binaries
89 + dosbin server/maradns
90 + dosbin tcp/zoneserver
91 + if ! use authonly; then
92 + dosbin deadwood-${DEADWOOD_VER}/src/Deadwood
93 + fi
94 + dobin tcp/{getzone,fetchzone}
95 + dobin tools/{askmara,askmara-tcp,duende,bind2csv2.py,csv1tocsv2.pl}
96 +
97 + # MaraDNS docs, manpages, misc
98 + dodoc doc/en/{QuickStart,README,*.txt,*.html}
99 + dodoc -r doc/en/{text,webpage,tutorial}
100 + dodoc maradns.gpg.key
101 + if ! use authonly; then
102 + docinto deadwood
103 + dodoc deadwood-${DEADWOOD_VER}/doc/{*.txt,*.html,CHANGELOG,Deadwood-HOWTO}
104 + dodoc -r deadwood-${DEADWOOD_VER}/doc/internals
105 + fi
106 +
107 + # Install examples (optional)
108 + if use examples ; then
109 + docinto examples
110 + dodoc doc/en/examples/example_*
111 + fi
112 +
113 + # Install manpages
114 + doman doc/en/man/*.[1-9]
115 + if ! use authonly; then
116 + doman deadwood-${DEADWOOD_VER}/doc/{Deadwood,Duende}.1
117 + fi
118 +
119 + # Example configurations.
120 + insinto /etc/maradns
121 + newins doc/en/examples/example_full_mararc mararc_full.dist
122 + newins doc/en/examples/example_csv2 example_csv2.dist
123 + if ! use authonly; then
124 + newins deadwood-${DEADWOOD_VER}/doc/dwood3rc-all dwood3rc_all.dist
125 + fi
126 + keepdir /etc/maradns/logger
127 +
128 + # Init scripts.
129 + newinitd "${FILESDIR}"/maradns2 maradns
130 + newinitd "${FILESDIR}"/zoneserver2 zoneserver
131 + if ! use authonly; then
132 + newinitd "${FILESDIR}"/deadwood deadwood
133 + fi
134 +
135 + # systemd unit
136 + # please keep paths in sync!
137 + sed -e "s^@bindir@^${EPREFIX}/usr/sbin^" \
138 + -e "s^@sysconfdir@^${EPREFIX}/etc/maradns^" \
139 + "${FILESDIR}"/maradns.service.in > "${T}"/maradns.service \
140 + || die "failed to create the maradns.service file (sed)"
141 +
142 + systemd_dounit "${T}"/maradns.service
143 +}