summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2012-03-22 17:20:04 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2012-03-22 17:20:04 +0000
commitd896fdf1c26270ee2668675ff964f37bd41238a2 (patch)
tree25f16fdb7705698a8f8a0ad7cc3f1b49d407b67c /net-dns/maradns/maradns-1.4.12.ebuild
parentre-order the econf options to match udev help. (diff)
downloadgentoo-2-d896fdf1c26270ee2668675ff964f37bd41238a2.tar.gz
gentoo-2-d896fdf1c26270ee2668675ff964f37bd41238a2.tar.bz2
gentoo-2-d896fdf1c26270ee2668675ff964f37bd41238a2.zip
Version bumped, bug #408883.
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'net-dns/maradns/maradns-1.4.12.ebuild')
-rw-r--r--net-dns/maradns/maradns-1.4.12.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/net-dns/maradns/maradns-1.4.12.ebuild b/net-dns/maradns/maradns-1.4.12.ebuild
new file mode 100644
index 000000000000..8fd421c4ed9f
--- /dev/null
+++ b/net-dns/maradns/maradns-1.4.12.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/maradns-1.4.12.ebuild,v 1.1 2012/03/22 17:20:04 matsuu Exp $
+
+EAPI="4"
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A security-aware DNS server"
+HOMEPAGE="http://www.maradns.org/"
+SRC_URI="http://www.maradns.org/download/${PV%.*}/${P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="authonly"
+
+DEPEND="dev-lang/perl"
+RDEPEND=""
+
+src_prepare() {
+ sed -i \
+ -e "s:PREFIX/man:PREFIX/share/man:" \
+ -e "s:PREFIX/doc/maradns-\$VERSION:PREFIX/share/doc/${PF}:" \
+ build/install.locations || die
+ sed -i \
+ -e "s:-O2:\$(CFLAGS) \$(LDFLAGS):" \
+ -e "s:\$(CC):$(tc-getCC):g" \
+ -e "s:make:\$(MAKE):g" \
+ build/Makefile.linux || die
+ if use authonly ; then
+ sed -e "/provide dns/d" \
+ "${FILESDIR}/maradns.rc6" > "${T}/maradns.rc6" || die
+ else
+ cp "${FILESDIR}/maradns.rc6" "${T}/maradns.rc6" || die
+ fi
+}
+
+src_configure() {
+ local myconf
+ if use authonly ; then
+ myconf="${myconf} --authonly"
+ fi
+ ./configure ${myconf} # || die
+}
+
+src_install() {
+ if use authonly ; then
+ newsbin server/maradns.authonly maradns || die
+ else
+ dosbin server/maradns || die
+ fi
+
+ dosbin tcp/zoneserver || die
+
+ dobin tcp/getzone tcp/fetchzone tools/askmara tools/duende || die
+
+ doman doc/en/man/*.[1-9] || die
+
+ dodoc maradns.gpg.key || die
+ dodoc doc/en/{QuickStart,README,*.txt} || die
+ dohtml doc/en/*.html || die
+ dohtml -r doc/en/webpage || die
+ docinto examples; dodoc doc/en/examples/example_* || die
+
+ insinto /etc; newins doc/en/examples/example_mararc mararc || die
+ insinto /etc/maradns; newins doc/en/examples/example_csv2 db.example.net || die
+ keepdir /etc/maradns/logger || die
+
+ newinitd "${T}"/maradns.rc6 maradns || die
+ newinitd "${FILESDIR}"/zoneserver.rc6 zoneserver || die
+}
+
+pkg_postinst() {
+ enewgroup maradns 99
+ enewuser duende 66 -1 -1 maradns
+ enewuser maradns 99 -1 -1 maradns
+}