diff options
author | adrianp <adrianp@pkgsrc.org> | 2006-04-18 22:39:32 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2006-04-18 22:39:32 +0000 |
commit | f1a9d7df5787372d14672d9d2cee817ff34b5ee5 (patch) | |
tree | 4328cb86f971e086db27953d081c630d9babc186 /net/snort | |
parent | d08ecd41a82478dcb879f1908fe07aaeb32c70f2 (diff) | |
download | pkgsrc-f1a9d7df5787372d14672d9d2cee817ff34b5ee5.tar.gz |
Add debug option
Suggested by Jason Miller in private email
Diffstat (limited to 'net/snort')
-rw-r--r-- | net/snort/Makefile | 11 | ||||
-rw-r--r-- | net/snort/Makefile.common | 6 |
2 files changed, 13 insertions, 4 deletions
diff --git a/net/snort/Makefile b/net/snort/Makefile index 909afc76f30..9354baef80a 100644 --- a/net/snort/Makefile +++ b/net/snort/Makefile @@ -1,8 +1,17 @@ -# $NetBSD: Makefile,v 1.26 2005/01/28 23:02:41 adrianp Exp $ +# $NetBSD: Makefile,v 1.27 2006/04/18 22:39:32 adrianp Exp $ # .include "Makefile.common" COMMENT= The Open Source Network Intrusion Detection System +PKG_OPTIONS_VAR= PKG_OPTIONS.snort +PKG_SUPPORTED_OPTIONS= debug + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdebug) +CONFIGURE_ARGS+= --enable-debug +.endif + .include "../../mk/bsd.pkg.mk" diff --git a/net/snort/Makefile.common b/net/snort/Makefile.common index d7d285ff4c7..49f1059a30b 100644 --- a/net/snort/Makefile.common +++ b/net/snort/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.32 2006/03/09 09:37:44 adrianp Exp $ +# $NetBSD: Makefile.common,v 1.33 2006/04/18 22:39:32 adrianp Exp $ # DISTNAME= snort-2.4.4 @@ -52,8 +52,8 @@ SNORTDIR= ${PREFIX}/share/snort SUBST_CLASSES+= paths SUBST_STAGE.paths= post-patch SUBST_FILES.paths= etc/snort.conf src/snort.c -SUBST_SED.paths= -e "s|@PREFIX@|${PREFIX}|g" \ - -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" +SUBST_SED.paths= -e "s|@PREFIX@|${PREFIX}|g" +SUBST_SED.paths+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" SUBST_MESSAGE.cgi= Fixing paths. post-install: |