diff options
author | ghen <ghen> | 2009-12-23 13:00:41 +0000 |
---|---|---|
committer | ghen <ghen> | 2009-12-23 13:00:41 +0000 |
commit | 0a8c543cb72b162b4b6ff8f2afc3b7f34d5cb7a6 (patch) | |
tree | 3cde31d3a2eed4c78bd031722f5eea563aa9e1af /net | |
parent | bbf2ac015074e6ec4e91477a8bc831411a3a15f5 (diff) | |
download | pkgsrc-0a8c543cb72b162b4b6ff8f2afc3b7f34d5cb7a6.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')
-rw-r--r-- | net/powerdns-recursor/Makefile | 5 | ||||
-rw-r--r-- | net/powerdns-recursor/options.mk | 16 |
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 + |