pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/powerdns-recursor Add option for Lua scripting sup...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d8dd282d8d23
branches:  trunk
changeset: 568884:d8dd282d8d23
user:      ghen <ghen%pkgsrc.org@localhost>
date:      Wed Dec 23 13:00:41 2009 +0000

description:
Add option for Lua scripting support in pdns_recursor,
see http://doc.powerdns.com/recursor-scripting.html

Disabled by default, so no revbump.

diffstat:

 net/powerdns-recursor/Makefile   |   5 ++++-
 net/powerdns-recursor/options.mk |  16 ++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 054d81cc96bb -r d8dd282d8d23 net/powerdns-recursor/Makefile
--- a/net/powerdns-recursor/Makefile    Wed Dec 23 12:53:46 2009 +0000
+++ b/net/powerdns-recursor/Makefile    Wed Dec 23 13:00:41 2009 +0000
@@ -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 @@
 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 -r 054d81cc96bb -r d8dd282d8d23 net/powerdns-recursor/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/powerdns-recursor/options.mk  Wed Dec 23 13:00:41 2009 +0000
@@ -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
+



Home | Main Index | Thread Index | Old Index