summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2006-10-15 01:21:47 +0000
committerSven Wegener <swegener@gentoo.org>2006-10-15 01:21:47 +0000
commit4295f2ab168ee92301570678023c0bd8d2328913 (patch)
treeda9ca4028df1ec6ad97825e543ac8a542355ad23 /net-dns
parentMark 0.6.0 0.5.1-r2 stable on ia64 (diff)
downloadgentoo-2-4295f2ab168ee92301570678023c0bd8d2328913.tar.gz
gentoo-2-4295f2ab168ee92301570678023c0bd8d2328913.tar.bz2
gentoo-2-4295f2ab168ee92301570678023c0bd8d2328913.zip
Install modules into subdirectory.
(Portage version: 2.1.2_pre3-r1)
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/pdns/ChangeLog7
-rw-r--r--net-dns/pdns/files/digest-pdns-2.9.20-r23
-rw-r--r--net-dns/pdns/pdns-2.9.20-r2.ebuild96
3 files changed, 105 insertions, 1 deletions
diff --git a/net-dns/pdns/ChangeLog b/net-dns/pdns/ChangeLog
index 9fbd37577da3..d10b346f4d87 100644
--- a/net-dns/pdns/ChangeLog
+++ b/net-dns/pdns/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dns/pdns
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.37 2006/09/27 19:21:47 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.38 2006/10/15 01:21:47 swegener Exp $
+
+*pdns-2.9.20-r2 (15 Oct 2006)
+
+ 15 Oct 2006; Sven Wegener <swegener@gentoo.org> +pdns-2.9.20-r2.ebuild:
+ Install modules into subdirectory.
27 Sep 2006; Sven Wegener <swegener@gentoo.org>
-files/2.9.18-ldap-fix.patch, -pdns-2.9.18.ebuild:
diff --git a/net-dns/pdns/files/digest-pdns-2.9.20-r2 b/net-dns/pdns/files/digest-pdns-2.9.20-r2
new file mode 100644
index 000000000000..6d87ffaaad65
--- /dev/null
+++ b/net-dns/pdns/files/digest-pdns-2.9.20-r2
@@ -0,0 +1,3 @@
+MD5 33b20ef1b767f93297101f2aa09e99ed pdns-2.9.20.tar.gz 867520
+RMD160 15d433bc29e7d60549d9296fca573724574614fc pdns-2.9.20.tar.gz 867520
+SHA256 28984207c78bc5d40542d40366d74f6695a9cf3a7ec4f431d908966d4fc35e3d pdns-2.9.20.tar.gz 867520
diff --git a/net-dns/pdns/pdns-2.9.20-r2.ebuild b/net-dns/pdns/pdns-2.9.20-r2.ebuild
new file mode 100644
index 000000000000..d7ae09f2bc1b
--- /dev/null
+++ b/net-dns/pdns/pdns-2.9.20-r2.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.20-r2.ebuild,v 1.1 2006/10/15 01:21:47 swegener Exp $
+
+inherit multilib eutils autotools
+
+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="~amd64 ~x86"
+IUSE="debug doc ldap mysql postgres 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* )
+ tdb? ( dev-libs/tdb )
+ >=dev-libs/boost-1.31"
+
+RDEPEND="${DEPEND}"
+
+DEPEND="${DEPEND}
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/2.9.18-default-mysql-options.patch
+ epatch "${FILESDIR}"/2.9.20-ldap-deprecated.patch
+
+ eautoreconf
+}
+
+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 \
+ --sysconfdir=/etc/powerdns \
+ --libdir=/usr/$(get_libdir)/powerdns \
+ --disable-recursor \
+ --with-modules= \
+ --with-dynmodules="${modules}" \
+ --with-pgsql-includes=/usr/include \
+ --with-pgsql-lib=/usr/$(get_libdir) \
+ --with-mysql-lib=/usr/$(get_libdir) \
+ --with-sqlite-lib=/usr/$(get_libdir) \
+ $(use_enable static static-binaries) \
+ ${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 "make install failed"
+
+ mv "${D}"/etc/powerdns/pdns.conf{-dist,}
+
+ # set defaults: setuid=pdns, setgid=pdns
+ sed -i -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
+ "${D}"/etc/powerdns/pdns.conf
+
+ doinitd "${FILESDIR}"/pdns
+
+ dodoc ChangeLog README TODO
+ use doc && dohtml -r codedocs/html/.
+}
+
+pkg_preinst() {
+ enewgroup pdns
+ enewuser pdns -1 -1 /var/empty pdns
+}
+
+pkg_postinst() {
+ einfo
+ einfo "PowerDNS 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/powerdns/pdns-<suffix>.conf configuration file instead of the default."
+ einfo
+}