Gentoo Archives: gentoo-commits

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