summaryrefslogtreecommitdiff
path: root/www/privoxy+ipv6/Makefile
blob: 07b78eefc13253fcf4ad4cbc0867c4f7faeab4da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:	privoxy+ipv6
# Date created:				17 June 2003
# Whom:					Lars Eggert
#
# $FreeBSD$
#

PORTNAME=	privoxy+ipv6
PORTVERSION=	20030523
PORTREVISION=	1
CATEGORIES=	www ipv6
MASTER_SITES=	ftp://ftp.deepspace6.net/pub/ds6/sources/privoxy/
DISTNAME=	privoxy_CVS_${PORTVERSION}_ipv6_5

MAINTAINER=	larse@isi.edu
COMMENT=	Privoxy is a web proxy with advanced filtering capabilities

WRKSRC=		${WRKDIR}/privoxy

ETCDIR=		${PREFIX}/etc/privoxy
USER=		nobody
GROUP=		nobody
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME:S/+ipv6//}

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_AUTOHEADER=	yes
USE_REINPLACE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--with-user=${USER} --with-group=${GROUP} \
		--sysconfdir=${ETCDIR} --localstatedir=/var

MAKEFILE=	GNUmakefile

MAN1=		privoxy.1

post-install:
	@for file in config user.action; do \
		if [ ! -f ${ETCDIR}/$$file ]; then \
			${CP} ${ETCDIR}/$$file.sample ${ETCDIR}/$$file; \
			${CHOWN} ${USER}:${GROUP} ${ETCDIR}/$$file; \
			${CHMOD} ug+rw ${ETCDIR}/$$file; \
		fi; \
	done

.include <bsd.port.mk>