pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net Add debug option
details: https://anonhg.NetBSD.org/pkgsrc/rev/185e932a1c20
branches: trunk
changeset: 511669:185e932a1c20
user: adrianp <adrianp%pkgsrc.org@localhost>
date: Tue Apr 18 22:39:32 2006 +0000
description:
Add debug option
Suggested by Jason Miller in private email
diffstat:
net/snort-mysql/Makefile | 11 ++++++++++-
net/snort-pgsql/Makefile | 11 ++++++++++-
net/snort/Makefile | 11 ++++++++++-
net/snort/Makefile.common | 6 +++---
4 files changed, 33 insertions(+), 6 deletions(-)
diffs (90 lines):
diff -r f9cb8ebdb0ff -r 185e932a1c20 net/snort-mysql/Makefile
--- a/net/snort-mysql/Makefile Tue Apr 18 20:55:13 2006 +0000
+++ b/net/snort-mysql/Makefile Tue Apr 18 22:39:32 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2006/03/09 09:38:42 adrianp Exp $
+# $NetBSD: Makefile,v 1.17 2006/04/18 22:39:32 adrianp Exp $
.include "../../net/snort/Makefile.common"
@@ -17,5 +17,14 @@
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
LDFLAGS+= ${BUILDLINK_LDFLAGS.mysql-client}
+PKG_OPTIONS_VAR= PKG_OPTIONS.snort-mysql
+PKG_SUPPORTED_OPTIONS= debug
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r f9cb8ebdb0ff -r 185e932a1c20 net/snort-pgsql/Makefile
--- a/net/snort-pgsql/Makefile Tue Apr 18 20:55:13 2006 +0000
+++ b/net/snort-pgsql/Makefile Tue Apr 18 22:39:32 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2006/03/09 09:39:15 adrianp Exp $
+# $NetBSD: Makefile,v 1.21 2006/04/18 22:39:32 adrianp Exp $
.include "../../net/snort/Makefile.common"
@@ -16,5 +16,14 @@
CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX:Q}
+PKG_OPTIONS_VAR= PKG_OPTIONS.snort-pgsql
+PKG_SUPPORTED_OPTIONS= debug
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug
+.endif
+
.include "../../mk/pgsql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r f9cb8ebdb0ff -r 185e932a1c20 net/snort/Makefile
--- a/net/snort/Makefile Tue Apr 18 20:55:13 2006 +0000
+++ b/net/snort/Makefile Tue Apr 18 22:39:32 2006 +0000
@@ -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 -r f9cb8ebdb0ff -r 185e932a1c20 net/snort/Makefile.common
--- a/net/snort/Makefile.common Tue Apr 18 20:55:13 2006 +0000
+++ b/net/snort/Makefile.common Tue Apr 18 22:39:32 2006 +0000
@@ -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 @@
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:
Home |
Main Index |
Thread Index |
Old Index