head	1.13;
access;
symbols
	RELEASE_8_3_0:1.10
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.9
	RELEASE_8_2_0:1.9
	RELEASE_6_EOL:1.8
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.8
	RELEASE_8_0_0:1.8
	RELEASE_7_2_0:1.8
	RELEASE_7_1_0:1.6
	RELEASE_6_4_0:1.6
	RELEASE_5_EOL:1.6
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.4
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3;
locks; strict;
comment	@# @;


1.13
date	2013.03.09.01.57.59;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.12.16.06.16.59;	author svnexp;	state Exp;
branches;
next	1.11;

1.11
date	2012.11.17.06.02.28;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2011.12.27.15.14.22;	author ehaupt;	state Exp;
branches;
next	1.9;

1.9
date	2011.01.25.19.59.33;	author ehaupt;	state Exp;
branches;
next	1.8;

1.8
date	2009.03.30.15.08.30;	author ehaupt;	state Exp;
branches;
next	1.7;

1.7
date	2009.03.27.09.53.35;	author ehaupt;	state Exp;
branches;
next	1.6;

1.6
date	2008.03.27.19.27.33;	author ehaupt;	state Exp;
branches;
next	1.5;

1.5
date	2007.09.08.01.10.25;	author linimon;	state Exp;
branches;
next	1.4;

1.4
date	2006.06.01.12.13.53;	author ehaupt;	state Exp;
branches;
next	1.3;

1.3
date	2006.02.19.11.39.13;	author ehaupt;	state Exp;
branches;
next	1.2;

1.2
date	2005.10.06.11.57.10;	author ehaupt;	state Exp;
branches;
next	1.1;

1.1
date	2005.08.29.17.29.39;	author garga;	state Exp;
branches;
next	;


desc
@@


1.13
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313649
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Emanuel Haupt <ehaupt@@critical.ch>
# $FreeBSD: head/www/bannerfilter/Makefile 313649 2013-03-08 14:00:30Z ehaupt $

PORTNAME=	bannerfilter
PORTVERSION=	1.31
CATEGORIES=	www
MASTER_SITES=	http://phroggy.com/files/unix/ \
		CRITICAL

MAINTAINER=	ehaupt@@FreeBSD.org
COMMENT=	Squid redirect script for filtering web banners

LICENSE=	GPLv2

RUN_DEPENDS=	squid:${PORTSDIR}/www/squid

USE_PERL5=	yes
NO_BUILD=	yes

WWW_ROOT?=	www
PLIST_SUB+=	WWW_ROOT="${WWW_ROOT}"
CONFIG_FILES=	bannerfilter.conf banners.data banners.local.data \
		exceptions.data exceptions.local.data frames.data \
		frames.local.data popups.data popups.local.data

post-patch:
	@@${REINPLACE_CMD} -e \
		's|/usr/local/etc|${PREFIX}/etc|; s|/usr/bin/perl|${PERL}|' \
		${WRKSRC}/redirector.pl
	@@${REINPLACE_CMD} -e \
		's|^;\ \(DATA\ =\ \).*|\1${PREFIX}/etc/${PORTNAME}/|' \
		${WRKSRC}/${PORTNAME}.conf
	@@${REINPLACE_CMD} -e \
		's|^\(CONFIGDIR=\).*|\1"${PREFIX}/etc/${PORTNAME}"|' \
		${WRKSRC}/update.sh

do-install:
	${MKDIR} ${PREFIX}/libexec/${PORTNAME}
	${INSTALL_SCRIPT} ${WRKSRC}/redirector.pl ${PREFIX}/libexec/${PORTNAME}
	${INSTALL_SCRIPT} ${WRKSRC}/update.sh \
		${PREFIX}/bin/update-bannerfilter-rules
	${MKDIR} ${PREFIX}/etc/${PORTNAME}
.for f in ${CONFIG_FILES}
	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/${PORTNAME}/${f}.default
.if !exists(${PREFIX}/etc/${PORTNAME}/${f})
	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/${PORTNAME}
.endif
.endfor
	${CP} -R ${WRKSRC}/www ${PREFIX}/${WWW_ROOT}/${PORTNAME}

post-install:
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "==========================================================================="
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "Please add the following redirector config directive to your squid.conf:"
	@@${ECHO_MSG} "   redirect_program ${PREFIX}/libexec/bannerfilter/redirector.pl"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "Make sure ${PREFIX}/${WWW_ROOT}/${PORTNAME} is available under"
	@@${ECHO_MSG} "   http://localhost/${PORTNAME}"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "==========================================================================="
	@@${ECHO_MSG} ""

.include <bsd.port.mk>
@


1.12
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308985
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308985 | az | 2012-12-16 06:12:28 +0000 (Sun, 16 Dec 2012) | 5 lines
## SVN ##
## SVN ## - Set default perl version for ports which currently using
## SVN ##   (5.x+ and x < 12) scheme.
## SVN ##
## SVN ## Approved by: bapt@@ (portmgr@@)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 2
a2 6
# New ports collection makefile for:	bannerfilter
# Date created:				14 Aug 2005
# Whom:					Emanuel Haupt <ehaupt@@critical.ch>
#
# $FreeBSD: head/www/bannerfilter/Makefile 308985 2012-12-16 06:12:28Z az $
#
d11 1
a11 1
COMMENT=	A squid redirect script for filtering web banners
@


1.11
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/www/bannerfilter/Makefile 300897 2012-07-14 14:29:18Z beat $
d21 1
a21 1
USE_PERL5=	5.8.6+
@


1.10
log
@Pacify portlint

Feature safe:	yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.9
log
@Add LICENSE and remove MD5 sums.

Feature safe:	yes
@
text
@d17 2
a29 2
LICENSE=	GPLv2

@


1.8
log
@Remove MAKE_JOBS_SAFE, port has no build target.
@
text
@d28 2
@


1.7
log
@Mark MAKE_JOBS_SAFE
@
text
@a20 1
MAKE_JOBS_SAFE=	yes
@


1.6
log
@Use MASTER_SITE_CRITICAL
@
text
@d21 1
@


1.5
log
@Welcome bsd.perl.mk.  Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
@
text
@d12 1
a12 2
		http://critical.ch/distfiles/ \
		http://energy.critical.ch/distfiles/
@


1.4
log
@Add an additional mirror.
@
text
@d20 1
a20 1
USE_PERL5=	yes
a28 6
.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500806
IGNORE=		needs Perl 5.8.6 or above (lang/perl5.8)
.endif

d67 1
a67 1
.include <bsd.port.post.mk>
@


1.3
log
@Remove deprecated USE_REINPLACE
@
text
@d11 3
a13 1
MASTER_SITES=	http://phroggy.com/files/unix/
@


1.2
log
@Change MAINTAINER address for my ports.

Approved by:	novel (mentor)
@
text
@a18 1
USE_REINPLACE=	yes
@


1.1
log
@Add bannerfilter 1.31, a squid redirect script for filtering web
banners.

PR:		ports/84915
Submitted by:	Emanuel Haupt <ehaupt@@critical.ch>
@
text
@d13 1
a13 1
MAINTAINER=	ehaupt@@critical.ch
@

