summaryrefslogtreecommitdiff
path: root/net/powerdns-recursor
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2009-12-23 13:00:41 +0000
committerghen <ghen@pkgsrc.org>2009-12-23 13:00:41 +0000
commit26d24b9fce01a94d36fb7b4ed5748be410e0fcd7 (patch)
tree3cde31d3a2eed4c78bd031722f5eea563aa9e1af /net/powerdns-recursor
parent529708d88719f0bb2283a9f8110074a4d5fe9e28 (diff)
downloadpkgsrc-26d24b9fce01a94d36fb7b4ed5748be410e0fcd7.tar.gz
Add option for Lua scripting support in pdns_recursor,
see http://doc.powerdns.com/recursor-scripting.html Disabled by default, so no revbump.
Diffstat (limited to 'net/powerdns-recursor')
-rw-r--r--net/powerdns-recursor/Makefile5
-rw-r--r--net/powerdns-recursor/options.mk16
2 files changed, 20 insertions, 1 deletions
diff --git a/net/powerdns-recursor/Makefile b/net/powerdns-recursor/Makefile
index 29c3b95f270..d219deaded2 100644
--- a/net/powerdns-recursor/Makefile
+++ b/net/powerdns-recursor/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2009/06/30 00:07:21 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2009/12/23 13:00:41 ghen Exp $
#
DISTNAME= pdns-recursor-3.1.7
@@ -29,6 +29,9 @@ INSTALL_MAKE_FLAGS+= CONFIGDIR=${EGDIR} MANDIR=${PREFIX}/${PKGMANDIR}
CONF_FILES+= ${EGDIR}/recursor.conf-dist \
${PKG_SYSCONFDIR}/recursor.conf
+.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
+
post-patch:
${SED} -e "s:/etc/powerdns:${PKG_SYSCONFDIR}:" \
${WRKSRC}/config.h >${WRKSRC}/config.h.new
diff --git a/net/powerdns-recursor/options.mk b/net/powerdns-recursor/options.mk
new file mode 100644
index 00000000000..e532247a68f
--- /dev/null
+++ b/net/powerdns-recursor/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2009/12/23 13:00:41 ghen Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.powerdns-recursor
+PKG_SUPPORTED_OPTIONS= lua
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Build with Lua scripting support
+###
+.if !empty(PKG_OPTIONS:Mlua)
+MAKE_ENV+= LUA=1
+MAKE_ENV+= LUA_LIBS_CONFIG=-llua
+.include "../../lang/lua/buildlink3.mk"
+.endif
+