summaryrefslogtreecommitdiff
path: root/net/snort
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2006-04-18 22:39:32 +0000
committeradrianp <adrianp@pkgsrc.org>2006-04-18 22:39:32 +0000
commit55341ffa935f03e5c0ecc9bb818da9f85d7366a0 (patch)
tree4328cb86f971e086db27953d081c630d9babc186 /net/snort
parent0cf0605bd16a0aeb36e78f438a12f9e7c741734d (diff)
downloadpkgsrc-55341ffa935f03e5c0ecc9bb818da9f85d7366a0.tar.gz
Add debug option
Suggested by Jason Miller in private email
Diffstat (limited to 'net/snort')
-rw-r--r--net/snort/Makefile11
-rw-r--r--net/snort/Makefile.common6
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: