diff options
author | Sven Wegener <swegener@gentoo.org> | 2007-04-22 13:02:10 +0000 |
---|---|---|
committer | Sven Wegener <swegener@gentoo.org> | 2007-04-22 13:02:10 +0000 |
commit | 3a8e7ae14051d025a0bb1c25bcf3a5618aa8e589 (patch) | |
tree | 5f3c7292b6cab990759acc51fc0e515055a811fc /net-dns/pdns | |
parent | Mask ppcsha1 USE flag as it's 32bit only. It's getting unmasked in 32bit prof... (diff) | |
download | gentoo-2-3a8e7ae14051d025a0bb1c25bcf3a5618aa8e589.tar.gz gentoo-2-3a8e7ae14051d025a0bb1c25bcf3a5618aa8e589.tar.bz2 gentoo-2-3a8e7ae14051d025a0bb1c25bcf3a5618aa8e589.zip |
Version bump.
(Portage version: 2.1.2.4)
Diffstat (limited to 'net-dns/pdns')
-rw-r--r-- | net-dns/pdns/ChangeLog | 7 | ||||
-rw-r--r-- | net-dns/pdns/files/digest-pdns-2.9.21 | 3 | ||||
-rw-r--r-- | net-dns/pdns/pdns-2.9.21.ebuild | 101 |
3 files changed, 110 insertions, 1 deletions
diff --git a/net-dns/pdns/ChangeLog b/net-dns/pdns/ChangeLog index e4ef131da418..749aa4336c86 100644 --- a/net-dns/pdns/ChangeLog +++ b/net-dns/pdns/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dns/pdns # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.41 2007/03/12 19:56:07 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.42 2007/04/22 13:02:10 swegener Exp $ + +*pdns-2.9.21 (22 Apr 2007) + + 22 Apr 2007; Sven Wegener <swegener@gentoo.org> +pdns-2.9.21.ebuild: + Version bump. 12 Mar 2007; Sven Wegener <swegener@gentoo.org> files/pdns: Remove bashisms from init script, bug #169636. diff --git a/net-dns/pdns/files/digest-pdns-2.9.21 b/net-dns/pdns/files/digest-pdns-2.9.21 new file mode 100644 index 000000000000..397a9aaac505 --- /dev/null +++ b/net-dns/pdns/files/digest-pdns-2.9.21 @@ -0,0 +1,3 @@ +MD5 a0d650dd1489ed46b36dfcc1d73653af pdns-2.9.21.tar.gz 991071 +RMD160 ed53de20a4e660ab2537b3c888b0a85225764a51 pdns-2.9.21.tar.gz 991071 +SHA256 4b24db683ba2217caa1edf54545841dcdfa6fd27b66017577d8b0dd54f8e7ed5 pdns-2.9.21.tar.gz 991071 diff --git a/net-dns/pdns/pdns-2.9.21.ebuild b/net-dns/pdns/pdns-2.9.21.ebuild new file mode 100644 index 000000000000..f2348f05592d --- /dev/null +++ b/net-dns/pdns/pdns-2.9.21.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-2.9.21.ebuild,v 1.1 2007/04/22 13:02:10 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 opendbx" + +DEPEND="mysql? ( virtual/mysql ) + postgres? ( >=dev-cpp/libpqpp-4.0-r1 ) + ldap? ( >=net-nds/openldap-2.0.27-r4 ) + sqlite? ( =dev-db/sqlite-2.8* ) + opendbx? ( dev-db/opendbx ) + 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 opendbx && modules="${modules} opendbx" + 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 + + keepdir /var/empty + + 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 +} |