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

(-)www/privoxy/Makefile (-4 / +4 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	privoxy
8
PORTNAME=	privoxy
9
PORTVERSION=	3.0.10
9
PORTVERSION=	3.0.11
10
CATEGORIES=	www
10
CATEGORIES=	www
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	ijbswa
12
MASTER_SITE_SUBDIR=	ijbswa
Lines 83-95 Link Here
83
	@${MKDIR} ${PREFIX}/etc/privoxy/templates
83
	@${MKDIR} ${PREFIX}/etc/privoxy/templates
84
	@${INSTALL_PROGRAM} ${WRKSRC}/privoxy ${PREFIX}/sbin
84
	@${INSTALL_PROGRAM} ${WRKSRC}/privoxy ${PREFIX}/sbin
85
	@${INSTALL_DATA} ${WRKSRC}/templates/[a-z]* ${PREFIX}/etc/privoxy/templates
85
	@${INSTALL_DATA} ${WRKSRC}/templates/[a-z]* ${PREFIX}/etc/privoxy/templates
86
.for defaultfile in default.action standard.action default.filter
86
.for defaultfile in default.action default.filter
87
	@${INSTALL_DATA} ${WRKSRC}/${defaultfile} ${PREFIX}/etc/privoxy
87
	@${INSTALL_DATA} ${WRKSRC}/${defaultfile} ${PREFIX}/etc/privoxy
88
	@${CHOWN} privoxy:privoxy ${PREFIX}/etc/privoxy/${defaultfile}
88
	@${CHOWN} privoxy:privoxy ${PREFIX}/etc/privoxy/${defaultfile}
89
	@${CHMOD} 0640 ${PREFIX}/etc/privoxy/${defaultfile}
89
	@${CHMOD} 0444 ${PREFIX}/etc/privoxy/${defaultfile}
90
.endfor
90
.endfor
91
	@${MKDIR} ${EXAMPLESDIR}
91
	@${MKDIR} ${EXAMPLESDIR}
92
.for examplefile in config trust user.action
92
.for examplefile in config match-all.action trust user.action
93
	@${INSTALL_DATA} ${WRKSRC}/${examplefile} ${EXAMPLESDIR}/
93
	@${INSTALL_DATA} ${WRKSRC}/${examplefile} ${EXAMPLESDIR}/
94
	@${CHOWN} privoxy:privoxy ${EXAMPLESDIR}/${examplefile}
94
	@${CHOWN} privoxy:privoxy ${EXAMPLESDIR}/${examplefile}
95
	@${CHMOD} 0640 ${EXAMPLESDIR}/${examplefile}
95
	@${CHMOD} 0640 ${EXAMPLESDIR}/${examplefile}
(-)www/privoxy/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (privoxy-3.0.10-stable-src.tar.gz) = 01281017f28be2c7133124d1768da364
1
MD5 (privoxy-3.0.11-stable-src.tar.gz) = 438d048de32d80ca7b17e72bdf5c7c3f
2
SHA256 (privoxy-3.0.10-stable-src.tar.gz) = 3d9f9f56482012ddab396caf73f4c401746a4eeebd6c763b04f6108e48a9094f
2
SHA256 (privoxy-3.0.11-stable-src.tar.gz) = cd1a3d2be048cba26ba70b4896709d8a0d2d2bbc0adca4b5a260319674098926
3
SIZE (privoxy-3.0.10-stable-src.tar.gz) = 1957465
3
SIZE (privoxy-3.0.11-stable-src.tar.gz) = 2050049
(-)www/privoxy/files/pkg-message.in (-5 / +4 lines)
Lines 14-24 Link Here
14
  For documentation see:
14
  For documentation see:
15
  %%DOCSDIR%%/user-manual or 'man privoxy'
15
  %%DOCSDIR%%/user-manual or 'man privoxy'
16
16
17
  Note that default.filter, standard.action and
17
  Note that default.filter and default.action get
18
  default.action get overwritten with each Privoxy
18
  overwritten with each Privoxy update. Instead of
19
  update. Instead of changing them you should use
19
  changing them you should use your own action and
20
  your own action and filter files as described in
20
  filter files as described in Privoxy's manual.
21
  Privoxy's manual.
22
21
23
  If you installed Privoxy as package and are using the
22
  If you installed Privoxy as package and are using the
24
  default configuration, you have to make sure the
23
  default configuration, you have to make sure the
(-)www/privoxy/files/privoxy.in (-7 / +16 lines)
Lines 4-10 Link Here
4
#
4
#
5
#
5
#
6
# PROVIDE: privoxy
6
# PROVIDE: privoxy
7
# REQUIRE: NETWORKING
7
# REQUIRE: DAEMON
8
# BEFORE: LOGIN
8
# BEFORE: LOGIN
9
#
9
#
10
# This rc script understands the following variables
10
# This rc script understands the following variables
Lines 34-47 Link Here
34
: ${privoxy_user="privoxy"}
34
: ${privoxy_user="privoxy"}
35
: ${privoxy_pidfile="/var/run/privoxy/privoxy.pid"}
35
: ${privoxy_pidfile="/var/run/privoxy/privoxy.pid"}
36
36
37
start_precmd="if [ ! -e ${privoxy_config} ]; then\
37
config_file_check () {
38
 echo ${privoxy_config} not found. Copying default configuration.;\
38
    if [ ! -e ${privoxy_config} ]; then
39
 cp %%PREFIX%%/share/examples/privoxy/config ${privoxy_config};\
39
        echo config file not found. Copying the example file to ${privoxy_config}.
40
 chown ${privoxy_user}:${privoxy_user} ${privoxy_config};\
40
        cp %%PREFIX%%/share/examples/privoxy/config ${privoxy_config}
41
fi"
41
        chown ${privoxy_user}:${privoxy_user} ${privoxy_config};
42
    fi
43
    actionfile="%%PREFIX%%/etc/privoxy/match-all.action"
44
    if [ ! -e ${actionfile} ]; then
45
        echo ${actionfile} not found. Copying the example file.
46
        cp %%PREFIX%%/share/examples/privoxy/match-all.action ${actionfile}
47
        chown ${privoxy_user}:${privoxy_user} ${actionfile}
48
    fi
49
}
50
51
start_precmd="config_file_check"
42
52
43
command="%%PREFIX%%/sbin/privoxy"
53
command="%%PREFIX%%/sbin/privoxy"
44
command_args="${privoxy_flags} --pidfile ${privoxy_pidfile} ${privoxy_config}"
54
command_args="${privoxy_flags} --pidfile ${privoxy_pidfile} ${privoxy_config}"
45
55
46
run_rc_command "$1"
56
run_rc_command "$1"
47
(-)www/privoxy/pkg-plist (-1 / +1 lines)
Lines 1-7 Link Here
1
sbin/privoxy
1
sbin/privoxy
2
etc/privoxy/default.action
2
etc/privoxy/default.action
3
etc/privoxy/default.filter
3
etc/privoxy/default.filter
4
etc/privoxy/standard.action
5
etc/privoxy/templates/blocked
4
etc/privoxy/templates/blocked
6
etc/privoxy/templates/cgi-error-404
5
etc/privoxy/templates/cgi-error-404
7
etc/privoxy/templates/cgi-error-bad-param
6
etc/privoxy/templates/cgi-error-bad-param
Lines 58-63 Link Here
58
%%PORTDOCS%%%%DOCSDIR%%/user-manual/upgradersnote.html
57
%%PORTDOCS%%%%DOCSDIR%%/user-manual/upgradersnote.html
59
%%PORTDOCS%%%%DOCSDIR%%/user-manual/whatsnew.html
58
%%PORTDOCS%%%%DOCSDIR%%/user-manual/whatsnew.html
60
%%EXAMPLESDIR%%/config
59
%%EXAMPLESDIR%%/config
60
%%EXAMPLESDIR%%/match-all.action
61
%%EXAMPLESDIR%%/trust
61
%%EXAMPLESDIR%%/trust
62
%%EXAMPLESDIR%%/user.action
62
%%EXAMPLESDIR%%/user.action
63
@dirrm %%EXAMPLESDIR%%
63
@dirrm %%EXAMPLESDIR%%

Return to bug 131978