View | Details | Raw Unified | Return to bug 94802
Collapse All | Expand All

(-)/usr/ports/www/dansguardian/Makefile (-14 / +9 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	dansguardian
8
PORTNAME=	dansguardian
9
PORTVERSION=	2.8.0.6
9
PORTVERSION=	2.8.0.6
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	www
11
CATEGORIES=	www
12
MASTER_SITES=	# empty, see below
12
MASTER_SITES=	# empty, see below
13
DISTNAME=	${PORTNAME}-${PORTVERSION}.source
13
DISTNAME=	${PORTNAME}-${PORTVERSION}.source
Lines 17-24 Link Here
17
17
18
RUN_DEPENDS=	${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
18
RUN_DEPENDS=	${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
19
19
20
USE_RC_SUBR=	yes
20
USE_RC_SUBR=	dansguardian.sh
21
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
22
21
23
CONFLICTS=	dansguardian-2.[67]*
22
CONFLICTS=	dansguardian-2.[67]*
24
LATEST_LINK=	dansguardian
23
LATEST_LINK=	dansguardian
Lines 36-50 Link Here
36
MAN8=		dansguardian.8
35
MAN8=		dansguardian.8
37
NOMANCOMPRESSED=	yes
36
NOMANCOMPRESSED=	yes
38
37
39
OPTIONS=	DG_APACHE "Enable Apache support." on \
38
OPTIONS=	DG_APACHE "Enable Apache support for access denied page" on \
40
		DG_PHRASELISTS "Install new phraselists over the old ones." off
39
		DG_PHRASELISTS "Install new phraselists over the old ones." off
41
40
42
DG_URL=		http://dansguardian.org/index.php?page=copyright2
41
DG_URL=		http://dansguardian.org/index.php?page=copyright2
43
CONFDIR=	${PREFIX}/etc/dansguardian
42
CONFDIR=	${PREFIX}/etc/dansguardian
44
43
45
NO_CDROM=	"Commercial download is restricted.  Check ${DG_URL} for more info"
44
NO_CDROM=	Commercial download is restricted.  Check ${DG_URL} for more info
46
NO_PACKAGE=	"Redistribution is restricted.  Check ${DG_URL} for more info"
45
NO_PACKAGE=	Redistribution is restricted.  Check ${DG_URL} for more info
47
RESTRICTED=	"${NO_PACKAGE}"
46
RESTRICTED=	${NO_PACKAGE}
48
47
49
.include <bsd.port.pre.mk>
48
.include <bsd.port.pre.mk>
50
49
Lines 55-61 Link Here
55
CONFIGURE_ARGS+=	--gccver=2
54
CONFIGURE_ARGS+=	--gccver=2
56
.endif
55
.endif
57
56
58
.if !defined(WITHOUT_DG_APACHE)
57
.if defined(WITH_DG_APACHE)
59
USE_APACHE=	1.3+
58
USE_APACHE=	1.3+
60
.endif
59
.endif
61
60
Lines 64-73 Link Here
64
IGNORE="Commercial source download is restricted.  Please visit and read ${DG_URL} and download ${DISTNAME}${EXTRACT_SUFX} into ${DISTDIR} before running make"
63
IGNORE="Commercial source download is restricted.  Please visit and read ${DG_URL} and download ${DISTNAME}${EXTRACT_SUFX} into ${DISTDIR} before running make"
65
.endif
64
.endif
66
65
67
post-extract:
68
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
69
		${FILESDIR}/dansguardian.sh > ${WRKSRC}/dansguardian.sh
70
71
pre-install:
66
pre-install:
72
# Configure pkg-plist based on whether phraselists are to be installed or not
67
# Configure pkg-plist based on whether phraselists are to be installed or not
73
.if defined(WITH_DG_PHRASELISTS)
68
.if defined(WITH_DG_PHRASELISTS)
Lines 86-93 Link Here
86
.endif
81
.endif
87
82
88
# Install startup script
83
# Install startup script
89
	@${ECHO_MSG} "===>   Installing startup script into ${PREFIX}/etc/rc.d"
84
#	@${ECHO_MSG} "===>   Installing startup script into ${PREFIX}/etc/rc.d"
90
	@${INSTALL_SCRIPT} ${WRKSRC}/dansguardian.sh ${PREFIX}/etc/rc.d/start-dg.sh
85
#	@${INSTALL_SCRIPT} ${WRKSRC}/dansguardian.sh ${PREFIX}/etc/rc.d/start-dg.sh
91
86
92
# Display post-install message
87
# Display post-install message
93
	@${CAT} pkg-message
88
	@${CAT} pkg-message
(-)/usr/ports/www/dansguardian/files/dansguardian.sh (-31 lines)
Lines 1-31 Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/www/dansguardian/files/dansguardian.sh,v 1.3 2004/08/10 11:48:14 sem Exp $
3
4
# PROVIDE: dansguardian
5
# REQUIRE: DAEMON squid
6
# BEFORE: LOGIN
7
# KEYWORD: FreeBSD shutdown
8
9
# Define these dansguardian_* variables in one of these files:
10
#       /etc/rc.conf
11
#       /etc/rc.conf.local
12
#       /etc/rc.conf.d/dansguardian
13
#
14
# DO NOT CHANGE THESE DEFAULT VALUES HERE
15
#
16
dansguardian_enable=${dansguardian_enable-"NO"}
17
dansguardian_flags=${dansguardian_flags-""}
18
dansguardian_pidfile=${dansguardian_pidfile-"/var/run/dansguardian.pid"}
19
20
. %%RC_SUBR%%
21
22
name="dansguardian"
23
rcvar=`set_rcvar`
24
command="%%PREFIX%%/sbin/dansguardian"
25
26
load_rc_config ${name}
27
28
pidfile="${dansguardian_pidfile}"
29
30
run_rc_command "${1}"
31
(-)/usr/ports/www/dansguardian/files/dansguardian.sh.in (+31 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD: ports/www/dansguardian/files/dansguardian.sh,v 1.3 2004/08/10 11:48:14 sem Exp $
3
4
# PROVIDE: dansguardian
5
# REQUIRE: NETWORKING SERVERS squid
6
# BEFORE:  DAEMON
7
# KEYWORD: FreeBSD shutdown
8
9
# Define these dansguardian_* variables in one of these files:
10
#       /etc/rc.conf
11
#       /etc/rc.conf.local
12
#       /etc/rc.conf.d/dansguardian
13
#
14
# DO NOT CHANGE THESE DEFAULT VALUES HERE
15
#
16
dansguardian_enable=${dansguardian_enable:-"NO"}
17
dansguardian_flags=${dansguardian_flags:-""}
18
dansguardian_pidfile=${dansguardian_pidfile:-"/var/run/dansguardian.pid"}
19
20
. %%RC_SUBR%%
21
22
name="dansguardian"
23
rcvar=`set_rcvar`
24
command="%%PREFIX%%/sbin/dansguardian"
25
26
load_rc_config ${name}
27
28
pidfile="${dansguardian_pidfile}"
29
30
run_rc_command "${1}"
31
(-)/usr/ports/www/dansguardian/pkg-message (-5 / +10 lines)
Lines 1-10 Link Here
1
===>   Please Note:
1
===>   Please Note:
2
2
3
*******************************************************************************
3
*******************************************************************************
4
       This port has placed a log file in /var/log/ named dansguardian.log
4
       All initial config files have been placed under a samples/ directory.
5
       This log file can get quite large.  Please read the newsyslog(8) man
5
       You will need to copy these files into the config directory before
6
       page for instructions on setting up log rotation and compression.
6
       running DansGuardian for the first time.
7
7
8
       WARNING:  This port uses RCng.  Please read the comments in the startup
8
       This port has created a log file named dansguardian.log that can get
9
       script for instructions on enabling the daemon.
9
       quite large.  Please read the newsyslog(8) man page for instructions
10
       on setting up log rotation and compression.
11
12
       This port hasa been converted to the new RC framework and should work
13
       correctly via rcorder.  Please read the comments in the startup script
14
       for instructions on enabling the daemon.
10
*******************************************************************************
15
*******************************************************************************
(-)/usr/ports/www/dansguardian/pkg-plist (-5 / +13 lines)
Lines 8-14 Link Here
8
@exec mkdir -p etc/dansguardian/languages/danish
8
@exec mkdir -p etc/dansguardian/languages/danish
9
@exec mkdir -p etc/dansguardian/languages/french
9
@exec mkdir -p etc/dansguardian/languages/french
10
@exec mkdir -p etc/dansguardian/languages/german
10
@exec mkdir -p etc/dansguardian/languages/german
11
@exec mkdir -p etc/dansguardian/languages/german2
12
@exec mkdir -p etc/dansguardian/languages/hebrew
11
@exec mkdir -p etc/dansguardian/languages/hebrew
13
@exec mkdir -p etc/dansguardian/languages/indonesian
12
@exec mkdir -p etc/dansguardian/languages/indonesian
14
@exec mkdir -p etc/dansguardian/languages/italian
13
@exec mkdir -p etc/dansguardian/languages/italian
Lines 16-21 Link Here
16
@exec mkdir -p etc/dansguardian/languages/mxspanish
15
@exec mkdir -p etc/dansguardian/languages/mxspanish
17
@exec mkdir -p etc/dansguardian/languages/polish
16
@exec mkdir -p etc/dansguardian/languages/polish
18
@exec mkdir -p etc/dansguardian/languages/portuguese
17
@exec mkdir -p etc/dansguardian/languages/portuguese
18
@exec mkdir -p etc/dansguardian/languages/russian-1251
19
@exec mkdir -p etc/dansguardian/languages/slovak
20
@exec mkdir -p etc/dansguardian/languages/spanish
19
@exec mkdir -p etc/dansguardian/languages/swedish
21
@exec mkdir -p etc/dansguardian/languages/swedish
20
@exec mkdir -p etc/dansguardian/languages/turkish
22
@exec mkdir -p etc/dansguardian/languages/turkish
21
@exec mkdir -p etc/dansguardian/languages/ukenglish
23
@exec mkdir -p etc/dansguardian/languages/ukenglish
Lines 82-89 Link Here
82
etc/dansguardian/languages/french/template.html
84
etc/dansguardian/languages/french/template.html
83
etc/dansguardian/languages/german/messages
85
etc/dansguardian/languages/german/messages
84
etc/dansguardian/languages/german/template.html
86
etc/dansguardian/languages/german/template.html
85
etc/dansguardian/languages/german2/messages
86
etc/dansguardian/languages/german2/template.html
87
etc/dansguardian/languages/hebrew/messages
87
etc/dansguardian/languages/hebrew/messages
88
etc/dansguardian/languages/hebrew/template.html
88
etc/dansguardian/languages/hebrew/template.html
89
etc/dansguardian/languages/indonesian/messages
89
etc/dansguardian/languages/indonesian/messages
Lines 97-102 Link Here
97
etc/dansguardian/languages/polish/messages
97
etc/dansguardian/languages/polish/messages
98
etc/dansguardian/languages/polish/template.html
98
etc/dansguardian/languages/polish/template.html
99
etc/dansguardian/languages/portuguese/messages
99
etc/dansguardian/languages/portuguese/messages
100
etc/dansguardian/languages/portuguese/messagesaccents
100
etc/dansguardian/languages/portuguese/template.html
101
etc/dansguardian/languages/portuguese/template.html
101
etc/dansguardian/languages/swedish/messages
102
etc/dansguardian/languages/swedish/messages
102
etc/dansguardian/languages/swedish/template.html
103
etc/dansguardian/languages/swedish/template.html
Lines 104-109 Link Here
104
etc/dansguardian/languages/turkish/template.html
105
etc/dansguardian/languages/turkish/template.html
105
etc/dansguardian/languages/ukenglish/messages
106
etc/dansguardian/languages/ukenglish/messages
106
etc/dansguardian/languages/ukenglish/template.html
107
etc/dansguardian/languages/ukenglish/template.html
108
etc/dansguardian/languages/spanish/messages
109
etc/dansguardian/languages/spanish/template.html
110
etc/dansguardian/languages/slovak/messages
111
etc/dansguardian/languages/slovak/template.html
112
etc/dansguardian/languages/russian-1251/messages
113
etc/dansguardian/languages/russian-1251/template.html
107
%%PHRASELISTS%%etc/dansguardian/phraselists/chat/weighted
114
%%PHRASELISTS%%etc/dansguardian/phraselists/chat/weighted
108
%%PHRASELISTS%%etc/dansguardian/phraselists/drugadvocacy/weighted
115
%%PHRASELISTS%%etc/dansguardian/phraselists/drugadvocacy/weighted
109
%%PHRASELISTS%%etc/dansguardian/phraselists/dutchbadwords/weighted
116
%%PHRASELISTS%%etc/dansguardian/phraselists/dutchbadwords/weighted
Lines 127-133 Link Here
127
%%PHRASELISTS%%etc/dansguardian/phraselists/violence/weighted
134
%%PHRASELISTS%%etc/dansguardian/phraselists/violence/weighted
128
%%PHRASELISTS%%etc/dansguardian/phraselists/warezhacking/weighted
135
%%PHRASELISTS%%etc/dansguardian/phraselists/warezhacking/weighted
129
%%PHRASELISTS%%etc/dansguardian/phraselists/weapons/weighted
136
%%PHRASELISTS%%etc/dansguardian/phraselists/weapons/weighted
130
etc/rc.d/start-dg.sh
131
sbin/dansguardian
137
sbin/dansguardian
132
@dirrm etc/dansguardian/languages/arspanish
138
@dirrm etc/dansguardian/languages/arspanish
133
@dirrm etc/dansguardian/languages/bulgarian
139
@dirrm etc/dansguardian/languages/bulgarian
Lines 138-144 Link Here
138
@dirrm etc/dansguardian/languages/dutch
144
@dirrm etc/dansguardian/languages/dutch
139
@dirrm etc/dansguardian/languages/french
145
@dirrm etc/dansguardian/languages/french
140
@dirrm etc/dansguardian/languages/german
146
@dirrm etc/dansguardian/languages/german
141
@dirrm etc/dansguardian/languages/german2
142
@dirrm etc/dansguardian/languages/hebrew
147
@dirrm etc/dansguardian/languages/hebrew
143
@dirrm etc/dansguardian/languages/indonesian
148
@dirrm etc/dansguardian/languages/indonesian
144
@dirrm etc/dansguardian/languages/italian
149
@dirrm etc/dansguardian/languages/italian
Lines 146-151 Link Here
146
@dirrm etc/dansguardian/languages/mxspanish
151
@dirrm etc/dansguardian/languages/mxspanish
147
@dirrm etc/dansguardian/languages/polish
152
@dirrm etc/dansguardian/languages/polish
148
@dirrm etc/dansguardian/languages/portuguese
153
@dirrm etc/dansguardian/languages/portuguese
154
@dirrm etc/dansguardian/languages/russian-1251
155
@dirrm etc/dansguardian/languages/slovak
156
@dirrm etc/dansguardian/languages/spanish
149
@dirrm etc/dansguardian/languages/swedish
157
@dirrm etc/dansguardian/languages/swedish
150
@dirrm etc/dansguardian/languages/turkish
158
@dirrm etc/dansguardian/languages/turkish
151
@dirrm etc/dansguardian/languages/ukenglish
159
@dirrm etc/dansguardian/languages/ukenglish

Return to bug 94802