blob: ab1c414ed008a066fe96f1263faec5b114123e50 (
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
52
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/maradns/maradns-1.0.27.ebuild,v 1.2 2005/08/27 01:10:56 matsuu 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"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND=""
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
newinitd ${FILESDIR}/maradns.rc6 maradns
}
pkg_postinst() {
enewuser maradns 99 -1 /var/empty daemon
}
|