Gentoo Archives: gentoo-commits

From: Piotr Karbowski <slashbeast@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/maradns/
Date: Wed, 01 Jul 2020 19:47:39
Message-Id: 1593632721.0279498e10fabd402b4d3944e4847ace595de0b5.slashbeast@gentoo
1 commit: 0279498e10fabd402b4d3944e4847ace595de0b5
2 Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 1 19:44:31 2020 +0000
4 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 1 19:45:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0279498e
7
8 net-dns/maradns: 3.5.0005 version bump
9
10 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
11
12 net-dns/maradns/Manifest | 1 +
13 net-dns/maradns/maradns-3.5.0005.ebuild | 88 +++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/net-dns/maradns/Manifest b/net-dns/maradns/Manifest
17 index b99875ce971..26b66e10cf2 100644
18 --- a/net-dns/maradns/Manifest
19 +++ b/net-dns/maradns/Manifest
20 @@ -1,3 +1,4 @@
21 DIST maradns-2.0.09.tar.bz2 1139409 BLAKE2B 8c3709241b85f9069eb4e18098f7753b19bcc87d32bbb36aef42cb8ec123dc73b8e29e79b5efe1083035b2378a484e2c00038700647d5e75f469589b37b351e2 SHA512 42bfcafaf4e465d8d566b4d9ea8383b5d0f553486b86dd807b35a07358987227e5dc8187de0e8192fba5b53098d61f91091cec112ef7cc80c5d5e73d8acff3bf
22 DIST maradns-2.0.14.tar.bz2 1156272 BLAKE2B 7e96d0769dd1df70316cc1bd79fb7e902c723f78db035fe721aaab0d6902958a40c2743374824ae024759164ad9cbda9a3c6ecaec7cc6bf3c5fa7b384101c16f SHA512 57527bba2f9801904f59cc7d9e56cbd7124635841ad8c91cbd3d1b8d58e7fe38d509e19f6ea53e2790777e054b68bb8df02bfa820ba7c9dbe65262e1993a2aa4
23 DIST maradns-2.0.16.tar.bz2 1127504 BLAKE2B 142166370efed2d52c0a1e659bf0056f8d13cc5eca3c1d30c0278b81047aa58ce6c6f3f8496e982841b9dcd541ffd2c24467b8062aa5a7ffb1f31ef6cf841a15 SHA512 9959a7b6724aff5561fa9303b3d7c967e298fd63d95ef7e34d80514dde8871c19887c184a6466779f2833c295233dd1d54a7c06928ac58dcbb374281deb13f17
24 +DIST maradns-3.5.0005.tar.xz 5351412 BLAKE2B c6b1c4fb93cb507045b3c09574d7ce30b0af92301e157216b4a5bbd2ed74ceb829ef4d11cd08048c7a685a09cdd4178cf3fc4e7b2465820d26d3a5c1b96f4a5e SHA512 2e7008ff6217929008292dde60d96eb2ec0499a170e1b5bda5fcfb27300d2ce6cecd8b3e2a2d4b09ff32b803f9f435230378e6b2e41e7b63c42653d8c931151d
25
26 diff --git a/net-dns/maradns/maradns-3.5.0005.ebuild b/net-dns/maradns/maradns-3.5.0005.ebuild
27 new file mode 100644
28 index 00000000000..049cb0ac80e
29 --- /dev/null
30 +++ b/net-dns/maradns/maradns-3.5.0005.ebuild
31 @@ -0,0 +1,88 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +
39 +inherit systemd toolchain-funcs python-any-r1
40 +
41 +DESCRIPTION="A security-aware DNS server"
42 +HOMEPAGE="http://www.maradns.org/"
43 +SRC_URI="https://maradns.samiam.org/download/${PV%.*}/${PV}/${P}.tar.xz"
44 +
45 +# The GPL-2 covers the init script, bug 426018.
46 +LICENSE="BSD-2 GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~mips ~ppc ~x86"
49 +IUSE="examples ipv6"
50 +
51 +DEPEND="${PYTHON_DEPS}"
52 +RDEPEND="${DEPEND}
53 + acct-user/maradns
54 + acct-group/maradns
55 + acct-user/duende
56 + dev-lang/perl"
57 +
58 +src_prepare() {
59 + default
60 +
61 + # replace "make" by "$(MAKE)" to avoid GNU Make warning
62 + sed -i 's/\ make\ /\ \$\(MAKE\)\ /g' build/Makefile.linux \
63 + || die "can't patch build/Makefile.linux"
64 +
65 + python_fix_shebang tools/bind2csv2.py
66 +}
67 +
68 +src_configure() {
69 + tc-export CC
70 + ./configure $(use ipv6 && echo "--ipv6") || die "Failed to configure ${PN}"
71 +}
72 +
73 +src_install() {
74 + # Install the MaraDNS and Deadwood binaries
75 + dosbin server/maradns
76 + dosbin tcp/zoneserver
77 + dosbin deadwood-${PV}/src/Deadwood
78 + dobin tcp/{getzone,fetchzone}
79 + dobin tools/{askmara,askmara-tcp,duende,bind2csv2.py,csv1tocsv2.pl}
80 +
81 + # MaraDNS docs, manpages, misc
82 + dodoc doc/en/{QuickStart,README,*.txt,*.html}
83 + dodoc -r doc/en/{text,webpage,tutorial}
84 + dodoc maradns.gpg.key
85 + docinto deadwood
86 + dodoc deadwood-${PV}/doc/{*.txt,*.html,CHANGELOG,Deadwood-HOWTO}
87 + dodoc -r deadwood-${PV}/doc/internals
88 +
89 + # Install examples (optional)
90 + if use examples ; then
91 + docinto examples
92 + dodoc doc/en/examples/example_*
93 + fi
94 +
95 + # Install manpages
96 + doman doc/en/man/*.[1-9]
97 + doman deadwood-${PV}/doc/{Deadwood,Duende}.1
98 +
99 + # Example configurations.
100 + insinto /etc/maradns
101 + newins doc/en/examples/example_full_mararc mararc_full.dist
102 + newins doc/en/examples/example_csv2 example_csv2.dist
103 + newins deadwood-${PV}/doc/dwood3rc-all dwood3rc_all.dist
104 + keepdir /etc/maradns/logger
105 +
106 + # Init scripts.
107 + newinitd "${FILESDIR}"/maradns2 maradns
108 + newinitd "${FILESDIR}"/zoneserver2 zoneserver
109 + newinitd "${FILESDIR}"/deadwood deadwood
110 +
111 + # systemd unit
112 + # please keep paths in sync!
113 + sed -e "s^@bindir@^${EPREFIX}/usr/sbin^" \
114 + -e "s^@sysconfdir@^${EPREFIX}/etc/maradns^" \
115 + "${FILESDIR}"/maradns.service.in > "${T}"/maradns.service \
116 + || die "failed to create the maradns.service file (sed)"
117 +
118 + systemd_dounit "${T}"/maradns.service
119 +}