summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2014-10-23 11:22:38 +0000
committerSven Wegener <swegener@gentoo.org>2014-10-23 11:22:38 +0000
commit9292440fd5366c839ba55330839f4374544b88da (patch)
treec6a24ac717bae4ebefc13ce948ffa11542f1c14c /net-dns/pdns
parentDrop myself to secondary maintainer (diff)
downloadgentoo-2-9292440fd5366c839ba55330839f4374544b88da.tar.gz
gentoo-2-9292440fd5366c839ba55330839f4374544b88da.tar.bz2
gentoo-2-9292440fd5366c839ba55330839f4374544b88da.zip
Cleanup.
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24)
Diffstat (limited to 'net-dns/pdns')
-rw-r--r--net-dns/pdns/ChangeLog9
-rw-r--r--net-dns/pdns/files/pdns-3.0-lua-config.patch33
-rw-r--r--net-dns/pdns/files/pdns-3.0-verbose-logging.patch11
-rw-r--r--net-dns/pdns/files/pdns-3.2-fix-autoconf.patch22
-rw-r--r--net-dns/pdns/files/pdns-3.2-fix-conditional-polarssl.patch30
-rw-r--r--net-dns/pdns/files/pdns-3.2-fix-curl-link.patch10
-rw-r--r--net-dns/pdns/files/pdns-3.2-lib_lua.patch22
-rw-r--r--net-dns/pdns/pdns-3.0.1.ebuild119
-rw-r--r--net-dns/pdns/pdns-3.1.ebuild113
-rw-r--r--net-dns/pdns/pdns-3.2.ebuild184
10 files changed, 8 insertions, 545 deletions
diff --git a/net-dns/pdns/ChangeLog b/net-dns/pdns/ChangeLog
index d37beae9a9ac..f3a9c8edae3c 100644
--- a/net-dns/pdns/ChangeLog
+++ b/net-dns/pdns/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-dns/pdns
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.97 2014/10/23 11:15:39 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/ChangeLog,v 1.98 2014/10/23 11:22:38 swegener Exp $
+
+ 23 Oct 2014; Sven Wegener <swegener@gentoo.org> -pdns-3.0.1.ebuild,
+ -pdns-3.1.ebuild, -pdns-3.2.ebuild, -files/pdns-3.0-lua-config.patch,
+ -files/pdns-3.0-verbose-logging.patch, -files/pdns-3.2-fix-autoconf.patch,
+ -files/pdns-3.2-fix-conditional-polarssl.patch,
+ -files/pdns-3.2-fix-curl-link.patch, -files/pdns-3.2-lib_lua.patch:
+ Cleanup.
*pdns-3.4.0 (23 Oct 2014)
diff --git a/net-dns/pdns/files/pdns-3.0-lua-config.patch b/net-dns/pdns/files/pdns-3.0-lua-config.patch
deleted file mode 100644
index 4507010f2018..000000000000
--- a/net-dns/pdns/files/pdns-3.0-lua-config.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-Index: configure.ac
-===================================================================
---- configure.ac (revision 2250)
-+++ configure.ac (working copy)
-@@ -16,6 +16,7 @@
- AC_PROG_MAKE_SET
- AC_PROG_LIBTOOL
- AC_LANG_CPLUSPLUS
-+PKG_PROG_PKG_CONFIG
-
- BOOST_REQUIRE([1.34])
- BOOST_FOREACH
-@@ -26,7 +27,7 @@
-
- dnl Check for lua
- AC_MSG_CHECKING(if with lua)
--AC_ARG_WITH(lua, AC_HELP_STRING([--with-lua],[lua]), WITH_LUA=$withval],[WITH_LUA=yes])
-+AC_ARG_WITH(lua, AC_HELP_STRING([--with-lua],[lua]), [WITH_LUA=$withval],[WITH_LUA=yes])
-
- AC_MSG_RESULT($WITH_LUA)
- if test "$WITH_LUA" != "no"; then
-Index: pdns/lua-pdns-recursor.cc
-===================================================================
---- pdns/lua-pdns-recursor.cc (revision 2250)
-+++ pdns/lua-pdns-recursor.cc (working copy)
-@@ -1,6 +1,6 @@
- #include "lua-pdns-recursor.hh"
-
--#if !defined(PDNS_ENABLE_LUA) && !defined(LIBDIR)
-+#if !defined(HAVE_LUA) || !defined(LIBDIR)
-
- // stub implementation
-
diff --git a/net-dns/pdns/files/pdns-3.0-verbose-logging.patch b/net-dns/pdns/files/pdns-3.0-verbose-logging.patch
deleted file mode 100644
index d3324b8395b6..000000000000
--- a/net-dns/pdns/files/pdns-3.0-verbose-logging.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-Index: trunk/pdns/pdns/nameserver.cc
-===================================================================
---- trunk/pdns/pdns/nameserver.cc (revision 2230)
-+++ trunk/pdns/pdns/nameserver.cc (revision 2259)
-@@ -180,5 +180,5 @@
- {
- const string& buffer=p->getString();
-- DLOG(L<<Logger::Notice<<"Sending a packet to "<< p->remote.toString() <<" ("<< buffer.length()<<" octets)"<<endl);
-+ DLOG(L<<Logger::Notice<<"Sending a packet to "<< p->getRemote() <<" ("<< buffer.length()<<" octets)"<<endl);
- if(buffer.length() > p->getMaxReplyLen()) {
- cerr<<"Weird, trying to send a message that needs truncation, "<< buffer.length()<<" > "<<p->getMaxReplyLen()<<endl;
diff --git a/net-dns/pdns/files/pdns-3.2-fix-autoconf.patch b/net-dns/pdns/files/pdns-3.2-fix-autoconf.patch
deleted file mode 100644
index 1fb555455982..000000000000
--- a/net-dns/pdns/files/pdns-3.2-fix-autoconf.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/configure.ac b/configure.ac
-index 1beab82..243b693 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -2,7 +2,7 @@ dnl intro
- AC_INIT(pdns/receiver.cc)
- AM_INIT_AUTOMAKE(pdns, 3.2)
- AC_CANONICAL_HOST
--AM_CONFIG_HEADER(config.h)
-+AC_CONFIG_HEADERS([config.h])
- AC_C_BIGENDIAN
- AC_PREREQ(2.52)
- : ${CXXFLAGS="-Wall -O2"}
-@@ -180,7 +180,7 @@ AC_ARG_WITH([system-polarssl],
- [system_polarssl=$withval],
- [system_polarssl=yes])
- AC_MSG_RESULT($system_polarssl)
--AM_CONDITIONAL(HAVE_LIBPOLARSSL, false)
-+AM_CONDITIONAL(HAVE_LIBPOLARSSL, test x$system_polarssl = xyes)
- if test x$system_polarssl = xyes; then
- AC_MSG_CHECKING([PolarSSL version >= 1.1])
- AC_COMPILE_IFELSE(
diff --git a/net-dns/pdns/files/pdns-3.2-fix-conditional-polarssl.patch b/net-dns/pdns/files/pdns-3.2-fix-conditional-polarssl.patch
deleted file mode 100644
index 26254eb9bb1e..000000000000
--- a/net-dns/pdns/files/pdns-3.2-fix-conditional-polarssl.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff --git a/pdns/Makefile.am b/pdns/Makefile.am
-index 8e7a2eb..57b4a90 100644
---- a/pdns/Makefile.am
-+++ b/pdns/Makefile.am
-@@ -68,8 +68,12 @@ md5.hh signingpipe.cc signingpipe.hh dnslabeltext.cc lua-pdns.cc lua-auth.cc lua
- ednssubnet.cc ednssubnet.hh cachecleaner.hh json.cc json.hh
-
- #
--pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic
-+pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_SERIALIZATION_LDFLAGS) -rdynamic
-+if HAVE_LIBPOLARSSL
-+pdns_server_LDADD= $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib)
-+else
- pdns_server_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib)
-+endif
-
- if BOTAN110
- pdns_server_SOURCES += botan110signers.cc botansigners.cc
-@@ -106,7 +110,11 @@ pdnssec_SOURCES=pdnssec.cc dbdnsseckeeper.cc sstuff.hh dnsparser.cc dnsparser.hh
-
-
- pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS)
-+if HAVE_LIBPOLARSSL
-+pdnssec_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib)
-+else
- pdnssec_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS) $(LIBCURL_LIBS) $(MYSQL_lib)
-+endif
-
- if BOTAN110
- pdnssec_SOURCES += botan110signers.cc botansigners.cc
diff --git a/net-dns/pdns/files/pdns-3.2-fix-curl-link.patch b/net-dns/pdns/files/pdns-3.2-fix-curl-link.patch
deleted file mode 100644
index 2848179ddee1..000000000000
--- a/net-dns/pdns/files/pdns-3.2-fix-curl-link.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-diff --git a/modules/remotebackend/Makefile.am b/modules/remotebackend/Makefile.am
-index a47f8bb..670ecbf 100644
---- a/modules/remotebackend/Makefile.am
-+++ b/modules/remotebackend/Makefile.am
-@@ -10,4 +10,4 @@ lib_LTLIBRARIES = libremotebackend.la
- libremotebackend_la_SOURCES=remotebackend.hh remotebackend.cc unixconnector.cc httpconnector.cc pipeconnector.cc
-
- libremotebackend_la_LDFLAGS=-module -avoid-version
--libremotebackend_la_LIBS=$(LIBCURL_LIBS)
-+libremotebackend_la_LIBADD=$(LIBCURL_LIBS)
diff --git a/net-dns/pdns/files/pdns-3.2-lib_lua.patch b/net-dns/pdns/files/pdns-3.2-lib_lua.patch
deleted file mode 100644
index b1d97b8bdaae..000000000000
--- a/net-dns/pdns/files/pdns-3.2-lib_lua.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/modules/luabackend/Makefile.am b/modules/luabackend/Makefile.am
-index a2374bd..1c7bd9a 100644
---- a/modules/luabackend/Makefile.am
-+++ b/modules/luabackend/Makefile.am
-@@ -1,7 +1,7 @@
--AM_CPPFLAGS=@THREADFLAGS@
-+AM_CPPFLAGS=$(LUA_CFLAGS) @THREADFLAGS@
- EXTRA_DIST=OBJECTFILES OBJECTLIBS
-
--INCLUDES=-I/usr/include/lua5.1
-+#INCLUDES=-I/usr/include/lua5.1
- #INCLUDES=-I/usr/local/include/luajit-2.0 -DUSE_LUAJIT
-
- lib_LTLIBRARIES = libluabackend.la
-@@ -9,5 +9,6 @@ lib_LTLIBRARIES = libluabackend.la
- libluabackend_la_SOURCES=luabackend.cc luabackend.hh minimal.cc reload.cc lua_functions.cc master.cc private.cc slave.cc supermaster.cc dnssec.cc \
- lua_functions.hh
-
--libluabackend_la_LDFLAGS=-module -avoid-version -llua5.1
-+libluabackend_la_LDFLAGS=-module -avoid-version
-+libluabackend_la_LIBADD=$(LUA_LIBS)
- #-lluajit-5.1
diff --git a/net-dns/pdns/pdns-3.0.1.ebuild b/net-dns/pdns/pdns-3.0.1.ebuild
deleted file mode 100644
index 05b51660f5cb..000000000000
--- a/net-dns/pdns/pdns-3.0.1.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-3.0.1.ebuild,v 1.11 2012/11/25 16:12:21 swegener Exp $
-
-EAPI=4
-
-inherit eutils multilib autotools user toolchain-funcs
-
-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 sqlite3 static opendbx"
-
-RDEPEND="mysql? ( virtual/mysql )
- postgres? ( dev-db/postgresql-base )
- ldap? ( >=net-nds/openldap-2.0.27-r4 )
- sqlite? ( =dev-db/sqlite-2.8* )
- sqlite3? ( =dev-db/sqlite-3* )
- opendbx? ( dev-db/opendbx )
- !static? ( >=dev-libs/boost-1.34 )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- static? ( >=dev-libs/boost-1.34[static-libs] )
- doc? ( app-doc/doxygen )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-3.0-lua-config.patch \
- "${FILESDIR}"/${PN}-3.0-verbose-logging.patch
- eautoreconf
-}
-
-src_configure() {
- local modules="pipe geo" myconf=""
-
- use mysql && modules="${modules} gmysql"
- use postgres && modules="${modules} gpgsql"
- use sqlite && modules="${modules} gsqlite"
- use sqlite3 && modules="${modules} gsqlite3"
- use opendbx && modules="${modules} opendbx"
- use ldap && modules="${modules} ldap"
- 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) \
- --without-lua \
- $(use_enable static static-binaries) \
- ${myconf} \
- || die "econf failed"
-}
-
-src_compile() {
- emake -C pdns/ext/polarssl CC="$(tc-getCC)" OFLAGS="${CFLAGS}"
-
- default
-
- if use doc
- then
- emake -C codedocs codedocs || die "emake codedocs failed"
- fi
-}
-
-src_install () {
- emake 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/.
-
- # Install development headers
- insinto /usr/include/pdns
- doins pdns/*.hh
- insinto /usr/include/pdns/backends/gsql
- doins pdns/backends/gsql/*.hh
-
- if use ldap
- then
- insinto /etc/openldap/schema
- doins "${FILESDIR}"/dnsdomain2.schema
- fi
-
- rm -f "${D}"/usr/$(get_libdir)/powerdns/*.{a,la}
-}
-
-pkg_preinst() {
- enewgroup pdns
- enewuser pdns -1 -1 /var/empty pdns
-}
-
-pkg_postinst() {
- elog
- elog "PowerDNS provides multiple instances support. You can create more instances"
- elog "by symlinking the pdns init script to another name."
- elog
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
- elog
-}
diff --git a/net-dns/pdns/pdns-3.1.ebuild b/net-dns/pdns/pdns-3.1.ebuild
deleted file mode 100644
index f8f2386a2a2b..000000000000
--- a/net-dns/pdns/pdns-3.1.ebuild
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-3.1.ebuild,v 1.4 2012/11/25 16:12:21 swegener Exp $
-
-EAPI=4
-
-inherit eutils multilib user toolchain-funcs
-
-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 sqlite3 static opendbx"
-
-RDEPEND="mysql? ( virtual/mysql )
- postgres? ( dev-db/postgresql-base )
- ldap? ( >=net-nds/openldap-2.0.27-r4 )
- sqlite? ( =dev-db/sqlite-2.8* )
- sqlite3? ( =dev-db/sqlite-3* )
- opendbx? ( dev-db/opendbx )
- !static? ( >=dev-libs/boost-1.34 )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- static? ( >=dev-libs/boost-1.34[static-libs] )
- doc? ( app-doc/doxygen )"
-
-src_configure() {
- local modules="pipe geo" myconf=""
-
- use mysql && modules="${modules} gmysql"
- use postgres && modules="${modules} gpgsql"
- use sqlite && modules="${modules} gsqlite"
- use sqlite3 && modules="${modules} gsqlite3"
- use opendbx && modules="${modules} opendbx"
- use ldap && modules="${modules} ldap"
- 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) \
- --without-lua \
- $(use_enable static static-binaries) \
- ${myconf} \
- || die "econf failed"
-}
-
-src_compile() {
- emake -C pdns/ext/polarssl-1.1.2 CC="$(tc-getCC)" OFLAGS="${CFLAGS}"
-
- default
-
- if use doc
- then
- emake -C codedocs codedocs || die "emake codedocs failed"
- fi
-}
-
-src_install () {
- emake 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/.
-
- # Install development headers
- insinto /usr/include/pdns
- doins pdns/*.hh
- insinto /usr/include/pdns/backends/gsql
- doins pdns/backends/gsql/*.hh
-
- if use ldap
- then
- insinto /etc/openldap/schema
- doins "${FILESDIR}"/dnsdomain2.schema
- fi
-
- rm -f "${D}"/usr/$(get_libdir)/powerdns/*.{a,la}
-}
-
-pkg_preinst() {
- enewgroup pdns
- enewuser pdns -1 -1 /var/empty pdns
-}
-
-pkg_postinst() {
- elog
- elog "PowerDNS provides multiple instances support. You can create more instances"
- elog "by symlinking the pdns init script to another name."
- elog
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
- elog
-}
diff --git a/net-dns/pdns/pdns-3.2.ebuild b/net-dns/pdns/pdns-3.2.ebuild
deleted file mode 100644
index ded55850c88a..000000000000
--- a/net-dns/pdns/pdns-3.2.ebuild
+++ /dev/null
@@ -1,184 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/pdns-3.2.ebuild,v 1.4 2014/10/23 10:24:52 swegener Exp $
-
-EAPI=5
-
-inherit autotools eutils multilib systemd user toolchain-funcs versionator
-
-DESCRIPTION="The PowerDNS Daemon"
-HOMEPAGE="http://www.powerdns.com/"
-SRC_URI="http://downloads.powerdns.com/releases/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# other possible flags:
-# db2: we lack the dep
-# oracle: dito (need Oracle Client Libraries)
-# xdb: (almost) dead, surely not supported
-
-IUSE="botan cryptopp debug doc ldap lua mydns mysql odbc opendbx postgres remote
-remote-http sqlite static tinydns"
-
-REQUIRED_USE="mydns? ( mysql )"
-
-RDEPEND="!static? (
- net-libs/polarssl
- >=dev-libs/boost-1.34:=
- botan? ( =dev-libs/botan-1.10* )
- cryptopp? ( dev-libs/crypto++ )
- lua? ( dev-lang/lua )
- mysql? ( virtual/mysql )
- postgres? ( dev-db/postgresql-base:= )
- ldap? ( >=net-nds/openldap-2.0.27-r4 )
- sqlite? ( dev-db/sqlite:3 )
- odbc? ( dev-db/unixODBC )
- opendbx? ( dev-db/opendbx )
- remote-http? ( net-misc/curl )
- tinydns? ( dev-db/cdb ) )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- static? (
- net-libs/polarssl[static-libs(+)]
- >=dev-libs/boost-1.34[static-libs(+)]
- botan? ( =dev-libs/botan-1.10*[static-libs(+)] )
- cryptopp? ( dev-libs/crypto++[static-libs(+)] )
- lua? ( dev-lang/lua[static-libs(+)] )
- mysql? ( virtual/mysql[static-libs(+)] )
- postgres? ( dev-db/postgresql-base[static-libs(+)] )
- ldap? ( >=net-nds/openldap-2.0.27-r4[static-libs(+)] )
- sqlite? ( dev-db/sqlite:3[static-libs(+)] )
- odbc? ( dev-db/unixODBC[static-libs(+)] )
- opendbx? ( dev-db/opendbx[static-libs(+)] )
- remote-http? ( net-misc/curl[static-libs(+)] )
- tinydns? ( dev-db/cdb ) )
- doc? ( app-doc/doxygen )"
-
-src_prepare() {
- epatch \
- "${FILESDIR}/${P}-fix-autoconf.patch" \
- "${FILESDIR}/${P}-fix-curl-link.patch" \
- "${FILESDIR}/${P}-fix-conditional-polarssl.patch" \
- "${FILESDIR}/${P}-lib_lua.patch"
- eautoreconf
-}
-
-src_configure() {
- local dynmodules="pipe geo" # the default backends, always enabled
- local modules=""
-
- #use db2 && dynmodules+=" db2"
- use ldap && dynmodules+=" ldap"
- use lua && dynmodules+=" lua"
- use mydns && dynmodules+=" mydns"
- use mysql && dynmodules+=" gmysql"
- use odbc && dynmodules+=" godbc"
- use opendbx && dynmodules+=" opendbx"
- #use oracle && dynmodules+=" goracle oracle"
- use postgres && dynmodules+=" gpgsql"
- use remote && dynmodules+=" remote"
- use sqlite && dynmodules+=" gsqlite3"
- use tinydns && dynmodules+=" tinydns"
- #use xdb && dynmodules+=" xdb"
-
- if use static ; then
- modules="${dynmodules}"
- dynmodules=""
- fi
-
- use botan && myconf+=" --enable-botan1.10"
- use cryptopp && myconf+=" --enable-cryptopp"
- use debug && myconf+=" --enable-verbose-logging"
- use remote-http && myconf+=" --enable-remotebackend-http"
-
- econf \
- --disable-static \
- --sysconfdir=/etc/powerdns \
- --libdir=/usr/$(get_libdir)/powerdns \
- --disable-recursor \
- --with-modules="${modules}" \
- --with-dynmodules="${dynmodules}" \
- --with-pgsql-includes=/usr/include \
- --with-pgsql-lib=/usr/$(get_libdir) \
- --with-mysql-lib=/usr/$(get_libdir) \
- $(use_with lua) \
- $(use_enable static static-binaries) \
- ${myconf}
-}
-
-src_compile() {
- default
- use doc && emake -C codedocs codedocs
-}
-
-src_install () {
- default
-
- mv "${D}"/etc/powerdns/pdns.conf{-dist,}
-
- fperms 0700 /etc/powerdns
- fperms 0600 /etc/powerdns/pdns.conf
-
- # 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
- systemd_newunit contrib/systemd-pdns.service pdns.service
-
- keepdir /var/empty
-
- use doc && dohtml -r codedocs/html/.
-
- # Install development headers
- insinto /usr/include/pdns
- doins pdns/*.hh
- insinto /usr/include/pdns/backends/gsql
- doins pdns/backends/gsql/*.hh
-
- if use ldap ; then
- insinto /etc/openldap/schema
- doins "${FILESDIR}"/dnsdomain2.schema
- fi
-
- prune_libtool_files --all
-}
-
-pkg_preinst() {
- enewgroup pdns
- enewuser pdns -1 -1 /var/empty pdns
-}
-
-pkg_postinst() {
- elog "PowerDNS provides multiple instances support. You can create more instances"
- elog "by symlinking the pdns init script to another name."
- elog
- elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
- elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
-
- if use ldap ; then
- ewarn "The official LDAP backend module is only compile-tested by upstream."
- ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
- fi
-
- local fix_perms=0
-
- for rv in ${REPLACING_VERSIONS} ; do
- version_compare ${rv} 3.2
- [[ $? -eq 1 ]] && fix_perms=1
- done
-
- if [[ $fix_perms -eq 1 ]] ; then
- ewarn "To fix a security bug (bug #458018) had the following"
- ewarn "files/directories the world-readable bit removed (if set):"
- ewarn " ${EPREFIX}/etc/pdns"
- ewarn " ${EPREFIX}/etc/pdns/pdns.conf"
- ewarn "Check if this is correct for your setup"
- ewarn "This is a one-time change and will not happen on subsequent updates."
- chmod o-rwx "${EPREFIX}"/etc/pdns/{,pdns.conf}
- fi
-
-}