aboutsummaryrefslogtreecommitdiff
path: root/www/privoxy/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-12-06 08:52:27 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-12-06 08:52:27 +0000
commita3a66c65f8eb5402446364896e14ac9265ba5035 (patch)
tree49b333e6a7125ec0da4899c5c07e1f23be48f5a7 /www/privoxy/Makefile
parentcac12ac2695bf2c015e403ca701c69e280f9c998 (diff)
Notes
Diffstat (limited to 'www/privoxy/Makefile')
-rw-r--r--www/privoxy/Makefile45
1 files changed, 39 insertions, 6 deletions
diff --git a/www/privoxy/Makefile b/www/privoxy/Makefile
index f0eb9c4862f2..202339707818 100644
--- a/www/privoxy/Makefile
+++ b/www/privoxy/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= privoxy
-PORTVERSION= 3.0.3
-PORTREVISION= 5
+PORTVERSION= 3.0.6
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ijbswa
@@ -26,14 +25,47 @@ SUB_FILES= pkg-message
MAKEFILE= GNUmakefile
+# privoxy-devel is the development release available at the Privoxy website.
+# It's not (yet) part of the FreeBSD ports collection.
+CONFLICTS= privoxy-devel-[0-9]*
+
MAN1= privoxy.1
+OPTIONS= FORCE "Allows to optionally bypass blocks" On \
+ TOGGLE "Support for remote toggling" On \
+ EDITOR "Enable webbased action editor" On \
+ DEBUG "Build with debugging symbols" Off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_FORCE)
+CONFIGURE_ARGS+= --disable-force
+.endif
+
+.if defined(WITHOUT_TOGGLE)
+CONFIGURE_ARGS+= --disable-toggle
+.endif
+
+.if defined(WITHOUT_EDITOR)
+CONFIGURE_ARGS+= --disable-editor
+.endif
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --with-debug
+.endif
+
post-patch:
${REINPLACE_CMD} \
-e 's,^\(confdir\) \.,\1 ${PREFIX}/etc/privoxy,' \
-e 's,^\(logdir\) \.,\1 /var/log/privoxy,' \
-e 's,^\(actionsfile user\),#\1,' \
${WRKSRC}/config
+.if !defined(NOPORTDOCS)
+ ${REINPLACE_CMD} \
+ -e 's,^#\(user-manual\) http://www.privoxy.org/user-manual/,\1 ${PREFIX}/share/doc/privoxy-manual,' \
+ ${WRKSRC}/config
+
+.endif
pre-configure:
@cd ${WRKSRC}; ${AUTOHEADER}
@@ -50,11 +82,12 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/etc/privoxy
.endfor
@${INSTALL_MAN} ${WRKSRC}/privoxy.1 ${MANPREFIX}/man/man1
+# @${MKDIR} ${PREFIX}/share/examples/privoxy
+# @${INSTALL_DATA} ${WRKSRC}/user.action ${PREFIX}/share/examples/privoxy
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/privoxy-manual
- @if [ -d ${WRKSRC}/doc/webserver/user-manual ]; then \
- ${INSTALL_DATA} ${WRKSRC}/doc/webserver/user-manual/[a-z]* ${PREFIX}/share/doc/privoxy-manual; \
- fi
+ ${INSTALL_DATA} ${WRKSRC}/doc/webserver/user-manual/[a-z]* ${PREFIX}/share/doc/privoxy-manual
+ ${INSTALL_DATA} ${WRKSRC}/doc/webserver/p_doc.css ${PREFIX}/share/doc/privoxy-manual
.endif
post-install:
@@ -66,4 +99,4 @@ post-install:
${CHMOD} 0750 /var/run/privoxy
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>