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 C42E3139084 for ; Sat, 2 Dec 2017 17:58:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 036BCE0D14; Sat, 2 Dec 2017 17:58:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C97DEE0D14 for ; Sat, 2 Dec 2017 17:58:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D26033BEBE for ; Sat, 2 Dec 2017 17:58:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1391CAD7E for ; Sat, 2 Dec 2017 17:58:40 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1512237487.3c8e4fb07cd0ed1001885f98e69500ddeaf08872.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/maradns/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/maradns/Manifest net-dns/maradns/maradns-2.0.14.ebuild X-VCS-Directories: net-dns/maradns/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 3c8e4fb07cd0ed1001885f98e69500ddeaf08872 X-VCS-Branch: master Date: Sat, 2 Dec 2017 17:58:40 +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: e01cef5d-9952-4a02-b4a2-c4ec67474c2c X-Archives-Hash: 150c1bb365f9c94e5173961e97332c1f commit: 3c8e4fb07cd0ed1001885f98e69500ddeaf08872 Author: ktrace bks tv> AuthorDate: Wed Nov 29 18:59:18 2017 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Dec 2 17:58:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c8e4fb0 net-dns/maradns: version bump to 2.0.14 Add 2.0.14 MaraDNS, Deadwood 3.2.10 Package-Manager: Portage-2.3.13, Repoman-2.3.3 Closes: https://github.com/gentoo/gentoo/pull/6347 net-dns/maradns/Manifest | 1 + net-dns/maradns/maradns-2.0.14.ebuild | 111 ++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/net-dns/maradns/Manifest b/net-dns/maradns/Manifest index fa432eb341b..221f300e61a 100644 --- a/net-dns/maradns/Manifest +++ b/net-dns/maradns/Manifest @@ -1 +1,2 @@ DIST maradns-2.0.09.tar.bz2 1139409 SHA256 e1ee80836f0fbc47b9b94ec839e112ea19c40bed0b70d672d231849a4dea1083 SHA512 42bfcafaf4e465d8d566b4d9ea8383b5d0f553486b86dd807b35a07358987227e5dc8187de0e8192fba5b53098d61f91091cec112ef7cc80c5d5e73d8acff3bf WHIRLPOOL 6f3e55d8c6633a465c0e9de576921d833c67332cf0cbc8c01e7bc7d70c46102c32566d0ee867cdbf11c8b2b1d5cdc40d18ee4791bd0a4e045ad0e0bc590e61d6 +DIST maradns-2.0.14.tar.bz2 1156272 BLAKE2B 7e96d0769dd1df70316cc1bd79fb7e902c723f78db035fe721aaab0d6902958a40c2743374824ae024759164ad9cbda9a3c6ecaec7cc6bf3c5fa7b384101c16f SHA512 57527bba2f9801904f59cc7d9e56cbd7124635841ad8c91cbd3d1b8d58e7fe38d509e19f6ea53e2790777e054b68bb8df02bfa820ba7c9dbe65262e1993a2aa4 diff --git a/net-dns/maradns/maradns-2.0.14.ebuild b/net-dns/maradns/maradns-2.0.14.ebuild new file mode 100644 index 00000000000..8d0ca3ee841 --- /dev/null +++ b/net-dns/maradns/maradns-2.0.14.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 systemd toolchain-funcs user + +DEADWOOD_VER="3.2.10" + +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" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-lang/perl" + +pkg_setup() { + ebegin "Creating group and users" + enewgroup maradns 99 + enewuser duende 66 -1 -1 maradns + enewuser maradns 99 -1 -1 maradns + eend ${?} + + python-single-r1_pkg_setup +} + +src_prepare() { + default + + # Use duende-ng.c. + cp tools/duende{,-ng}.c \ + || die "failed to rename duende-ng.c" + # replace "make" by "$(MAKE)" to avoid GNU Make warning + sed -i 's/\ make\ /\ \$\(MAKE\)\ /g' build/Makefile.linux \ + || die "can't patch build/Makefile.linux" + + python_fix_shebang tools/bind2csv2.py +} + +src_configure() { + tc-export CC + ./configure $(use ipv6 && echo "--ipv6") || die "Failed to configure ${PN}" +} + +src_install() { + # Install the MaraDNS and Deadwood binaries + dosbin server/maradns + dosbin tcp/zoneserver + if ! use authonly; then + dosbin deadwood-${DEADWOOD_VER}/src/Deadwood + fi + dobin tcp/{getzone,fetchzone} + dobin tools/{askmara,askmara-tcp,duende,bind2csv2.py,csv1tocsv2.pl} + + # MaraDNS docs, manpages, misc + dodoc doc/en/{QuickStart,README,*.txt,*.html} + dodoc -r doc/en/{text,webpage,tutorial} + dodoc maradns.gpg.key + if ! use authonly; then + docinto deadwood + dodoc deadwood-${DEADWOOD_VER}/doc/{*.txt,*.html,CHANGELOG,Deadwood-HOWTO} + dodoc -r deadwood-${DEADWOOD_VER}/doc/internals + fi + + # Install examples (optional) + if use examples ; then + docinto examples + dodoc doc/en/examples/example_* + fi + + # Install manpages + doman doc/en/man/*.[1-9] + if ! use authonly; then + doman deadwood-${DEADWOOD_VER}/doc/{Deadwood,Duende}.1 + 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 + if ! use authonly; then + newins deadwood-${DEADWOOD_VER}/doc/dwood3rc-all dwood3rc_all.dist + fi + 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 +}