From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C1D1813832E for ; Wed, 3 Aug 2016 21:37:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5168EE0B69; Wed, 3 Aug 2016 21:37:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C0B95E0B69 for ; Wed, 3 Aug 2016 21:37:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4FA3D340AE0 for ; Wed, 3 Aug 2016 21:37:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 205CF7D3 for ; Wed, 3 Aug 2016 21:37:43 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1470260102.213bd560303a32e1d9d72c86e5694757ab032b20.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/maradns/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/maradns/maradns-2.0.09-r2.ebuild X-VCS-Directories: net-dns/maradns/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 213bd560303a32e1d9d72c86e5694757ab032b20 X-VCS-Branch: master Date: Wed, 3 Aug 2016 21:37:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1a9a995c-36c2-48b1-842d-cf9297d0f0af X-Archives-Hash: 24292635e0191c3f95405275666f1187 commit: 213bd560303a32e1d9d72c86e5694757ab032b20 Author: Michael Orlitzky gentoo org> AuthorDate: Wed Aug 3 21:35:02 2016 +0000 Commit: Michael Orlitzky gentoo 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 +}