summaryrefslogtreecommitdiff
path: root/www/dansguardian
diff options
context:
space:
mode:
authorprlw1 <prlw1@pkgsrc.org>2014-10-14 14:41:17 +0000
committerprlw1 <prlw1@pkgsrc.org>2014-10-14 14:41:17 +0000
commitbb4b7a477fd2fd4d17589ecc9cbcfc30b0f5dc5f (patch)
tree90714a73477ac5644ee78bfae0b1716b3ba7a15e /www/dansguardian
parent674e3e69f1aa7528ae9373b1e41a81840ae52f58 (diff)
downloadpkgsrc-bb4b7a477fd2fd4d17589ecc9cbcfc30b0f5dc5f.tar.gz
Give dansguardian a debug option
Diffstat (limited to 'www/dansguardian')
-rw-r--r--www/dansguardian/Makefile4
-rw-r--r--www/dansguardian/options.mk11
2 files changed, 14 insertions, 1 deletions
diff --git a/www/dansguardian/Makefile b/www/dansguardian/Makefile
index 258bc80f1fc..5b74f6bad29 100644
--- a/www/dansguardian/Makefile
+++ b/www/dansguardian/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2014/09/25 19:41:21 jperkin Exp $
+# $NetBSD: Makefile,v 1.20 2014/10/14 14:41:17 prlw1 Exp $
DISTNAME= dansguardian-2.12.0.3
PKGREVISION= 1
@@ -46,6 +46,8 @@ CONFIGURE_ARGS+= --with-proxygroup=${DANSGUARDIAN_GROUP}
CONFIGURE_ARGS+= --with-piddir=${VARBASE}/run
CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log/dansguardian
+.include "options.mk"
+
CHECK_WRKREF_SKIP+= sbin/dansguardian
REPLACE_PERL= data/dansguardian.pl
diff --git a/www/dansguardian/options.mk b/www/dansguardian/options.mk
new file mode 100644
index 00000000000..857d50af787
--- /dev/null
+++ b/www/dansguardian/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2014/10/14 14:41:17 prlw1 Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.dansguardian
+PKG_SUPPORTED_OPTIONS= debug
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --with-dgdebug
+.endif