summaryrefslogtreecommitdiffstats
path: root/www/privoxy+ipv6/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/privoxy+ipv6/Makefile')
-rw-r--r--www/privoxy+ipv6/Makefile32
1 files changed, 30 insertions, 2 deletions
diff --git a/www/privoxy+ipv6/Makefile b/www/privoxy+ipv6/Makefile
index e7e7fde..499a229 100644
--- a/www/privoxy+ipv6/Makefile
+++ b/www/privoxy+ipv6/Makefile
@@ -16,6 +16,8 @@ MAINTAINER= john@essenz.com
WRKSRC= ${WRKDIR}/privoxy-3.0.0-stable
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
USE_GMAKE= yes
USE_AUTOCONF= yes
USE_REINPLACE= yes
@@ -25,10 +27,36 @@ MAKEFILE= GNUmakefile
MAN1= privoxy.1
post-patch:
- @${REINPLACE_CMD} -e 's,/usr/local,$${PREFIX},' \
- ${WRKSRC}/GNUmakefile.in
+ ${REINPLACE_CMD} \
+ -e 's,^\(confdir\) \.,\1 ${PREFIX}/etc/privoxy,' \
+ -e 's,^\(logdir\) \.,\1 /tmp,' \
+ -e 's,^\(actionsfile standard\),#\1,' \
+ -e 's,^\(actionsfile user\),#\1,' \
+ ${WRKSRC}/config
pre-configure:
@(cd ${WRKSRC}; autoheader${USE_AUTOCONF_VER})
+pre-install:
+ @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
+ ${PKGDIR}/pkg-message.in > ${PKGMESSAGE}
+
+do-install:
+ @${MKDIR} ${PREFIX}/etc/privoxy/templates
+ @${INSTALL_PROGRAM} ${WRKSRC}/privoxy ${PREFIX}/sbin
+ @${INSTALL_DATA} ${WRKSRC}/templates/[a-z]* ${PREFIX}/etc/privoxy/templates
+.for file in config default.action default.filter trust
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/etc/privoxy
+.endfor
+ @${INSTALL_MAN} ${WRKSRC}/privoxy.1 ${MANPREFIX}/man/man1
+.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
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud