1 |
commit: 5b43506ed9b31d9388b82b16375fa381f21aabde |
2 |
Author: Victor Kustov <ktrace <AT> yandex <DOT> ru> |
3 |
AuthorDate: Wed Jul 27 18:37:32 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 17 16:17:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b43506e |
7 |
|
8 |
net-dns/maradns: bump version to 3.5.0022 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Victor Kustov <ktrace <AT> yandex.ru> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/26626 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
net-dns/maradns/Manifest | 1 + |
16 |
net-dns/maradns/files/maradns-3.5.0022-flags.patch | 65 +++++++++++++++ |
17 |
net-dns/maradns/maradns-3.5.0022.ebuild | 96 ++++++++++++++++++++++ |
18 |
3 files changed, 162 insertions(+) |
19 |
|
20 |
diff --git a/net-dns/maradns/Manifest b/net-dns/maradns/Manifest |
21 |
index 0483ddcd84fc..5cfeb8c3d3e1 100644 |
22 |
--- a/net-dns/maradns/Manifest |
23 |
+++ b/net-dns/maradns/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST maradns-3.5.0005.tar.xz 5351412 BLAKE2B c6b1c4fb93cb507045b3c09574d7ce30b0af92301e157216b4a5bbd2ed74ceb829ef4d11cd08048c7a685a09cdd4178cf3fc4e7b2465820d26d3a5c1b96f4a5e SHA512 2e7008ff6217929008292dde60d96eb2ec0499a170e1b5bda5fcfb27300d2ce6cecd8b3e2a2d4b09ff32b803f9f435230378e6b2e41e7b63c42653d8c931151d |
26 |
DIST maradns-3.5.0020.tar.xz 7154452 BLAKE2B 4d193c06620332b90f4a004e787f9cbe61cd48adcee1dd667ecf0383c0fb81f5b7cae40ee953f077b2ccf060d7429863f741cf942c34c862d6c56092bc40600b SHA512 3478ccdc82d5be45826072f91c1b00c491f21f69bcce169cfeb3dfdd00e0012a9def884d711daa41ea18dce52e069dbb4c31e1e37ecda418565b5d8d6a0ea4d4 |
27 |
+DIST maradns-3.5.0022.tar.xz 7375408 BLAKE2B d79fd800099f41e6395537b8a9d945820cd295c9a3be8bec0850b8c85df65a607b07c3a0949a6ed058d1155514836d5a72a3ab0512a4369a979b021c80159908 SHA512 0c4df5aac0a979a74f811c9ccd30e2708f6b21816d9d70b88bf31ac4a65175b46c3a53adf439e098c57aa9b79250c26a38c8cdf26e0ee52637092a184d852076 |
28 |
|
29 |
diff --git a/net-dns/maradns/files/maradns-3.5.0022-flags.patch b/net-dns/maradns/files/maradns-3.5.0022-flags.patch |
30 |
new file mode 100644 |
31 |
index 000000000000..9f6b81addfca |
32 |
--- /dev/null |
33 |
+++ b/net-dns/maradns/files/maradns-3.5.0022-flags.patch |
34 |
@@ -0,0 +1,65 @@ |
35 |
+From 15470045421448a7a6813e2a4a96e18bba3b0aa4 Mon Sep 17 00:00:00 2001 |
36 |
+From: Victor Kustov <ktrace@××××××.ru> |
37 |
+Date: Wed, 27 Jul 2022 21:28:31 +0300 |
38 |
+Subject: [PATCH] 2nd |
39 |
+ |
40 |
+--- |
41 |
+ build/Makefile.linux | 32 ++++++++++++++++---------------- |
42 |
+ 1 file changed, 16 insertions(+), 16 deletions(-) |
43 |
+ |
44 |
+diff --git a/build/Makefile.linux b/build/Makefile.linux |
45 |
+index 965c7fb..572dccc 100644 |
46 |
+--- a/build/Makefile.linux |
47 |
++++ b/build/Makefile.linux |
48 |
+@@ -24,32 +24,32 @@ EXECS=server/maradns |
49 |
+ # end the Solaris section |
50 |
+ # Non-Solaris version of "M" |
51 |
+ V="VERSION=$(VERSION)" |
52 |
+-Q="DEFINES=-DSELECT_PROBLEM" |
53 |
++Q="$(LDFLAGS) DEFINES=-DSELECT_PROBLEM" |
54 |
+ |
55 |
+ # Debug |
56 |
+ |
57 |
+ FLAGS = -O2 -Wall -DSELECT_PROBLEM |
58 |
+-M="CC=$(CC) $(FLAGS)" |
59 |
+-D="CC=$(CC) $(FLAGS) -DDEBUG -DTHREADS" |
60 |
++M="CC=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" |
61 |
++D="CC=$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DDEBUG -DTHREADS" |
62 |
+ #FLAGS = -g |
63 |
+ |
64 |
+ all: |
65 |
+- cd libs ; make $(M) ; cd ../dns ; make $(M) ; \ |
66 |
+- cd ../rng ; make $(M) ; cd ../parse ; make $(M) ; \ |
67 |
+- cd ../qual ; make $(M) ; cd ../server ; \ |
68 |
+- make $(M) $(V) COMPILED=\"$(COMPILED)\" ; \ |
69 |
+- cd ../tools ; make $(M) ; \ |
70 |
+- cd ../deadwood-*/src/ ; make FLAGS=-O2 ; \ |
71 |
+- cd ../../tcp ; make $(M) $(V) ; cat ../00README.FIRST |
72 |
++ cd libs ; $(MAKE) $(M) ; cd ../dns ; $(MAKE) $(M) ; \ |
73 |
++ cd ../rng ; $(MAKE) $(M) ; cd ../parse ; $(MAKE) $(M) ; \ |
74 |
++ cd ../qual ; $(MAKE) $(M) ; cd ../server ; \ |
75 |
++ $(MAKE) $(M) $(V) COMPILED=\"$(COMPILED)\" ; \ |
76 |
++ cd ../tools ; $(MAKE) $(M) ; \ |
77 |
++ cd ../deadwood-*/src/ ; $(MAKE) FLAGS=-O2 ; \ |
78 |
++ cd ../../tcp ; $(MAKE) $(M) $(V) ; cat ../00README.FIRST |
79 |
+ |
80 |
+ debug: |
81 |
+- cd libs ; make $(D) DEBUG="-DDEBUG -DTHREADS" ; \ |
82 |
+- cd ../dns ; make $(D) ; cd ../rng ; make $(D) ; \ |
83 |
+- cd ../parse ; make $(D) ; cd ../qual ; make $(D) ; \ |
84 |
++ cd libs ; $(MAKE) $(D) DEBUG="-DDEBUG -DTHREADS" ; \ |
85 |
++ cd ../dns ; $(MAKE) $(D) ; cd ../rng ; $(MAKE) $(D) ; \ |
86 |
++ cd ../parse ; $(MAKE) $(D) ; cd ../qual ; $(MAKE) $(D) ; \ |
87 |
+ cd ../server ; \ |
88 |
+- make $(D) $(Q) $(V) COMPILED=\"$(COMPILED_DEBUG)\" ; \ |
89 |
+- cd ../tools ; make $(D) ; \ |
90 |
+- cd ../tcp ; make $(D) $(V) ; cat ../00README.FIRST |
91 |
++ $(MAKE) $(D) $(Q) $(V) COMPILED=\"$(COMPILED_DEBUG)\" ; \ |
92 |
++ cd ../tools ; $(MAKE) $(D) ; \ |
93 |
++ cd ../tcp ; $(MAKE) $(D) $(V) ; cat ../00README.FIRST |
94 |
+ |
95 |
+ clean: |
96 |
+ rm -f $(OBJECTS) core $(EXECS) ; \ |
97 |
+-- |
98 |
+2.35.1 |
99 |
+ |
100 |
|
101 |
diff --git a/net-dns/maradns/maradns-3.5.0022.ebuild b/net-dns/maradns/maradns-3.5.0022.ebuild |
102 |
new file mode 100644 |
103 |
index 000000000000..d956f23b3b13 |
104 |
--- /dev/null |
105 |
+++ b/net-dns/maradns/maradns-3.5.0022.ebuild |
106 |
@@ -0,0 +1,96 @@ |
107 |
+# Copyright 1999-2022 Gentoo Authors |
108 |
+# Distributed under the terms of the GNU General Public License v2 |
109 |
+ |
110 |
+EAPI=8 |
111 |
+ |
112 |
+PYTHON_COMPAT=( python3_{8..10} ) |
113 |
+inherit python-any-r1 systemd toolchain-funcs |
114 |
+ |
115 |
+DESCRIPTION="A security-aware DNS server" |
116 |
+HOMEPAGE="https://maradns.samiam.org" |
117 |
+SRC_URI="https://maradns.samiam.org/download/${PV%.*}/${PV}/${P}.tar.xz" |
118 |
+ |
119 |
+# The GPL-2 covers the init script, bug 426018. |
120 |
+LICENSE="BSD-2 GPL-2" |
121 |
+SLOT="0" |
122 |
+KEYWORDS="~amd64 ~mips ~ppc ~x86" |
123 |
+IUSE="examples ipv6" |
124 |
+ |
125 |
+BDEPEND="${PYTHON_DEPS} |
126 |
+ dev-lang/perl" |
127 |
+DEPEND=" |
128 |
+ acct-group/maradns |
129 |
+ acct-user/duende |
130 |
+ acct-user/maradns" |
131 |
+RDEPEND="${DEPEND}" |
132 |
+ |
133 |
+PATCHES=( |
134 |
+ "${FILESDIR}"/${P}-flags.patch |
135 |
+) |
136 |
+ |
137 |
+src_prepare() { |
138 |
+ default |
139 |
+ python_fix_shebang tools/bind2csv2.py |
140 |
+} |
141 |
+ |
142 |
+src_configure() { |
143 |
+ tc-export CC |
144 |
+ ./configure \ |
145 |
+ $(usex ipv6 --ipv6 "") || die "Failed to configure" |
146 |
+} |
147 |
+ |
148 |
+src_install() { |
149 |
+ # Install the MaraDNS and Deadwood binaries |
150 |
+ dosbin server/maradns |
151 |
+ dosbin tcp/zoneserver |
152 |
+ dosbin deadwood-${PV}/src/Deadwood |
153 |
+ dobin tcp/{getzone,fetchzone} |
154 |
+ dobin tools/{askmara,askmara-tcp,duende,bind2csv2.py,csv1tocsv2.pl} |
155 |
+ |
156 |
+ # MaraDNS docs, manpages, misc |
157 |
+ docompress -x /usr/share/doc/${PF}/maradns.gpg.key |
158 |
+ dodoc {CHANGELOG.TXT,COPYING,SUPPORT,maradns.gpg.key} |
159 |
+ dodoc doc/en/{QuickStart,faq.*,*.md,README} |
160 |
+ dodoc -r doc/en/{text,webpage,tutorial} |
161 |
+ docinto deadwood |
162 |
+ dodoc deadwood-${PV}/doc/{*.txt,*.html,CHANGELOG,Deadwood-HOWTO} |
163 |
+ dodoc -r deadwood-${PV}/doc/internals |
164 |
+ |
165 |
+ # Install examples (optional) |
166 |
+ if use examples ; then |
167 |
+ docinto examples |
168 |
+ dodoc doc/en/examples/example_* |
169 |
+ fi |
170 |
+ |
171 |
+ # Install manpages |
172 |
+ doman doc/en/man/*.[1-9] |
173 |
+ doman deadwood-${PV}/doc/{Deadwood,Duende}.1 |
174 |
+ |
175 |
+ # Example configurations. |
176 |
+ insinto /etc/maradns |
177 |
+ newins doc/en/examples/example_full_mararc mararc_full.dist |
178 |
+ newins doc/en/examples/example_csv2 example_csv2.dist |
179 |
+ newins deadwood-${PV}/doc/dwood3rc-all dwood3rc_all.dist |
180 |
+ keepdir /etc/maradns/logger |
181 |
+ |
182 |
+ # Init scripts. |
183 |
+ newinitd "${FILESDIR}"/maradns2 maradns |
184 |
+ newinitd "${FILESDIR}"/zoneserver2 zoneserver |
185 |
+ newinitd "${FILESDIR}"/deadwood deadwood |
186 |
+ |
187 |
+ # systemd unit |
188 |
+ # please keep paths in sync! |
189 |
+ sed -e "s^@bindir@^${EPREFIX}/usr/sbin^" \ |
190 |
+ -e "s^@sysconfdir@^${EPREFIX}/etc/maradns^" \ |
191 |
+ "${FILESDIR}"/maradns.service.in > "${T}"/maradns.service \ |
192 |
+ || die "failed to create the maradns.service file (sed)" |
193 |
+ |
194 |
+ systemd_dounit "${T}"/maradns.service |
195 |
+} |
196 |
+ |
197 |
+pkg_postinst() { |
198 |
+ elog "Examples of configuration files can be found in the" |
199 |
+ elog "/etc/maradns directory, feel free use it like:" |
200 |
+ elog " cp /etc/maradns/mararc{_full.dist,}" |
201 |
+ elog "and edit /etc/maradns/mararc as described in man mararc." |
202 |
+} |