blob: 03346a469059b0ada22f9eb0123f2af713ea056d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/ndu/ndu-0.4.ebuild,v 1.3 2003/09/08 07:11:01 msterret Exp $
DESCRIPTION="DNS serial number incrementer and reverse zone builder"
URI_BASE="http://uranus.it.swin.edu.au/~jn/linux/"
SRC_URI="${URI_BASE}/${P}.tar.gz"
HOMEPAGE="${URI_BASE}/dns.htm"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="sys-apps/sed virtual/glibc"
RDEPEND="net-dns/bind virtual/glibc"
S=${WORKDIR}/${P}
src_compile() {
cd ${S}/src
sed -i 's|gcc|$(CXX)|g' Makefile
sed -i 's|#define CONFIG_PATH "/etc/"|#define CONFIG_PATH "/etc/bind/"|g' ndc.c
emake
sed -i 's|VISUAL|EDITOR|g' dnsedit
cd ${S}
sed -i 's|0.0.127.in-addr.arpa|127.in-addr.arpa|g' ndu.conf
echo '## if you use a chrooted setup, then you need to uncomment these lines:' >>ndu.conf
echo '#process "/chroot/dns/named.conf"' >>ndu.conf
echo '#chroot "/chroot/dns"' >>ndu.conf
}
src_install () {
into /usr
dosbin src/{dnsedit,ndu}
dobin src/dnstouch
into /
insinto /etc/bind
doins ndu.conf
dodoc README INSTALL
}
|