From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/maradns/
Date: Wed, 3 Aug 2016 21:37:43 +0000 (UTC) [thread overview]
Message-ID: <1470260102.213bd560303a32e1d9d72c86e5694757ab032b20.mjo@gentoo> (raw)
commit: 213bd560303a32e1d9d72c86e5694757ab032b20
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 3 21:35:02 2016 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Aug 3 21:35:02 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=213bd560
net-dns/maradns: new revision to fix minor QA issues.
The main reason for a new revision is to add "GPL-2" to the LICENSE
per bug 426018. But with a revision, it made sense to update to
EAPI=6, and perform the resulting cleanup in the ebuild. The
src_prepare function was eliminated, and some dohtml calls were
changed to dodoc. A missing die() was added, and the examples were
moved behind USE=examples.
Gentoo-Bug: 426018
Package-Manager: portage-2.2.28
net-dns/maradns/maradns-2.0.09-r2.ebuild | 102 +++++++++++++++++++++++++++++++
1 file changed, 102 insertions(+)
diff --git a/net-dns/maradns/maradns-2.0.09-r2.ebuild b/net-dns/maradns/maradns-2.0.09-r2.ebuild
new file mode 100644
index 0000000..a9e44e7
--- /dev/null
+++ b/net-dns/maradns/maradns-2.0.09-r2.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit systemd toolchain-funcs user
+
+DEADWOOD_VER="3.2.05"
+
+DESCRIPTION="A security-aware DNS server"
+HOMEPAGE="http://www.maradns.org/"
+SRC_URI="http://www.maradns.org/download/${PV%.*}/${PV}/${P}.tar.bz2"
+
+# The GPL-2 covers the init script, bug 426018.
+LICENSE="BSD-2 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~x86"
+IUSE="authonly examples ipv6"
+
+DEPEND=""
+RDEPEND=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.0.06-askmara-tcp.patch"
+ "${FILESDIR}/${PN}-2.0.06-duende-man.patch"
+ "${FILESDIR}/${P}-build.patch"
+)
+
+pkg_setup() {
+ ebegin "Creating group and users"
+ enewgroup maradns 99
+ enewuser duende 66 -1 -1 maradns
+ enewuser maradns 99 -1 -1 maradns
+ eend ${?}
+}
+
+src_configure() {
+ # Use duende-ng.c.
+ cp "${S}/tools/duende-ng.c" "${S}/tools/duende.c" \
+ || die "failed to rename duende-ng.c"
+
+ tc-export CC
+ ./configure $(use ipv6 && echo "--ipv6") || die "Failed to configure ${PN}"
+}
+
+src_install() {
+ # Install the MaraDNS binaries.
+ dosbin server/maradns
+ dosbin tcp/zoneserver
+ dobin tcp/getzone tcp/fetchzone
+ dobin tools/askmara tools/askmara-tcp tools/duende
+ dobin tools/bind2csv2.py tools/csv1tocsv2.pl
+
+ # MaraDNS docs, manpages, misc.
+ dodoc doc/en/{QuickStart,README,*.txt}
+ dodoc doc/en/text/*.txt
+ doman doc/en/man/*.[1-9]
+ dodoc maradns.gpg.key
+ dodoc doc/en/*.html
+ dodoc -r doc/en/webpage
+ dodoc -r doc/en/tutorial
+ if use examples ; then
+ docinto examples
+ dodoc doc/en/examples/example_*
+ fi
+
+ # Deadwood binary, docs, manpages, etc.
+ if ! use authonly; then
+ dosbin deadwood-${DEADWOOD_VER}/src/Deadwood
+ doman deadwood-${DEADWOOD_VER}/doc/{Deadwood,Duende}.1
+ docinto deadwood
+ dodoc deadwood-${DEADWOOD_VER}/doc/{Deadwood,Duende,FAQ}.txt
+ dodoc deadwood-${DEADWOOD_VER}/doc/{Deadwood,FAQ}.html
+ docinto deadwood/internals
+ dodoc deadwood-${DEADWOOD_VER}/doc/internals/*
+ insinto /etc/maradns
+ newins deadwood-${DEADWOOD_VER}/doc/dwood3rc-all dwood3rc_all.dist
+ fi
+
+ # Example configurations.
+ insinto /etc/maradns
+ newins doc/en/examples/example_full_mararc mararc_full.dist
+ newins doc/en/examples/example_csv2 example_csv2.dist
+ keepdir /etc/maradns/logger
+
+ # Init scripts.
+ newinitd "${FILESDIR}"/maradns2 maradns
+ newinitd "${FILESDIR}"/zoneserver2 zoneserver
+ if ! use authonly; then
+ newinitd "${FILESDIR}"/deadwood deadwood
+ fi
+
+ # systemd unit
+ # please keep paths in sync!
+ sed -e "s^@bindir@^${EPREFIX}/usr/sbin^" \
+ -e "s^@sysconfdir@^${EPREFIX}/etc/maradns^" \
+ "${FILESDIR}"/maradns.service.in > "${T}"/maradns.service \
+ || die "failed to create the maradns.service file (sed)"
+
+ systemd_dounit "${T}"/maradns.service
+}
next reply other threads:[~2016-08-03 21:37 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 21:37 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-29 5:47 [gentoo-commits] repo/gentoo:master commit in: net-dns/maradns/ Joonas Niilola
2024-05-28 18:19 Arthur Zamarin
2024-03-03 7:04 Sam James
2024-03-03 5:52 Sam James
2024-03-03 5:52 Sam James
2024-02-09 13:47 Joonas Niilola
2023-05-05 17:41 Arthur Zamarin
2023-05-05 17:41 Arthur Zamarin
2022-12-18 18:50 Arthur Zamarin
2022-12-18 12:16 Sam James
2022-07-02 20:54 Piotr Karbowski
2022-06-07 5:22 Sam James
2022-06-07 5:21 Sam James
2022-04-10 21:11 Jonas Stein
2021-05-04 22:17 Sam James
2020-09-19 11:28 Michał Górny
2020-08-18 11:22 Agostino Sarubbo
2020-08-18 11:16 Agostino Sarubbo
2020-07-01 19:47 Piotr Karbowski
2020-07-01 19:47 Piotr Karbowski
2020-06-29 21:01 Piotr Karbowski
2019-12-13 22:32 Piotr Karbowski
2019-10-23 13:39 Agostino Sarubbo
2018-09-29 8:45 Michał Górny
2017-12-02 17:58 David Seifert
2017-12-02 17:58 David Seifert
2017-04-30 11:53 Michael Palimaka
2017-04-29 15:02 Agostino Sarubbo
2017-04-28 12:52 Agostino Sarubbo
2017-04-28 12:31 Agostino Sarubbo
2016-04-28 23:44 Austin English
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1470260102.213bd560303a32e1d9d72c86e5694757ab032b20.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox