freebsd-ports/www/privoxy+ipv6/Makefile
Tilman Keskinoz ecd279345e Fix autoconf usage
Reported by:	bento
2002-11-30 15:46:51 +00:00

62 lines
1.5 KiB
Makefile

# New ports collection makefile for: privoxy
# Date created: 21 November 2002
# Whom: John von Essen
#
# $FreeBSD$
#
PORTNAME= privoxy
PORTVERSION= 3.0.0
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ijbswa
DISTNAME= privoxy-3.0.0-stable-src
MAINTAINER= john@essenz.com
WRKSRC= ${WRKDIR}/privoxy-3.0.0-stable
PKGMESSAGE= ${WRKDIR}/pkg-message
USE_GMAKE= yes
USE_AUTOCONF_VER= 253
USE_REINPLACE= yes
MAKEFILE= GNUmakefile
MAN1= privoxy.1
post-patch:
${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})
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>