blob: b25d689859601ae84d7a3842abf3dfbe3206e9c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# Created by: Marcello Coutinho
# $FreeBSD$
PORTNAME= e2guardian
PORTVERSION= 5.3.2
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= www
MAINTAINER= marcellocoutinho@gmail.com
COMMENT= Dansguardian fork with many improvements and bug fixes
LICENSE= GPLv2
BUILD_DEPENDS= rst2man:textproc/py-docutils@${PY_FLAVOR}
LIB_DEPENDS= libpcre.so:devel/pcre
USES= autoreconf compiler:c++11-lang libtool pkgconfig python
USE_GITHUB= yes
USE_CXXSTD= c++11
USE_RC_SUBR= e2guardian
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var \
--with-logdir=/var/log \
--with-piddir=/var/run
OPTIONS_RADIO= AV
OPTIONS_RADIO_AV=AVAST CLAMD KAV
OPTIONS_DEFINE= CLISCAN ICAP NTLM DNS EMAIL DEBUG DOCS SSL_MITM
OPTIONS_DEFAULT=CLAMD DNS
OPTIONS_SUB= yes
CLISCAN_DESC= Enable support for CLI content scanners
CLAMD_DESC= Enable ClamD AV content scanner
ICAP_DESC= Enable ICAP AV content scanner support
KAV_DESC= Enable Kaspersky AV support
AVAST_DESC= Enable AvastD content scanner
NTLM_DESC= Include NTLM authentication plugin
DNS_DESC= Include DNS authetication plugin
EMAIL_DESC= Enable e-mail reporting support
DEBUG_DESC= Enable debug build mode
SSL_MITM_DESC= Enable support for the SSL MITM plugin
CONFDIR= ${PREFIX}/etc/e2guardian
CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include
CLISCAN_CONFIGURE_ENABLE= commandline
CLAMD_CONFIGURE_ENABLE= clamd
CLAMD_RUN_DEPENDS= clamav>=0:security/clamav
ICAP_CONFIGURE_ENABLE= icap
KAV_CONFIGURE_ENABLE= kavd
AVAST_CONFIGURE_ENABLE= avastd
NTLM_CONFIGURE_ENABLE= ntlm
NTLM_USES= iconv
DNS_CONFIGURE_ENABLE= dnsauth
EMAIL_CONFIGURE_ENABLE= email
DEBUG_CONFIGURE_OFF= --with-dgdebug=off --with-newdebug=off
DEBUG_CONFIGURE_ON= --with-dgdebug=on --with-newdebug=on
SSL_MITM_USES= ssl
SSL_MITM_CONFIGURE_ENABLE= sslmitm
SSL_MITM_CONFIGURE_ENV= OPENSSL_LIBS="-lssl -lcrypto" \
OPENSSL_CFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB}"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLAMD} || ${PORT_OPTIONS:MICAP} || \
${PORT_OPTIONS:MKAV} || ${PORT_OPTIONS:MCLISCAN} || \
${PORT_OPTIONS:MAVAST}
PLIST_SUB+= SCANNERS=""
.else
PLIST_SUB+= SCANNERS="@comment "
.endif
SUB_FILES= pkg-message pkg-install
pre-configure:
@cd ${WRKSRC} && ${SH} ${WRKSRC}/autogen.sh
post-install:
@${FIND} ${STAGEDIR}${ETCDIR} -type f \
\( -name '*.conf' -or -name '*list' -or -name '*.story' \) \
-exec ${MV} {} {}.sample \;
@${MV} ${STAGEDIR}${ETCDIR}/lists/authplugins/ipgroups \
${STAGEDIR}${ETCDIR}/lists/authplugins/ipgroups.sample
@${MV} ${STAGEDIR}${ETCDIR}/lists/authplugins/portgroups \
${STAGEDIR}${ETCDIR}/lists/authplugins/portgroups.sample
@${MV} ${STAGEDIR}${ETCDIR}/lists/bannedrooms/default \
${STAGEDIR}${ETCDIR}/lists/bannedrooms/default.sample
@${MV} ${STAGEDIR}${ETCDIR}/lists/bannedsitelistwithbypass \
${STAGEDIR}${ETCDIR}/lists/bannedsitelistwithbypass.sample
@${MKDIR} ${STAGEDIR}${ETCDIR}/lists/contentscanners
@${MV} ${STAGEDIR}${ETCDIR}/lists/exceptionvirusextensionlist.sample \
${STAGEDIR}${ETCDIR}/lists/contentscanners/
@${MV} ${STAGEDIR}${ETCDIR}/lists/exceptionvirussiteiplist.sample \
${STAGEDIR}${ETCDIR}/lists/contentscanners/
.include <bsd.port.mk>
|