+++ /dev/null
-diff -up pdns-2.9.22/pdns/misc.hh.orig pdns-2.9.22/pdns/misc.hh
---- pdns-2.9.22/pdns/misc.hh.orig 2009-02-26 17:09:41.000000000 +0100
-+++ pdns-2.9.22/pdns/misc.hh 2009-02-26 17:09:54.000000000 +0100
-@@ -20,6 +20,7 @@
- #define MISC_HH
- #include <stdint.h>
- #include <cstring>
-+#include <cstdio>
-
- #if 0
- #include <iostream>
--- /dev/null
+diff -up pdns-3.0-rc3/configure.orig pdns-3.0-rc3/configure
+--- pdns-3.0-rc3/configure.orig 2011-07-20 14:09:39.960000514 +0200
++++ pdns-3.0-rc3/configure 2011-07-20 14:09:46.288007162 +0200
+@@ -16494,7 +16494,7 @@ $as_echo_n "checking if with lua... " >&
+
+ # Check whether --with-lua was given.
+ if test "${with_lua+set}" = set; then :
+- withval=$with_lua; WITH_LUA=$withval]
++ withval=$with_lua; WITH_LUA=$withval
+ else
+ WITH_LUA=yes
+ fi
include $(PKGROOT)/Include
PKG_NAME = pdns
-PKG_VER = 2.9.22
-PKG_REL = 0
+PKG_VER = 3.0
+PKG_REL = 1
PKG_MAINTAINER =
PKG_GROUPS = Networking/DNS
PKG_LICENSE = GPLv2
PKG_SUMMARY = A modern, advanced and high performance authoritative-only nameserver.
-PKG_BUILD_DEPS+= boost-devel gcc-c++ openldap-devel sqlite-devel zlib-devel
+PKG_BUILD_DEPS+= boost-devel chrpath gcc-c++ lua-devel openldap-devel \
+ sqlite-devel zlib-devel
define PKG_DESCRIPTION
The PowerDNS Nameserver is a modern, advanced and high performance \
--sysconfdir=/etc/pdns \
--libdir=/usr/lib/powerdns \
--with-modules="" \
- --with-dynmodules="pipe geo ldap gsqlite3"
+ --with-dynmodules="pipe geo ldap gsqlite3" \
+ --with-lua \
+ --disable-static
+
+define STAGE_INSTALL_CMDS
+ chrpath --delete $(BUILDROOT)/usr/bin/pdns_control
+ chrpath --delete $(BUILDROOT)/usr/bin/zone2ldap
+ chrpath --delete $(BUILDROOT)/usr/bin/zone2sql
+ chrpath --delete $(BUILDROOT)/usr/sbin/pdns_server
+ chrpath --delete $(BUILDROOT)/usr/lib/powerdns/*.so
+ chrpath --delete $(BUILDROOT)/usr/bin/dnsreplay
+ chrpath --delete $(BUILDROOT)//usr/bin/pdnssec
+endef
--- /dev/null
+[Unit]
+Description=PDNS DNS Server
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/pdns_server --daemon --guardian=yes
+ExecReload=/usr/bin/pdns_control cycle
+ExecStop=/usr/bin/pdns_control quit
+
+[Install]
+WantedBy=multi-user.target
+