pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/e2guardian Port across commandline, email and clam...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/231cba399be7
branches:  trunk
changeset: 359648:231cba399be7
user:      sborrill <sborrill%pkgsrc.org@localhost>
date:      Wed Mar 15 13:42:03 2017 +0000

description:
Port across commandline, email and clamd options from dansguardian.
Enable NTLM support.
Bump PKGREVISION.

diffstat:

 www/e2guardian/Makefile                 |   4 ++-
 www/e2guardian/PLIST                    |   9 +++++-
 www/e2guardian/files/configfiles.avscan |   4 ++
 www/e2guardian/options.mk               |  49 ++++++++++++++++++++++++++++++--
 4 files changed, 61 insertions(+), 5 deletions(-)

diffs (123 lines):

diff -r 06e79846ecc5 -r 231cba399be7 www/e2guardian/Makefile
--- a/www/e2guardian/Makefile   Wed Mar 15 13:42:00 2017 +0000
+++ b/www/e2guardian/Makefile   Wed Mar 15 13:42:03 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2017/03/14 15:38:01 sborrill Exp $
+# $NetBSD: Makefile,v 1.4 2017/03/15 13:42:03 sborrill Exp $
 
 DISTNAME=      e2guardian-3.5.1
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=e2guardian/}
 GITHUB_PROJECT=        e2guardian
@@ -46,6 +47,7 @@
 CONFIGURE_ARGS+=       --with-proxygroup=${E2G_GROUP}
 CONFIGURE_ARGS+=       --with-piddir=${VARBASE}/run
 CONFIGURE_ARGS+=       --with-logdir=${VARBASE}/log/${E2G_LOG}
+CONFIGURE_ARGS+=       --enable-ntlm
 
 .include "options.mk"
 
diff -r 06e79846ecc5 -r 231cba399be7 www/e2guardian/PLIST
--- a/www/e2guardian/PLIST      Wed Mar 15 13:42:00 2017 +0000
+++ b/www/e2guardian/PLIST      Wed Mar 15 13:42:03 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2017/03/11 17:22:45 prlw1 Exp $
+@comment $NetBSD: PLIST,v 1.3 2017/03/15 13:42:03 sborrill Exp $
 man/man8/e2guardian.8
 sbin/e2guardian
 share/doc/e2guardian/AuthPlugins
@@ -101,10 +101,13 @@
 share/e2guardian/transparent1x1.gif
 share/examples/e2guardian/authplugins/ident.conf
 share/examples/e2guardian/authplugins/ip.conf
+share/examples/e2guardian/authplugins/proxy-ntlm.conf
 share/examples/e2guardian/authplugins/port.conf
 share/examples/e2guardian/authplugins/proxy-basic.conf
 share/examples/e2guardian/authplugins/proxy-digest.conf
 share/examples/e2guardian/authplugins/proxy-header.conf
+${PLIST.cli}share/examples/e2guardian/contentscanners/commandlinescan.conf
+${PLIST.clamd}share/examples/e2guardian/contentscanners/clamdscan.conf
 share/examples/e2guardian/downloadmanagers/default.conf
 share/examples/e2guardian/downloadmanagers/fancy.conf
 share/examples/e2guardian/e2guardian.conf
@@ -126,6 +129,10 @@
 share/examples/e2guardian/lists/bannedsslsitelist
 share/examples/e2guardian/lists/bannedurllist
 share/examples/e2guardian/lists/contentregexplist
+${PLIST.avscan}share/examples/e2guardian/lists/contentscanners/exceptionvirusextensionlist
+${PLIST.avscan}share/examples/e2guardian/lists/contentscanners/exceptionvirusmimetypelist
+${PLIST.avscan}share/examples/e2guardian/lists/contentscanners/exceptionvirussitelist
+${PLIST.avscan}share/examples/e2guardian/lists/contentscanners/exceptionvirusurllist
 share/examples/e2guardian/lists/downloadmanagers/managedextensionlist
 share/examples/e2guardian/lists/downloadmanagers/managedmimetypelist
 share/examples/e2guardian/lists/embededreferersitelist
diff -r 06e79846ecc5 -r 231cba399be7 www/e2guardian/files/configfiles.avscan
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/e2guardian/files/configfiles.avscan   Wed Mar 15 13:42:03 2017 +0000
@@ -0,0 +1,4 @@
+lists/contentscanners/exceptionvirusextensionlist
+lists/contentscanners/exceptionvirusmimetypelist
+lists/contentscanners/exceptionvirussitelist
+lists/contentscanners/exceptionvirusurllist
diff -r 06e79846ecc5 -r 231cba399be7 www/e2guardian/options.mk
--- a/www/e2guardian/options.mk Wed Mar 15 13:42:00 2017 +0000
+++ b/www/e2guardian/options.mk Wed Mar 15 13:42:03 2017 +0000
@@ -1,11 +1,54 @@
-# $NetBSD: options.mk,v 1.1 2017/03/03 14:09:18 prlw1 Exp $
+# $NetBSD: options.mk,v 1.2 2017/03/15 13:42:03 sborrill Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.e2guardian
-PKG_SUPPORTED_OPTIONS= debug
-PKG_SUGGESTED_OPTIONS=
+PKG_SUPPORTED_OPTIONS= debug email commandline clamd ssl
+PKG_SUGGESTED_OPTIONS= email ssl
 
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Mdebug)
 CONFIGURE_ARGS+=       --with-dgdebug
 .endif
+
+##
+## Enables reporting by email
+##
+.if !empty(PKG_OPTIONS:Memail)
+CONFIGURE_ARGS+=       --enable-email
+.endif
+
+##
+## Enables ssl MITM
+##
+.if !empty(PKG_OPTIONS:Mssl)
+CONFIGURE_ARGS+=       --enable-sslmitm
+.  include "../../security/openssl/buildlink3.mk"
+.endif
+
+# PLIST.avscan is shared between content scanners
+PLIST_VARS+=           avscan
+##
+## Enable command line content scanner
+##
+PLIST_VARS+=           cli
+.if !empty(PKG_OPTIONS:Mcommandline)
+CONFIGURE_ARGS+=       --enable-commandline
+PLIST.cli=             yes
+PLIST.avscan=          yes
+EGFILES_EXTRA+=                contentscanners/commandlinescan.conf
+.endif
+
+##
+## Enable ClamD content scanner
+##
+PLIST_VARS+=           clamd
+.if !empty(PKG_OPTIONS:Mclamd)
+CONFIGURE_ARGS+=       --enable-clamd
+PLIST.clamd=           yes
+PLIST.avscan=          yes
+EGFILES_EXTRA+=                contentscanners/clamdscan.conf
+.endif
+
+.if !empty(PLIST.avscan)
+EGFILES_LIST+=         ${.CURDIR}/files/configfiles.avscan
+.endif



Home | Main Index | Thread Index | Old Index