blob: 9d010099fc5c7c63d8c637ef9b636698c70ef12d (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/maradns-1.0.23.ebuild,v 1.5 2004/07/14 23:26:32 agriffis Exp $
inherit eutils
DESCRIPTION="Proxy DNS server with permanent caching"
HOMEPAGE="http://www.maradns.org"
SRC_URI="http://www.maradns.org/download/${P}.tar.bz2"
SLOT="0"
LICENSE="public-domain"
KEYWORDS="~x86 ~amd64 ~sparc ~ppc"
IUSE=""
DEPEND="virtual/libc"
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
}
src_compile() {
econf || die
emake FLAGS="${CFLAGS}" || die "compile problem"
}
src_install() {
dodir /usr/{bin,sbin}
dodir /usr/share/man/man{1,5,8}
dodir /etc
make \
TOPLEVEL=${S} \
BUILDDIR=${S}/build \
RPM_BUILD_ROOT=${D} \
PREFIX=${D}/usr \
MAN1=${D}/usr/share/man/man1 \
MAN5=${D}/usr/share/man/man5 \
MAN8=${D}/usr/share/man/man8 \
install || die
exeinto /etc/init.d/; newexe ${FILESDIR}/maradns.rc6 maradns
}
pkg_postinst() {
enewuser maradns 99 /bin/false /var/empty daemon
}
|