View | Details | Raw Unified | Return to bug 199137 | Differences between
and this patch

Collapse All | Expand All

(-)e2guardian/Makefile (-1 / +15 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	e2guardian
4
PORTNAME=	e2guardian
5
PORTVERSION=	3.0.4
5
PORTVERSION=	3.0.4
6
PORTREVISION=	1
6
CATEGORIES=	www
7
CATEGORIES=	www
7
MASTER_SITES=	GH
8
MASTER_SITES=	GH
8
9
Lines 17-22 Link Here
17
USE_GITHUB=	yes
18
USE_GITHUB=	yes
18
GH_TAGNAME=	${PORTVERSION:S/^/v/}
19
GH_TAGNAME=	${PORTVERSION:S/^/v/}
19
USES=		pkgconfig iconv
20
USES=		pkgconfig iconv
21
USE_RC_SUBR=	e2guardian
20
HAS_CONFIGURE=	yes
22
HAS_CONFIGURE=	yes
21
USE_AUTOTOOLS=	aclocal libtoolize autoheader automake autoconf
23
USE_AUTOTOOLS=	aclocal libtoolize autoheader automake autoconf
22
ACLOCAL_ARGS=	-I m4
24
ACLOCAL_ARGS=	-I m4
Lines 65-71 Link Here
65
NTLM_USES=			iconv
67
NTLM_USES=			iconv
66
DNS_CONFIGURE_ENABLE=		dnsauth
68
DNS_CONFIGURE_ENABLE=		dnsauth
67
EMAIL_CONFIGURE_ENABLE=		email
69
EMAIL_CONFIGURE_ENABLE=		email
68
DEBUG_CONFIGURE_WITH=		dgdebug
70
DEBUG_CONFIGURE_ON=		--with-dgdebug=on
69
1024_CONFIGURE_ON=		--with-filedescriptors=1024
71
1024_CONFIGURE_ON=		--with-filedescriptors=1024
70
2048_CONFIGURE_ON=		--with-filedescriptors=2048
72
2048_CONFIGURE_ON=		--with-filedescriptors=2048
71
4096_CONFIGURE_ON=		--with-filedescriptors=4096
73
4096_CONFIGURE_ON=		--with-filedescriptors=4096
Lines 86-91 Link Here
86
PLIST_SUB+=	SCANNERS="@comment "
88
PLIST_SUB+=	SCANNERS="@comment "
87
.endif
89
.endif
88
90
91
post-extract:
92
.if ${PORT_OPTIONS:M2048} || ${PORT_OPTIONS:M4096} || ${PORT_OPTIONS:M8192}
93
	@${ECHO_MSG} ""
94
	@${ECHO_MSG} "######################################################"
95
	@${ECHO_MSG} "WARNING! Filedescriptors option higher then 1024."
96
	@${ECHO_MSG} "Check/raise FD_SETSIZE in /usr/include/sys/select.h" 
97
	@${ECHO_MSG} "before preceeding with e2guardian compilation"
98
	@${ECHO_MSG} "######################################################"
99
	@${ECHO_MSG} ""
100
	@sleep 3
101
.endif
102
89
post-install:
103
post-install:
90
	@${FIND} ${STAGEDIR}${ETCDIR} -type f \
104
	@${FIND} ${STAGEDIR}${ETCDIR} -type f \
91
		\( -name '*.conf' -or -name '*list' \) -exec ${MV} {} {}.sample \;
105
		\( -name '*.conf' -or -name '*list' \) -exec ${MV} {} {}.sample \;
(-)e2guardian/files/e2guardian.in (+34 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: e2guardian
7
# REQUIRE: NETWORKING SERVERS
8
# BEFORE: DAEMON
9
# KEYWORD: shutdown
10
11
#
12
# Add the following line to /etc/rc.conf to enable e2guardian:
13
# e2guardian_enable (bool):	Set to "NO" by default.
14
#				Set it to "YES" to enable e2guardian.
15
# e2guardian_flags (text):	Set e2guardian extra flags
16
17
. /etc/rc.subr
18
19
name=e2guardian
20
rcvar=e2guardian_enable
21
desc="e2guardian startup script"
22
23
load_rc_config $name
24
25
: ${e2guardian_enable:=NO}
26
: ${e2guardian_config="%%PREFIX%%/etc/${name}/${name}.conf"}
27
28
command=%%PREFIX%%/sbin/${name}
29
pidfile=/var/run/${name}.pid
30
31
command_args="-p $pidfile -f $e2guardian_config $e2guardian_flags"
32
33
run_rc_command "$1"
34

Return to bug 199137