alpha-quadrant/net-dns/maradns/maradns-2.0.04.ebuild

84 lines
2.3 KiB
Bash
Raw Normal View History

2011-05-17 14:25:54 +02:00
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/Attic/maradns-2.0.01.ebuild,v 1.1 2011/01/24 13:22:58 matsuu Exp $
EAPI="3"
inherit eutils toolchain-funcs
DESCRIPTION="Proxy DNS server with permanent caching"
HOMEPAGE="http://www.maradns.org/"
SRC_URI="http://www.maradns.org/download/${PV%.*}/${PV}/${P}.tar.bz2"
2011-11-16 12:22:43 +01:00
DEADWOOD="deadwood-3.0.05"
2011-05-17 14:25:54 +02:00
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="ipv6"
DEPEND="dev-lang/perl"
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:make:\$(MAKE):g" \
-e "s:\$(CC):$(tc-getCC):g" \
build/Makefile.linux || die
2011-11-16 12:22:43 +01:00
sed -i -e "s:duende.c:duende-ng.c:g" tools/Makefile* || die
2011-05-17 14:25:54 +02:00
sed -e "/provide dns/d" "${FILESDIR}/maradns.rc6" > "${T}/maradns.rc6" || die
sed -e "s:maradns:Deadwood:g" "${FILESDIR}/maradns.rc6" > "${T}/deadwood.rc6" || die
2011-05-18 14:39:45 +02:00
sed -i \
-e "s:/etc/deadwood:/var/cache/deadwood:g" \
${DEADWOOD}/doc/dwood3rc || die
2011-05-17 14:25:54 +02:00
}
src_configure() {
local myconf
use ipv6 && myconf="${myconf} --ipv6"
2011-11-16 12:22:43 +01:00
cd utf8 && make || die
cd ${S}
./configure ${myconf} || die
2011-05-17 14:25:54 +02:00
}
src_install() {
dosbin server/maradns || die
dosbin tcp/zoneserver || die
2011-11-16 12:22:43 +01:00
dobin tcp/getzone tcp/fetchzone tools/askmara tools/askmara-tcp tools/duende \
tools/bind2csv2.py || die
2011-05-17 14:25:54 +02:00
doman doc/en/man/*.[1-9] || die
dodoc maradns.gpg.key || die
2011-11-16 12:22:43 +01:00
dodoc 0QuickStart || die
2011-11-16 12:49:21 +01:00
dodoc doc/en/*.txt || die
2011-05-17 14:25:54 +02:00
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
# DEADWOOD install
dosbin ${DEADWOOD}/src/Deadwood || die
doman ${DEADWOOD}/doc/Deadwood.1 || die
2011-05-18 14:20:02 +02:00
diropts -m775 -o maradns -g maradns
2011-05-18 14:39:45 +02:00
keepdir /var/cache/deadwood || die
2011-05-18 14:20:02 +02:00
keepdir /etc/maradns/logger || die
2011-05-17 14:25:54 +02:00
insinto /etc; newins ${DEADWOOD}/doc/dwood3rc dwood3rc || die
newinitd "${T}"/deadwood.rc6 deadwood || die
newinitd "${T}"/maradns.rc6 maradns || die
newinitd "${FILESDIR}"/zoneserver.rc6 zoneserver || die
}
2011-05-18 14:20:02 +02:00
pkg_setup() {
2011-05-17 14:25:54 +02:00
enewgroup maradns 99
enewuser duende 66 -1 -1 maradns
enewuser maradns 99 -1 -1 maradns
}