blob: 3c3019ae733e7fa49f89bf43e3d1c8e90c71b695 (
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
|
# Copyright 2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.8.ebuild,v 1.1 2003/06/05 03:34:20 jhhudso Exp $
DESCRIPTION="The PowerDNS Daemon."
SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.gz"
HOMEPAGE="http://www.powerdns.com/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="mysql static"
DEPEND="virtual/glibc
mysql? ( >=dev-db/mysql-3.23.54a )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${P}
src_compile() {
local myconf=""
use mysql && myconf="$myconf --with-modules=gmysql"
use static && myconf="$myconf --enable-static-binaries"
econf $myconf
emake || die "emake failed"
}
src_install () {
make DESTDIR=${D} install || die
dodoc ChangeLog HACKING INSTALL README TODO WARNING pdns/COPYING
exeinto /etc/init.d
doexe ${FILESDIR}/pdns
mv ${D}/etc/pdns.conf-dist ${D}/etc/pdns.conf
}
|