aboutsummaryrefslogtreecommitdiff
path: root/www/privoxy+ipv6/Makefile
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2002-11-27 13:35:52 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2002-11-27 13:35:52 +0000
commitee1a1b76bf102303415a9d58170a6b30bc8538ac (patch)
tree7a766fdbd1904230d89b2d4557de9ac4c803ab76 /www/privoxy+ipv6/Makefile
parentd7b1376e4bd06abe0e2ea561bfa0ee0657920a8c (diff)
downloadports-ee1a1b76bf102303415a9d58170a6b30bc8538ac.tar.gz
ports-ee1a1b76bf102303415a9d58170a6b30bc8538ac.zip
Notes
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 e7e7fdeb3d7e..499a2293c98d 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>