summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2008-12-28 07:32:09 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2008-12-28 07:32:09 +0000
commitab4fad3dc5714aabe7d2eadaa57d9146135f8d0d (patch)
tree16d532fd3d3598f05e9b64d2d0cc84e812c0ec1d /net-dns/maradns/maradns-1.3.07.09-r1.ebuild
parentAdded net-dns/maradns. (diff)
downloadgentoo-2-ab4fad3dc5714aabe7d2eadaa57d9146135f8d0d.tar.gz
gentoo-2-ab4fad3dc5714aabe7d2eadaa57d9146135f8d0d.tar.bz2
gentoo-2-ab4fad3dc5714aabe7d2eadaa57d9146135f8d0d.zip
Added authonly to IUSE, bug #252376. Added enewgroup maradns.
(Portage version: 2.1.6.3/cvs/Linux 2.6.28-gentoo x86_64)
Diffstat (limited to 'net-dns/maradns/maradns-1.3.07.09-r1.ebuild')
-rw-r--r--net-dns/maradns/maradns-1.3.07.09-r1.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/net-dns/maradns/maradns-1.3.07.09-r1.ebuild b/net-dns/maradns/maradns-1.3.07.09-r1.ebuild
new file mode 100644
index 000000000000..0f993e6e8e63
--- /dev/null
+++ b/net-dns/maradns/maradns-1.3.07.09-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/maradns-1.3.07.09-r1.ebuild,v 1.1 2008/12/28 07:32:09 matsuu Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Proxy DNS server with permanent caching"
+HOMEPAGE="http://www.maradns.org/"
+SRC_URI="http://www.maradns.org/download/1.3/${PV}/${P}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="authonly"
+
+DEPEND="dev-lang/perl"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ 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}:" 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_compile() {
+ local myconf
+ if use authonly ; then
+ myconf="${myconf} --authonly"
+ fi
+
+ ./configure ${myconf} || die
+ emake CC="$(tc-getCC)" || die "compile problem"
+}
+
+src_install() {
+ if use authonly ; then
+ newsbin server/maradns.authonly maradns
+ else
+ dosbin server/maradns
+ fi
+ dosbin tcp/zoneserver
+
+ dobin tcp/getzone tcp/fetchzone tools/askmara tools/duende
+
+ doman doc/en/man/*.[1-9]
+
+ dodoc maradns.gpg.key
+ dodoc doc/en/{QuickStart,README,*.txt}
+ dohtml doc/en/*.html
+ dohtml -r doc/en/webpage
+ docinto examples; dodoc doc/en/examples/example_*
+
+ insinto /etc; newins doc/en/examples/example_mararc mararc
+ insinto /etc/maradns; newins doc/en/examples/example_csv2 db.example.net
+ keepdir /etc/maradns/logger
+
+ newinitd "${T}"/maradns.rc6 maradns
+ newinitd "${FILESDIR}"/zoneserver.rc6 zoneserver
+}
+
+pkg_postinst() {
+ enewgroup maradns 99
+ enewuser maradns 99 -1 -1 maradns
+}