Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= privoxy |
8 |
PORTNAME= privoxy |
9 |
PORTVERSION= 3.0.12 |
9 |
PORTVERSION= 3.0.16 |
10 |
CATEGORIES= www |
10 |
CATEGORIES= www ipv6 |
11 |
MASTER_SITES= SF/ijbswa/Sources/${PORTVERSION}%20%28stable%29 |
11 |
MASTER_SITES= SF/ijbswa/Sources/${PORTVERSION}%20%28stable%29 |
12 |
DISTNAME= privoxy-${PORTVERSION}-stable-src |
12 |
DISTNAME= privoxy-${PORTVERSION}-stable-src |
13 |
|
13 |
|
Lines 35-61
Link Here
|
35 |
CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/lib \ |
35 |
CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/lib \ |
36 |
CPPFLAGS=-I${LOCALBASE}/include/ |
36 |
CPPFLAGS=-I${LOCALBASE}/include/ |
37 |
|
37 |
|
38 |
OPTIONS= FORCE "Allows to optionally bypass blocks" On \ |
38 |
OPTIONS= ACCEPT_FILTER "Enable support for accf_http(9)" Off \ |
39 |
TOGGLE "Support for remote toggling" On \ |
39 |
DEBUG "Build with debugging symbols" Off \ |
40 |
EDITOR "Allow to enable the webbased action editor" On \ |
40 |
EDITOR "Allow to enable the webbased action editor" On \ |
41 |
DEBUG "Build with debugging symbols" Off |
41 |
FORCE "Allows to optionally bypass blocks" On \ |
|
|
42 |
PRIVOXY_TOOLS "Install Privoxy-Log-Parser, uagen etc." Off \ |
43 |
TOGGLE "Support for remote toggling" On |
42 |
|
44 |
|
43 |
.include <bsd.port.pre.mk> |
45 |
.include <bsd.port.pre.mk> |
44 |
|
46 |
|
45 |
.if defined(WITHOUT_FORCE) |
47 |
.if defined(WITH_ACCEPT_FILTER) |
46 |
CONFIGURE_ARGS+= --disable-force |
48 |
CONFIGURE_ARGS+= --enable-accept-filter |
47 |
.endif |
49 |
.endif |
48 |
|
50 |
|
49 |
.if defined(WITHOUT_TOGGLE) |
51 |
.if defined(WITH_DEBUG) |
50 |
CONFIGURE_ARGS+= --disable-toggle |
52 |
CONFIGURE_ARGS+= --with-debug |
51 |
.endif |
53 |
.endif |
52 |
|
54 |
|
53 |
.if defined(WITHOUT_EDITOR) |
55 |
.if defined(WITHOUT_EDITOR) |
54 |
CONFIGURE_ARGS+= --disable-editor |
56 |
CONFIGURE_ARGS+= --disable-editor |
55 |
.endif |
57 |
.endif |
56 |
|
58 |
|
57 |
.if defined(WITH_DEBUG) |
59 |
.if defined(WITHOUT_FORCE) |
58 |
CONFIGURE_ARGS+= --with-debug |
60 |
CONFIGURE_ARGS+= --disable-force |
|
|
61 |
.endif |
62 |
|
63 |
.if defined(WITHOUT_TOGGLE) |
64 |
CONFIGURE_ARGS+= --disable-toggle |
65 |
.endif |
66 |
|
67 |
.if defined(WITH_PRIVOXY_TOOLS) |
68 |
USE_PERL5_RUN= yes |
69 |
RUN_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl |
70 |
PLIST_SUB+= PRIVOXY_TOOLS="" |
71 |
.else |
72 |
PLIST_SUB+= PRIVOXY_TOOLS="@comment " |
59 |
.endif |
73 |
.endif |
60 |
|
74 |
|
61 |
post-patch: |
75 |
post-patch: |
Lines 68-75
Link Here
|
68 |
${REINPLACE_CMD} \ |
82 |
${REINPLACE_CMD} \ |
69 |
-e 's,^#\(user-manual\) http://www.privoxy.org/user-manual/,\1 ${DOCSDIR}/user-manual,' \ |
83 |
-e 's,^#\(user-manual\) http://www.privoxy.org/user-manual/,\1 ${DOCSDIR}/user-manual,' \ |
70 |
${WRKSRC}/config |
84 |
${WRKSRC}/config |
71 |
|
|
|
72 |
.endif |
85 |
.endif |
|
|
86 |
${REINPLACE_CMD} \ |
87 |
-e 's,\(/etc/privoxy\),${PREFIX}\1,' ${WRKSRC}/tools/uagen.pl |
88 |
# Effectivly apply revision 1.208 to fix a regression test. |
89 |
${REINPLACE_CMD} \ |
90 |
-e 's,\(-fast-redirects -hide-refer\),\1r,' ${WRKSRC}/default.action.master |
73 |
|
91 |
|
74 |
pre-configure: |
92 |
pre-configure: |
75 |
@cd ${WRKSRC}; ${AUTOHEADER} |
93 |
@cd ${WRKSRC}; ${AUTOHEADER} |
Lines 82-88
Link Here
|
82 |
@${MKDIR} ${PREFIX}/etc/privoxy/templates |
100 |
@${MKDIR} ${PREFIX}/etc/privoxy/templates |
83 |
@${INSTALL_PROGRAM} ${WRKSRC}/privoxy ${PREFIX}/sbin |
101 |
@${INSTALL_PROGRAM} ${WRKSRC}/privoxy ${PREFIX}/sbin |
84 |
@${INSTALL_DATA} ${WRKSRC}/templates/[a-z]* ${PREFIX}/etc/privoxy/templates |
102 |
@${INSTALL_DATA} ${WRKSRC}/templates/[a-z]* ${PREFIX}/etc/privoxy/templates |
85 |
.for defaultfile in default.action default.filter |
103 |
.if defined(WITH_PRIVOXY_TOOLS) |
|
|
104 |
.for privoxy_tool in privoxy-log-parser.pl privoxy-regression-test.pl uagen.pl |
105 |
@${INSTALL_SCRIPT} ${WRKSRC}/tools/${privoxy_tool} ${PREFIX}/bin |
106 |
.endfor |
107 |
.endif |
108 |
.for defaultfile in default.action default.filter regression-tests.action |
86 |
@${INSTALL_DATA} ${WRKSRC}/${defaultfile} ${PREFIX}/etc/privoxy |
109 |
@${INSTALL_DATA} ${WRKSRC}/${defaultfile} ${PREFIX}/etc/privoxy |
87 |
@${CHOWN} privoxy:privoxy ${PREFIX}/etc/privoxy/${defaultfile} |
110 |
@${CHOWN} privoxy:privoxy ${PREFIX}/etc/privoxy/${defaultfile} |
88 |
@${CHMOD} 0444 ${PREFIX}/etc/privoxy/${defaultfile} |
111 |
@${CHMOD} 0444 ${PREFIX}/etc/privoxy/${defaultfile} |
Lines 101-109
Link Here
|
101 |
.endif |
124 |
.endif |
102 |
|
125 |
|
103 |
post-install: |
126 |
post-install: |
104 |
@${MKDIR} /var/log/privoxy |
|
|
105 |
@${CHOWN} privoxy:privoxy /var/log/privoxy |
106 |
@${CHMOD} 0750 /var/log/privoxy |
107 |
@${MKDIR} /var/run/privoxy |
127 |
@${MKDIR} /var/run/privoxy |
108 |
@${CHOWN} privoxy:privoxy /var/run/privoxy |
128 |
@${CHOWN} privoxy:privoxy /var/run/privoxy |
109 |
@${CHMOD} 0750 /var/run/privoxy |
129 |
@${CHMOD} 0750 /var/run/privoxy |