pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/powerdns Import net/powerdns, based on wip/pdns2 f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7375c1c31489
branches:  trunk
changeset: 517499:7375c1c31489
user:      ghen <ghen%pkgsrc.org@localhost>
date:      Sun Aug 13 09:34:21 2006 +0000

description:
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.

diffstat:

 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(+), 0 deletions(-)

diffs (185 lines):

diff -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/DESCR        Sun Aug 13 09:34:21 2006 +0000
@@ -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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/Makefile     Sun Aug 13 09:34:21 2006 +0000
@@ -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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/Makefile.backend
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/Makefile.backend     Sun Aug 13 09:34:21 2006 +0000
@@ -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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/Makefile.common      Sun Aug 13 09:34:21 2006 +0000
@@ -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@localhost
+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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/PLIST        Sun Aug 13 09:34:21 2006 +0000
@@ -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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/distinfo     Sun Aug 13 09:34:21 2006 +0000
@@ -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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/files/pdns.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/files/pdns.sh        Sun Aug 13 09:34:21 2006 +0000
@@ -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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/patches/patch-aa     Sun Aug 13 09:34:21 2006 +0000
@@ -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 -r 51b5bc5dba35 -r 7375c1c31489 net/powerdns/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns/patches/patch-ab     Sun Aug 13 09:34:21 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index