diff options
-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 + |