blob: 0e1c6670ccd5884d54fa5eb87c6a099fdc75490b (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.18.ebuild,v 1.3 2005/07/17 08:46:07 swegener Exp $
inherit eutils
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 ~amd64"
IUSE="debug doc ldap mysql postgres recursor sqlite static tdb"
DEPEND="mysql? ( >=dev-db/mysql-3.23.54a )
postgres? ( >=dev-cpp/libpqpp-4.0-r1 )
ldap? ( >=net-nds/openldap-2.0.27-r4 )
sqlite? ( =dev-db/sqlite-2.8* )
recursor? ( >=dev-libs/boost-1.31 )
tdb? ( dev-libs/tdb )"
RDEPEND="${DEPEND}"
DEPEND="${DEPEND}
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch ${FILESDIR}/${PV}-default-mysql-options.patch
}
src_compile() {
local modules="pipe geo" myconf=""
use mysql && modules="${modules} gmysql"
use postgres && modules="${modules} gpgsql"
use sqlite && modules="${modules} gsqlite"
use ldap && modules="${modules} ldap"
use tdb && modules="${modules} xdb"
use debug && myconf="${myconf} --enable-verbose-logging"
econf \
--with-modules= \
--with-dynmodules="${modules}" \
$(use_enable static static-binaries) \
$(use_enable recursor) \
${myconf} \
|| die "econf failed"
emake -j1 || die "emake failed"
if use doc
then
emake -C codedocs codedocs || die "emake codedocs failed"
fi
}
src_install () {
make DESTDIR="${D}" install || die
mv "${D}"/etc/pdns.conf{-dist,}
doinitd "${FILESDIR}"/pdns
if use recursor
then
doinitd "${FILESDIR}"/precursor
insinto /etc
doins "${FILESDIR}"/recursor.conf
fi
dodoc ChangeLog README TODO
use doc && dohtml -r codedocs/html/.
}
pkg_postinst() {
einfo
einfo "pdns now provides multiple instances support. You can create more instances"
einfo "by symlinking the pdns init script to another name."
einfo
einfo "The name must be in the format pdns-<suffix> and PowerDNS will use the"
einfo "/etc/pdns-<suffix>.conf configuration file instead of the default."
einfo
einfo "Also all backends, except the bind and random backends, are now compiled as"
einfo "loadable modules and must be loaded with load-modules= in the configuration"
einfo "file."
einfo
}
|