Add option for Lua scripting support in pdns_recursor,
see http://doc.powerdns.com/recursor-scripting.html Disabled by default, so no revbump.
This commit is contained in:
parent
529708d887
commit
26d24b9fce
2 changed files with 20 additions and 1 deletions
|
@ -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
|
||||
|
|
16
net/powerdns-recursor/options.mk
Normal file
16
net/powerdns-recursor/options.mk
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue