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


1.15
date	2013.01.08.19.57.39;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.12.10.19.24.06;	author svnexp;	state Exp;
branches;
next	1.13;

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

1.12
date	2012.08.31.12.04.07;	author az;	state Exp;
branches;
next	1.11;

1.11
date	2012.06.29.16.36.01;	author az;	state Exp;
branches;
next	1.10;

1.10
date	2010.04.17.20.19.05;	author sylvio;	state Exp;
branches;
next	1.9;

1.9
date	2010.02.11.22.30.25;	author sylvio;	state Exp;
branches;
next	1.8;

1.8
date	2009.11.27.01.37.18;	author sylvio;	state Exp;
branches;
next	1.7;

1.7
date	2009.10.12.15.18.03;	author yzlin;	state Exp;
branches;
next	1.6;

1.6
date	2009.09.19.09.51.48;	author erwin;	state Exp;
branches;
next	1.5;

1.5
date	2009.09.16.02.17.45;	author lippe;	state Exp;
branches;
next	1.4;

1.4
date	2006.04.04.10.56.53;	author novel;	state Exp;
branches;
next	1.3;

1.3
date	2006.03.30.08.17.43;	author novel;	state Exp;
branches;
next	1.2;

1.2
date	2006.01.25.06.13.28;	author novel;	state Exp;
branches;
next	1.1;

1.1
date	2005.11.11.22.00.24;	author pav;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310107
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310107 | sylvio | 2013-01-08 19:31:30 +0000 (Tue, 08 Jan 2013) | 2 lines
## SVN ##
## SVN ## - Update to 3.2.11
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Elisey Savateev <b3k@@mail.ru>
# $FreeBSD: head/www/rejik/Makefile 310107 2013-01-08 19:31:30Z sylvio $

PORTNAME=	rejik
PORTVERSION=	3.2.11
CATEGORIES=	www
MASTER_SITES=	http://www.rejik.ru/download/ \
		http://bio3k.softboard.ru/uploads/arch/
DISTNAME=	redirector-${PORTVERSION}
EXTRACT_SUFX=	.tgz
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	sylvio@@FreeBSD.org
COMMENT=	A squid redirector used for blocking unwanted content

LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
RUN_DEPENDS=	squid:${PORTSDIR}/www/squid

PLIST_SUB=	INSTALL_DIR=${INSTALL_DIR}
SUB_LIST=	INSTALL_PATH=${INSTALL_PATH} SQUID_USER=${SQUID_USER} SQUID_GROUP=${SQUID_GROUP}
SUB_FILES=	pkg-message

WRKSRC=		${WRKDIR}/${DISTNAME}

OPTIONS_DEFINE=	BAN DBL WWW

OPTIONS_DEFAULT=BAN WWW

BAN_DESC=	With banlists
DBL_DESC=	With DBL scripts
WWW_DESC=	With error pages

.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

# Redifine this if you need
SQUID_USER?=	squid
SQUID_GROUP?=	squid
INSTALL_DIR?=	${PORTNAME}
INSTALL_PATH?=	${PREFIX}/${INSTALL_DIR}

.if ${PORT_OPTIONS:MBAN}
DISTFILES+=	banlists-2.x.x.tgz
PLIST_SUB+=	BAN=""
.else
PLIST_SUB+=	BAN="@@comment "
.endif

.if ${PORT_OPTIONS:MWWW}
DISTFILES+=	squid-like-www-en.tgz
PLIST_SUB+=	WWW=""
.else
PLIST_SUB+=	WWW="@@comment "
.endif

.if ${PORT_OPTIONS:MDBL}
DISTFILES+=	dbl-2.0.tgz
USE_PERL5_RUN=	yes
RUN_DEPENDS+=	p5-Text-Iconv>=0:${PORTSDIR}/converters/p5-Text-Iconv \
		p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
		wget:${PORTSDIR}/ftp/wget
PLIST_SUB+=	DBL=""
.else
PLIST_SUB+=	DBL="@@comment "
.endif

post-extract:
	@@${ECHO_MSG} "===>  ----------------------------------------------"
	@@${ECHO_MSG} "===>  Make sure that squid runs under user squid"
	@@${ECHO_MSG} "===>  and group squid. If not, redefine SQUID_USER"
	@@${ECHO_MSG} "===>  and SQUID_GROUP."
	@@${ECHO_MSG} "===>  ----------------------------------------------"

post-patch:
	@@${REINPLACE_CMD} -e 's|nobody|${SQUID_USER}|g; s|nogroup|${SQUID_GROUP}|g; \
		s|/usr/local/rejik3|${INSTALL_PATH}|g' \
		${WRKSRC}/Makefile
	@@${REINPLACE_CMD} -e 's|/usr/local/rejik3|${INSTALL_PATH}|g' \
		${WRKSRC}/vars.h ${WRKSRC}/redirector.conf.dist

post-install:
	@@[ -f ${INSTALL_PATH}/redirector.conf ] || \
		${CP} -p ${INSTALL_PATH}/redirector.conf.dist ${INSTALL_PATH}/redirector.conf
.if !defined(WITHOUT_BAN)
.if !exists(${EXAMPLESDIR})
	@@${MKDIR} ${EXAMPLESDIR}
.endif
	@@${CP} -R ${WRKDIR}/banlists ${EXAMPLESDIR}
.endif
.if defined(WITH_DBL)
	@@${REINPLACE_CMD} -e 's|/usr/bin/wget|${LOCALBASE}/bin/wget|g ; \
		s|/usr/local/rejik3|${INSTALL_PATH}|g' \
		${WRKDIR}/dbl/Update ${WRKDIR}/dbl/Update.Fast ${WRKDIR}/dbl/dbl_expand
	@@${RM} ${WRKDIR}/dbl/*.bak
	@@${CP} ${WRKDIR}/dbl/Update ${WRKDIR}/dbl/Update.dist
	@@${CP} ${WRKDIR}/dbl/Update.Fast ${WRKDIR}/dbl/Update.Fast.dist
	@@${CP} ${WRKDIR}/dbl/dbl_expand ${WRKDIR}/dbl/dbl_expand.dist
	@@${CP} -Rn ${WRKDIR}/dbl ${INSTALL_PATH}
	@@${CHOWN} -R ${SQUID_USER}:${SQUID_GROUP} ${INSTALL_PATH}/dbl
	@@[ -f ${INSTALL_PATH}/dbl/Update ] || \
		${CP} -p ${INSTALL_PATH}/dbl/Update.dist ${INSTALL_PATH}/dbl/Update
	@@[ -f ${INSTALL_PATH}/dbl/Update.Fast ] || \
		${CP} -p ${INSTALL_PATH}/dbl/Update.Fast.dist ${INSTALL_PATH}/dbl/Update.Fast
	@@[ -f ${INSTALL_PATH}/dbl/dbl_expand ] || \
		${CP} -p ${INSTALL_PATH}/dbl/dbl_expand.dist ${INSTALL_PATH}/dbl/dbl_expand
.endif
.if !defined(WITHOUT_WWW)
.if !exists(${EXAMPLESDIR})
	@@${MKDIR} ${EXAMPLESDIR}
.endif
	@@${CP} -R ${WRKDIR}/squid-like-www-en ${EXAMPLESDIR}
.endif

	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308630
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308630 | mm | 2012-12-10 19:11:11 +0000 (Mon, 10 Dec 2012) | 4 lines
## SVN ##
## SVN ## Update PCRE to 8.32
## SVN ## Introduces the UTF-32 library pcre32
## SVN ## Bump PORTREVISION in dependent ports
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 2
a2 6
# New ports collection makefile for:	rejik
# Date created:				29 October 2005
# Whom:					Elisey Savateev <b3k@@mail.ru>
#
# $FreeBSD: head/www/rejik/Makefile 308630 2012-12-10 19:11:11Z mm $
#
d5 1
a5 2
PORTVERSION=	3.2.10
PORTREVISION=	1
d25 1
a25 3
OPTIONS=	BAN	"With banlists"	on \
		DBL	"With DBL scripts"	off \
		WWW	"With error pages"	on \
d27 7
d42 1
a42 1
.if !defined(WITHOUT_BAN)
d49 1
a49 1
.if !defined(WITHOUT_WWW)
d56 1
a56 1
.if defined(WITH_DBL)
@


1.13
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/www/rejik/Makefile 303418 2012-08-31 12:04:07Z az $
d10 1
@


1.12
log
@SVN rev 303418 on 2012-08-31 12:04:07Z by az

- Update to version 3.2.10

PR:		ports/170601
Submitted by:	Eugene Grosbein <egrosbein@@rdtc.ru>
Approved by:	maintainer (timeout)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.11
log
@- Remove SITE_PERL from *_DEPENDS

Approved by: portmgr@@ (bapt@@)
@
text
@d9 1
a9 1
PORTVERSION=	3.2.6
d27 1
a27 1
WRKSRC=		${WRKDIR}/redirector
@


1.10
log
@- Update to 3.2.6

Approved by:	itetcu (mentor, implicit)
@
text
@d58 2
a59 2
RUN_DEPENDS+=	${SITE_PERL}/mach/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv \
		${SITE_PERL}/mach/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
@


1.9
log
@- Update to 3.2.5

Approved by:	itetcu (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	3.2.5
d27 2
@


1.8
log
@- Update to 3.2.4
- Update my address mail to FreeBSD

Approved by:	miwi (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	3.2.4
@


1.7
log
@- Update to 3.2.3
- Pass maintainership to submitter

PR:		ports/139433
Submitted by:	Sylvio Cesar <scjamorim AT bsd.com.br>
Approved by:	rafan (co-mentor)
@
text
@d9 1
a9 1
PORTVERSION=	3.2.3
d17 1
a17 1
MAINTAINER=	scjamorim@@bsd.com.br
@


1.6
log
@Reset maintainership

Submitted by:	"Elisey O. Savateev" <b3k@@mail.ru> (maintainer)
Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	3.2.2
d12 1
a12 1
				http://bio3k.softboard.ru/uploads/arch/
d15 1
a15 1
DISTFILES=		${DISTNAME}${EXTRACT_SUFX}
d17 1
a17 1
MAINTAINER=	ports@@FreeBSD.org
@


1.5
log
@- Update to 3.2.2.

PR:		ports/138219
Submitted by:	Sylvio Cesar <scjamorim@@bsd.com.br>
Approved by:	maintainer timeout (>2 weeks)
Feature safe:	yes
@
text
@d17 1
a17 1
MAINTAINER=	b3k@@mail.ru
@


1.4
log
@- Fix build failure on 4.x [1]
- Fix overwriting of Update, Update.Fast and dbl_expand files while
  upgrading (with WITH_DBL=yes)

PR:		95300
Submitted by:	Elisey O. Savateev (maintainer)
Reported by:	pointyhat via kris [1]
@
text
@d9 1
a9 2
PORTVERSION=	3.2.1
PORTREVISION=	1
@


1.3
log
@- Update to 3.2.1
- Error pages and banlists now installs in ${EXAMPLESDIR}
- Improved pkg-plist
- Minor cleanups in port Makefile

PR:		94042
Submitted by:	Elisey O. Savateev (maintainer)
@
text
@d10 1
a16 1
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
d86 1
a86 1
	@@${TAR} -xf ${DISTDIR}/banlists-2.x.x.tgz -C ${EXAMPLESDIR}
a88 2
	@@${TAR} -xf ${DISTDIR}/dbl-2.0.tgz -C ${INSTALL_PATH}
	@@${CHOWN} -R ${SQUID_USER}:${SQUID_GROUP} ${INSTALL_PATH}/dbl
d91 13
a103 2
		${INSTALL_PATH}/dbl/Update ${INSTALL_PATH}/dbl/Update.Fast ${INSTALL_PATH}/dbl/dbl_expand
	@@${RM} ${INSTALL_PATH}/dbl/*.bak
d109 1
a109 1
	@@${TAR} -xf ${DISTDIR}/squid-like-www-en.tgz -C ${EXAMPLESDIR}
@


1.2
log
@- squid-like-www-en.tgz has been updated (checksum changed, the change is
  not harmful)
- Add an additional site to MASTER_SITES
- Minor cleanups

PR:		92180
Submitted by:	Elisey Savateev (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	3.2.0
PORTREVISION=	1
d15 1
a15 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
d24 2
a25 15
USE_REINPLACE=	yes
WRKSRC=		${WRKDIR}/redirector

# Redifine this if you need
SQUID_USER?=	squid
SQUID_GROUP?=	squid
WWW_USER?=	www
WWW_GROUP?=	www
WWW_DIR?=	www
WWW_PATH?=	${PREFIX}/${WWW_DIR}
INSTALL_DIR?=	${PORTNAME}
INSTALL_PATH?=	${PREFIX}/${INSTALL_DIR}

PLIST_SUB=	WWW_DIR=${WWW_DIR} INSTALL_DIR=${INSTALL_DIR}
SUB_LIST=	WWW_DIR=${WWW_DIR} INSTALL_DIR=${INSTALL_DIR} SQUID_USER=${SQUID_USER} SQUID_GROUP=${SQUID_GROUP}
d34 6
d73 2
a74 3
	@@${REINPLACE_CMD} -e 's|SQUID_USER=nobody|SQUID_USER=${SQUID_USER}|; \
		s|SQUID_GROUP=nogroup|SQUID_GROUP=${SQUID_GROUP}|; \
		s|INSTALL_PATH=/usr/local/rejik3|INSTALL_PATH=${INSTALL_PATH}|' \
d76 2
d80 2
d83 4
a86 2
	@@${TAR} -xzf ${DISTDIR}/banlists-2.x.x.tgz -C ${INSTALL_PATH}
	@@${CHOWN} -R ${SQUID_USER}:${SQUID_GROUP} ${INSTALL_PATH}/banlists
d89 1
a89 1
	@@${TAR} -xzf ${DISTDIR}/dbl-2.0.tgz -C ${INSTALL_PATH}
d91 2
a92 2
	@@${REINPLACE_CMD} -e 's|$WGET="/usr/bin/wget";|$WGET="${LOCALBASE}/wget";| ; \
		s|$dir="/usr/local/rejik3/dbl";|$dir="${INSTALL_PATH}/dbl";|' \
d97 4
a100 3
	@@${TAR} -xzf ${DISTDIR}/squid-like-www-en.tgz -C ${WWW_PATH}
	@@${MV} ${WWW_PATH}/squid-like-www-en ${WWW_PATH}/ban
	@@${CHOWN} -R ${WWW_USER}:${WWW_GROUP} ${WWW_PATH}/ban
@


1.1
log
@Rejik is a squid redirector used for blocking unwanted content basing
on URLs and Perl Compatible Regular Expressions (http://www.pcre.org/).

PR:		ports/88395
Submitted by:	Elisey Savateev <b3k@@mail.ru>
@
text
@d10 1
d12 2
a13 1
MASTER_SITES=	http://www.rejik.ru/download/
d94 4
@

