From 8fabc7f19f29292a1e1754cbb6e9cf295464d874 Mon Sep 17 00:00:00 2001 From: ghen Date: Sun, 13 Aug 2006 09:34:21 +0000 Subject: Import net/powerdns, based on wip/pdns2 from pkgsrc-wip. The PowerDNS nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all the relevant DNS standards documents. PowerDNS is open source. The PowerDNS nameserver utilizes a flexible backend architecture that can access DNS information from any data source. This includes file formats, Bind zone files, relational databases or LDAP directories. See the net/powerdns-* packages for additional backend modules. --- net/powerdns/DESCR | 9 +++++++++ net/powerdns/Makefile | 24 ++++++++++++++++++++++++ net/powerdns/Makefile.backend | 14 ++++++++++++++ net/powerdns/Makefile.common | 20 ++++++++++++++++++++ net/powerdns/PLIST | 14 ++++++++++++++ net/powerdns/distinfo | 7 +++++++ net/powerdns/files/pdns.sh | 19 +++++++++++++++++++ net/powerdns/patches/patch-aa | 20 ++++++++++++++++++++ net/powerdns/patches/patch-ab | 22 ++++++++++++++++++++++ 9 files changed, 149 insertions(+) create mode 100644 net/powerdns/DESCR create mode 100644 net/powerdns/Makefile create mode 100644 net/powerdns/Makefile.backend create mode 100644 net/powerdns/Makefile.common create mode 100644 net/powerdns/PLIST create mode 100644 net/powerdns/distinfo create mode 100644 net/powerdns/files/pdns.sh create mode 100644 net/powerdns/patches/patch-aa create mode 100644 net/powerdns/patches/patch-ab (limited to 'net/powerdns') diff --git a/net/powerdns/DESCR b/net/powerdns/DESCR new file mode 100644 index 00000000000..f632b69820d --- /dev/null +++ b/net/powerdns/DESCR @@ -0,0 +1,9 @@ +The PowerDNS nameserver is a modern, advanced and high performance +authoritative-only nameserver. It is written from scratch and conforms +to all the relevant DNS standards documents. PowerDNS is open source. + +The PowerDNS nameserver utilizes a flexible backend architecture that +can access DNS information from any data source. This includes file +formats, Bind zone files, relational databases or LDAP directories. + +See the net/powerdns-* packages for additional backend modules. diff --git a/net/powerdns/Makefile b/net/powerdns/Makefile new file mode 100644 index 00000000000..1dc448b3fc1 --- /dev/null +++ b/net/powerdns/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ + +.include "Makefile.common" + +PKGNAME= ${DISTNAME:S/pdns/powerdns/} +COMMENT= Modern, advanced and high performance nameserver + +CONFIGURE_ARGS+= --with-modules="geo" +CONFIGURE_ARGS+= --with-dynmodules="pipe" + +RCD_SCRIPTS= pdns + +EGDIR= ${PREFIX}/share/examples/pdns +MAKE_ENV+= EGDIR=${EGDIR} + +CONF_FILES+= ${EGDIR}/pdns.conf-dist ${PKG_SYSCONFDIR}/pdns.conf + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= pre-install +SUBST_FILES.conf= pdns/pdns.conf-dist +SUBST_SED.conf= -e 's,@PREFIX@,${PREFIX},' +SUBST_SED.conf+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},' + +.include "../../mk/bsd.pkg.mk" diff --git a/net/powerdns/Makefile.backend b/net/powerdns/Makefile.backend new file mode 100644 index 00000000000..d58fe129ef2 --- /dev/null +++ b/net/powerdns/Makefile.backend @@ -0,0 +1,14 @@ +# $NetBSD: Makefile.backend,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ + +.include "../../net/powerdns/Makefile.common" + +DEPENDS+= powerdns>=${PDNS_VERSION}:../../net/powerdns + +DISTINFO_FILE= ${.CURDIR}/../../net/powerdns/distinfo +PATCHDIR= ${.CURDIR}/../../net/powerdns/patches + +CONFIGURE_ARGS+= --disable-pdns_server +CONFIGURE_ARGS+= --disable-recursor +CONFIGURE_ARGS+= --with-modules="" + +BUILD_DIRS= modules diff --git a/net/powerdns/Makefile.common b/net/powerdns/Makefile.common new file mode 100644 index 00000000000..b391b2bfe4e --- /dev/null +++ b/net/powerdns/Makefile.common @@ -0,0 +1,20 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ + +PDNS_VERSION= 2.9.20 +DISTNAME= pdns-${PDNS_VERSION} +CATEGORIES= net +MASTER_SITES= http://downloads.powerdns.com/releases/ + +MAINTAINER= ghen@NetBSD.org +HOMEPAGE= http://www.powerdns.com/ + +USE_TOOLS+= gmake +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +GNU_CONFIGURE= yes + +CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/pdns + +.include "../../devel/boost-headers/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" diff --git a/net/powerdns/PLIST b/net/powerdns/PLIST new file mode 100644 index 00000000000..b9e0a2af84d --- /dev/null +++ b/net/powerdns/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ +bin/pdns_control +bin/zone2ldap +bin/zone2sql +lib/pdns/libgeobackend.la +lib/pdns/libpipebackend.la +man/man8/pdns_control.8 +man/man8/pdns_server.8 +man/man8/zone2sql.8 +sbin/pdns_server +share/examples/pdns/pdns.conf-dist +share/examples/rc.d/pdns +@dirrm share/examples/pdns +@dirrm lib/pdns diff --git a/net/powerdns/distinfo b/net/powerdns/distinfo new file mode 100644 index 00000000000..26034022ccf --- /dev/null +++ b/net/powerdns/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ + +SHA1 (pdns-2.9.20.tar.gz) = 45fde296f17d2feaac779c206cf467d1dae2aaa1 +RMD160 (pdns-2.9.20.tar.gz) = 15d433bc29e7d60549d9296fca573724574614fc +Size (pdns-2.9.20.tar.gz) = 867520 bytes +SHA1 (patch-aa) = 034845af3a9b66f57e482e3b43e43b61c17f51ab +SHA1 (patch-ab) = 3718998efc8c9508ff328bb5c3b608e7a495cfe0 diff --git a/net/powerdns/files/pdns.sh b/net/powerdns/files/pdns.sh new file mode 100644 index 00000000000..a7f9fb5107e --- /dev/null +++ b/net/powerdns/files/pdns.sh @@ -0,0 +1,19 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: pdns.sh,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ +# + +# PROVIDE: pdns +# REQUIRE: DAEMON + +. /etc/rc.subr + +name="pdns" +rcvar=$name +command="@PREFIX@/sbin/pdns_server" +command_args="--daemon=yes" +pidfile=/var/run/${name}.pid +required_files="@PKG_SYSCONFDIR@/pdns.conf" + +load_rc_config $name +run_rc_command "$1" diff --git a/net/powerdns/patches/patch-aa b/net/powerdns/patches/patch-aa new file mode 100644 index 00000000000..fc45a8b5370 --- /dev/null +++ b/net/powerdns/patches/patch-aa @@ -0,0 +1,20 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ + +--- pdns/Makefile.in.orig 2006-03-15 19:33:23.000000000 +0100 ++++ pdns/Makefile.in +@@ -729,12 +729,12 @@ distclean-libtool: + uninstall-info-am: + install-sysconfDATA: $(sysconf_DATA) + @$(NORMAL_INSTALL) +- test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)" ++ test -z "$(EGDIR)" || $(mkdir_p) "$(DESTDIR)$(EGDIR)" + @list='$(sysconf_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ +- echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \ +- $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \ ++ echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(EGDIR)/$$f'"; \ ++ $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(EGDIR)/$$f"; \ + done + + uninstall-sysconfDATA: diff --git a/net/powerdns/patches/patch-ab b/net/powerdns/patches/patch-ab new file mode 100644 index 00000000000..185c9860ff0 --- /dev/null +++ b/net/powerdns/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/08/13 09:34:21 ghen Exp $ + +--- pdns/pdns.conf-dist.orig 2006-03-15 19:29:38.000000000 +0100 ++++ pdns/pdns.conf-dist +@@ -22,7 +22,7 @@ + ################################# + # config-dir Location of configuration directory (pdns.conf) + # +-# config-dir=/usr/local/etc ++# config-dir=@PKG_SYSCONFDIR@ + + ################################# + # config-name Name of this virtual configuration - will rename the binary image +@@ -142,7 +142,7 @@ + ################################# + # module-dir Default directory for modules + # +-# module-dir=/usr/local/bin/../lib ++# module-dir=@PREFIX@/lib/pdns + + ################################# + # negquery-cache-ttl Seconds to store packets in the PacketCache -- cgit v1.2.3