diff options
author | Jared H.Hudson <jhhudso@gentoo.org> | 2004-03-27 16:03:39 +0000 |
---|---|---|
committer | Jared H.Hudson <jhhudso@gentoo.org> | 2004-03-27 16:03:39 +0000 |
commit | 36923f08879d9228a2a09b08556150ccc0633507 (patch) | |
tree | feb34030ca3847e8f3c06b37920d92cf42b29377 /net-dns/djbdns/djbdns-1.05-r9.ebuild | |
parent | Added local use flags for djbdns (diff) | |
download | gentoo-2-36923f08879d9228a2a09b08556150ccc0633507.tar.gz gentoo-2-36923f08879d9228a2a09b08556150ccc0633507.tar.bz2 gentoo-2-36923f08879d9228a2a09b08556150ccc0633507.zip |
Added fwdzone and roundrobin local use flags and changed ipv6 to use orig ipv6 patch; cleaned headers in other ebuilds
Diffstat (limited to 'net-dns/djbdns/djbdns-1.05-r9.ebuild')
-rw-r--r-- | net-dns/djbdns/djbdns-1.05-r9.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/net-dns/djbdns/djbdns-1.05-r9.ebuild b/net-dns/djbdns/djbdns-1.05-r9.ebuild new file mode 100644 index 000000000000..b58651aee742 --- /dev/null +++ b/net-dns/djbdns/djbdns-1.05-r9.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/djbdns/djbdns-1.05-r9.ebuild,v 1.1 2004/03/27 16:03:29 jhhudso Exp $ + +IUSE="ipv6 static fwdzone roundrobin" + +inherit eutils + +DESCRIPTION="Excellent high-performance DNS services" +HOMEPAGE="http://cr.yp.to/djbdns.html" +SRC_URI="http://cr.yp.to/djbdns/${P}.tar.gz + fwdzone? ( http://www.skarnet.org/software/djbdns-fwdzone/djbdns-1.04-fwdzone.patch ) + roundrobin? ( http://www.legend.co.uk/djb/dns/round-robin.patch ) + ipv6? ( http://www.fefe.de/dns/djbdns-1.05-test20.diff.bz2 )" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="x86 sparc ~ppc alpha ~mips ~hppa" + +RDEPEND=">=sys-apps/daemontools-0.70 + sys-apps/ucspi-tcp" + +src_unpack() { + unpack ${A} + cd ${S} + + # Warning that ipv6 may not be used with fwdzone or roundrobin currently + use ipv6 && ( use fwdzone || use roundrobin ) && \ + eerror "ipv6 cannot currently be used with the fwdzone or roundrobin patch." && \ + eerror && \ + eerror "If you would like to see ipv6 support along with one of those other patches" && \ + eerror "please submit a working patch that combines ipv6 with either fwdzone or " && \ + eerror "roundrobin but not both at the same time, since the latter 2 patches are " && \ + eerror "mutually exclusive according to bug #31238" && exit -1 + + use fwdzone && use roundrobin && \ + eerror "fwdzone and roundrobin do not work together according to bug #31238" && exit -1 + + use fwdzone && epatch ${DISTDIR}/djbdns-1.04-fwdzone.patch + use roundrobin && epatch ${DISTDIR}/round-robin.patch + use ipv6 && epatch ${WORKDIR}/djbdns-1.05-test20.diff + + epatch ${FILESDIR}/${PV}-errno.patch + epatch ${FILESDIR}/headtail.patch +} + +src_compile() { + LDFLAGS= + use static && LDFLAGS="-static" + echo "gcc ${CFLAGS}" > conf-cc + echo "gcc ${LDFLAGS}" > conf-ld + echo "/usr" > conf-home + MAKEOPTS="-j1" emake || die "emake failed" +} + +src_install() { + insinto /etc + doins dnsroots.global + into /usr + dobin *-conf dnscache tinydns walldns rbldns pickdns axfrdns \ + *-get *-data *-edit dnsip dnsipq dnsname dnstxt dnsmx \ + dnsfilter random-ip dnsqr dnsq dnstrace dnstracesort + + use ipv6 && dobin dnsip6 dnsip6q + + dodoc CHANGES FILES README SYSDEPS TARGETS TODO VERSION + + dobin ${FILESDIR}/dnscache-setup + dobin ${FILESDIR}/tinydns-setup +} + +pkg_postinst() { + groupadd &>/dev/null nofiles + id &>/dev/null dnscache || \ + useradd -g nofiles -d /nonexistent -s /bin/false dnscache + id &>/dev/null dnslog || \ + useradd -g nofiles -d /nonexistent -s /bin/false dnslog + id &>/dev/null tinydns || \ + useradd -g nofiles -d /nonexistent -s /bin/false tinydns + + einfo "Use dnscache-setup and tinydns-setup to help you" + einfo "configure your nameservers!" +} |