head	1.28;
access;
symbols
	RELEASE_8_3_0:1.22
	RELEASE_9_0_0:1.21
	RELEASE_7_4_0:1.16
	RELEASE_8_2_0:1.16
	RELEASE_6_EOL:1.14
	RELEASE_8_1_0:1.13;
locks; strict;
comment	@# @;


1.28
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.27;

1.27
date	2012.11.17.06.03.07;	author svnexp;	state Exp;
branches;
next	1.26;

1.26
date	2012.09.04.22.27.55;	author ohauer;	state Exp;
branches;
next	1.25;

1.25
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.24;

1.24
date	2012.08.03.15.54.35;	author cs;	state Exp;
branches;
next	1.23;

1.23
date	2012.04.09.15.55.05;	author jmelo;	state Exp;
branches;
next	1.22;

1.22
date	2012.03.06.07.31.50;	author crees;	state Exp;
branches;
next	1.21;

1.21
date	2011.08.20.17.27.51;	author ohauer;	state Exp;
branches;
next	1.20;

1.20
date	2011.04.27.15.36.48;	author jmelo;	state Exp;
branches;
next	1.19;

1.19
date	2011.04.20.21.28.39;	author jmelo;	state Exp;
branches;
next	1.18;

1.18
date	2011.04.20.20.29.54;	author jmelo;	state Exp;
branches;
next	1.17;

1.17
date	2011.04.20.18.42.44;	author jmelo;	state Exp;
branches;
next	1.16;

1.16
date	2011.01.19.17.31.42;	author jmelo;	state Exp;
branches;
next	1.15;

1.15
date	2010.12.16.12.48.42;	author jmelo;	state Exp;
branches;
next	1.14;

1.14
date	2010.09.01.15.17.16;	author jmelo;	state Exp;
branches;
next	1.13;

1.13
date	2010.06.30.01.47.11;	author sylvio;	state Exp;
branches;
next	1.12;

1.12
date	2010.06.29.20.29.18;	author sylvio;	state Exp;
branches;
next	1.11;

1.11
date	2010.06.07.23.50.25;	author sylvio;	state Exp;
branches;
next	1.10;

1.10
date	2010.06.05.20.58.00;	author garga;	state Exp;
branches;
next	1.9;

1.9
date	2010.05.05.00.36.05;	author sahil;	state Exp;
branches;
next	1.8;

1.8
date	2010.04.17.06.57.30;	author sahil;	state Exp;
branches;
next	1.7;

1.7
date	2010.04.13.15.54.47;	author garga;	state Exp;
branches;
next	1.6;

1.6
date	2010.04.09.21.12.08;	author pav;	state Exp;
branches;
next	1.5;

1.5
date	2010.04.07.14.05.48;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2010.04.05.19.25.45;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2010.04.03.10.44.35;	author roam;	state Exp;
branches;
next	1.2;

1.2
date	2010.03.18.21.42.30;	author dougb;	state Exp;
branches;
next	1.1;

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


desc
@@


1.28
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/www/thundercache/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	thundercache
PORTVERSION=	6.1
PORTREVISION=	4
CATEGORIES=	www
MASTER_SITES=	http://www.thundercache.com.br/dist/ \
		http://www.bmsoftware.org/packs/ \
		http://www8.freebsdbrasil.com.br/~eksffa/thunder/ \
		http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \
		${MASTER_SITE_LOCAL}/jmelo
DISTNAME=	thundercache-6.1.201104260900-64bits-fbsd

MAINTAINER=	eksffa@@freebsdbrasil.com.br
COMMENT=	High-performance and high-efficiency caching proxy system

OPTIONS_DEFINE=	DEPENDACK APACHE PHP PGSQL DOCS
OPTIONS_DEFAULT=	DEPENDACK APACHE PHP PGSQK
DEPENDACK_DESC=		I have read and understood the depends needs
APACHE_DESC=		Install apache for reporting viewing
PHP_DESC=		Install PHP for reporting generating
PGSQL_DESC=		Install PostgreSQL (report data storing)

USE_OPENSSL=	yes
USE_BZIP2=	yes

ONLY_FOR_ARCHS=	i386 amd64

USE_RC_SUBR=	thundercache

NO_BUILD=	yes
LICENSE=	commercial
LICENSE_NAME=	commercial
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
LICENSE_TEXT=	Commercial software with shareware license to 50 threads
RESTRICTED=	Commercial software with shareware license to 50 threads

.include <bsd.port.options.mk>

.if ${ARCH} == "i386"
DISTNAME=	thundercache-6.1.201104260900-32bits-fbsd
.endif

WRKSRC=		${WRKDIR}/thunder

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN=	22+
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL=	yes
WANT_PGSQL_VER=	84+
RUN_DEPENDS+=	postgresql-server>=0:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
.endif

.if ${PORT_OPTIONS:MPHP} && ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pgsql.so:${PORTSDIR}/databases/php5-pgsql
.endif

.if ${PORT_OPTIONS:MPHP}
USE_PHP+=	curl pcre bcmath pdo mcrypt mhash session
.endif

LIB_DEPENDS+=	curl.6:${PORTSDIR}/ftp/curl:install

SUB_FILES=	pkg-message log.sh test-deps.sh
SUB_LIST=	"GREP=${GREP}"

show-info:
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "ATTENTION:"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} " It is very important that you carefully read and respect"
	@@${ECHO_MSG} " the special build options for the following depends:"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} " ftp/curl		LIBSSH2=yes OPENSSL=yes PROXY=yes"
	@@${ECHO_MSG} " security/openssl	ZLIB=yes"
	@@${ECHO_MSG} " devel/php5-pcre	BUNDLED_PCRE=yes (for apache20)"
	@@${ECHO_MSG} " postgresql${PGSQL_VER}-server \
					NLS=yes PAM=yes OPTIMIZED_CFLAGS=yes TZDATA=yes"
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} " After you understood it correctly, select DEPENDACK on"
	@@${ECHO_MSG} " the OPTIONS screen. Run ''make config'' to acknowledge"
	@@${ECHO_MSG} ""
.if ! ${PORT_OPTIONS:MDEPENDACK}
	@@${FALSE}
.endif

pre-everything::show-info

do-install:
	@@${CP} -r ${WRKSRC} ${PREFIX}/
	${INSTALL_SCRIPT} ${WRKDIR}/log.sh ${PREFIX}/thunder/sbin/
	@@${MKDIR} -m 755 /var/run/thunder

post-install:
	@@${CAT} ${PKGMESSAGE}
	@@(${CHMOD} +x ${WRKDIR}/test-deps.sh ; \
	if ! ${WRKDIR}/test-deps.sh > /dev/null 2>&1 ; then \
		${ECHO_MSG} "**** FATAL **** " ; \
		${ECHO_MSG} "**** THIS PORT MAY NOT WORK PROPERLY **** " ; \
		${ECHO_MSG} "Some depends are not built with required features." ; \
		${ECHO_MSG} "You must always honor at least the following options" ; \
		${ECHO_MSG} "depends as listed:" ; \
		${ECHO_MSG} "" ; \
		${ECHO_MSG} "ftp/curl	   LIBSSH2=yes OPENSSL=yes PROXY=yes" ; \
		${ECHO_MSG} "" ; \
		${ECHO_MSG} "Type ''make show-info'' to read further information." ; \
		${ECHO_MSG} "" ; \
	fi)

.include <bsd.port.mk>
@


1.27
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/www/thundercache/Makefile 303678 2012-09-04 22:27:55Z ohauer $
d17 6
a22 4
OPTIONS=	DEPENDACK "I have read and understood the depends needs" on \
		APACHE "Install apache for reporting viewing" on \
		PHP "Install PHP for reporting generating" on \
		PGSQL "Install PostgreSQL (report data storing)" on
d38 1
a38 5
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800000
BROKEN=		Won't run on systems version < FreeBSD 8.0-RELEASE
.endif
d46 1
a46 1
.if defined (WITH_APACHE)
d50 1
a50 1
.if defined (WITH_PGSQL)
d56 1
a56 1
.if defined(WITH_PHP) && defined(WITH_PGSQL)
d61 1
a61 1
.if defined(WITH_PHP)
d86 1
a86 1
.if !defined(WITH_DEPENDACK)
d113 1
a113 1
.include <bsd.port.post.mk>
@


1.26
log
@SVN rev 303678 on 2012-09-04 22:27:55Z by ohauer

- unbreak build
  since the port has NO_BUILD set use s/USE_APACHE/USE_APACHE_RUN/

with hat apache@@
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.25
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@a0 4
# New ports collection makefile for:	thundercache
# Date created:		2010-03-15
# Whom:			Patrick Tracanelli <eksffa@@freebsdbrasil.com.br>
#
a1 1
#
d49 1
a49 1
USE_APACHE=	22+
@


1.24
log
@SVN rev 301960 on 2012-08-03 15:54:35Z by cs

Fix typos and make small modifications in COMMENT (according to Porter's
Handbook)

Approved by:	portmgr@@ (implicit)
@
text
@d54 1
a54 1
USE_APACHE=	20+
@


1.23
log
@- Update MASTERSITE.

Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
Feature safe:	yes
@
text
@d20 1
a20 1
COMMENT=	High-performance and high-eficiency caching proxy system
@


1.22
log
@- Set postgresql version 9.0 as default
- Add facility to set minimum/maximum version ranges in WANT_PGSQL_VER
- Remove BROKEN_WITH_PGSQL shim

PR:		ports/165245
Submitted by:	crees (me)
Reviewed by:	exp-runs by pav and erwin
Discussed with:	girgen
@
text
@d12 2
a13 1
MASTER_SITES=	http://www.bmsoftware.org/packs/ \
@


1.21
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d10 1
a10 1
PORTREVISION=	3
d58 1
a58 1
WANT_PGSQL_VER=	84
@


1.20
log
@- Update to build 624.

Submitted by:		Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer via email)
@
text
@d10 1
a10 1
PORTREVISION=	2
d53 1
a53 1
USE_APACHE=	2.0+
@


1.19
log
@- Fix size mismatch.

Submitted by:		maintainer (eksffa@@freebsdbrasil.com.br) by email.
@
text
@d10 1
a10 1
PORTREVISION=	1
d16 1
a16 1
DISTNAME=	thundercache-6.1.201104191500-64bits-fbsd
d47 1
a47 1
DISTNAME=	thundercache-6.1.201104191500-32bits-fbsd
@


1.18
log
@- Remove MANUAL_PACKAGE_BUILDING since pgsql84 is the default now.

PR:			ports/156337
Submitted by:		Olli Hauer <ohauer@@FreeBSD.org>
Approved by:		Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
@
text
@d10 1
@


1.17
log
@- Update to 6.1.

Submitted by:		maintainer (eksffa@@freebsdbrasil.com.br) by email.
@
text
@a38 2
MANUAL_PACKAGE_BUILD=	This port wants PGSQL 8.4, but 8.2 is default and used to build php5-pgsql dependency.

@


1.16
log
@PR:		ports/154146
Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (Maintainer)
Feature safe:	yes
@
text
@d9 1
a9 2
PORTVERSION=	6.0
PORTREVISION=	1
d15 1
a15 1
DISTNAME=	thundercache-6.0.201101191105-64bits-fbsd
d48 1
a48 1
DISTNAME=	thundercache-6.0.201101191105-32bits-fbsd
@


1.15
log
@- Update to 6.0.

PR:			ports/153210
Submitted by:		Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
@
text
@d10 1
d12 1
a12 1
MASTER_SITES=	http://www.bmsoftware.org/freebsd/ \
d16 1
a16 1
DISTNAME=	thundercache-6.0.201010171300-64bits-fbsd
d49 1
a49 1
DISTNAME=	thundercache-6.0.201010171300-32bits-fbsd
@


1.14
log
@- Update to 5.0.

PR:		ports/150190
Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.0
d15 1
a15 1
DISTNAME=	thundercache-5.0.201031081330-64bits-fbsd
d48 1
a48 1
DISTNAME=	thundercache-5.0.201031081330-32bits-fbsd
@


1.13
log
@- Removed line PORTREVISION because port was update.

Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	4.1
d15 1
a15 1
DISTNAME=	thundercache-4.1.201006231050-32bits-fbsd
d47 2
a48 2
.if ${ARCH} == "amd64"
DISTNAME=	thundercache-4.1.201006231050-64bits-fbsd
@


1.12
log
@- Update to 201006231050

PR:		ports/148241
Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
Feature safe:	yes
@
text
@a9 1
PORTREVISION=	1
@


1.11
log
@- Add LICENSE_{NAME,PERM,TEXT} to make bsd.licenses.mk happy
- Fix port (not working 'cos of bsd.licenses.mk complaining about licenses)
- Bump PORTREVISION

PR:		ports/147627
Submitted by: 	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
@
text
@d9 2
a10 2
PORTVERSION=	4.0
PORTREVISION=	6
d13 1
d16 1
a16 1
DISTNAME=	thunder32bits_15042010
d49 1
a49 1
DISTNAME=	thunder64bits_15042010
@


1.10
log
@- Fix port because it was not installing php5-pdo_pgsql depend
- Add php5-pgsql as RUN_DEPEND to minimize PostgreSQL verisioning conflicts
- Bump PORTREVISION

PR:		ports/146874
Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	5
d33 4
a36 1
LICENSE=	shareware / commercial
@


1.9
log
@Mark MANUAL_PACKAGE_BUILD; does not build on pointyhat
because port wants PGSQL 8.4 but dependencies are built
with default 8.2.

Reported by:	pav@@ (pointyhat)
Approved by:	itetcu@@ (mentor)
@
text
@d10 1
a10 1
PORTREVISION=	4
d60 5
d66 1
a66 1
USE_PHP+=	curl pcre bcmath pdo mcrypt mhash session pgsql
a70 4
.if defined(APACHE+PHP) && defined(WITH_PGSQL)
LIB_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
.endif

@


1.8
log
@- Update to 4.0 snapshot 1504201
- Bump PORTREVISION since upstream chases libcurl update

PR: 		ports/145740
Submitted by:	Patrick Tracanelli (maintainer)
Approved by:	itetcu@@ (mentor)
@
text
@d36 2
@


1.7
log
@- Update to 4.0 snap 08042010
- Rework dependency check warning user if curl required build options fail
  but don't make it fatal anymore (since its not fatal anyway).
- Unbreak port since depend checking is not fatal anymore.

PR:		ports/145665
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	3
d15 1
a15 1
DISTNAME=	thunder32bits_08042010
d43 1
a43 1
DISTNAME=	thunder64bits_08042010
@


1.6
log
@- Mark BROKEN: conflicting dependencies (also maintainer's mail is bouncing due
  to misconfigured SPF check)

Reported by:	pointyhat
@
text
@d10 1
a10 1
PORTREVISION=	2
d15 1
a15 1
DISTNAME=	thunder32bits_29032010
a24 2
BROKEN=		conflicting dependencies

d43 1
a43 1
DISTNAME=	thunder64bits_29032010
d71 1
a71 1
pre-everything::
d91 9
a99 1
pre-install:
d102 2
a103 1
		${ECHO_MSG} "FATAL: " ; \
d108 3
a110 1
		${ECHO_MSG} "ftp/curl		LIBSSH2=yes OPENSSL=yes PROXY=yes" ; \
a111 1
		${FALSE} ; \
a113 8
do-install:
	@@${CP} -r ${WRKSRC} ${PREFIX}/
	${INSTALL_SCRIPT} ${WRKDIR}/log.sh ${PREFIX}/thunder/sbin/
	@@${MKDIR} -m 755 /var/run/thunder

post-install:
	@@${CAT} ${PKGMESSAGE}

@


1.5
log
@- Update to 4.0 rev 29032010
- Rework port

PR:		ports/145409
Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
@
text
@d25 2
@


1.4
log
@- Mark BROKEN for mad things this port is doing

Reported by:	pointyhat
@
text
@d15 1
a15 1
DISTNAME=	thunder32bits_17032010
d20 4
a23 3
BROKEN=		calls false in default configuration

OPTIONS=	DEPENDACK "I have read and understood the depends needs" off
d43 1
a43 1
DISTNAME=	thunder64bits_17032010
d48 5
a52 1
USE_PHP+=	curl pcre bcmath pdo mcrypt mhash session pgsql
d55 6
a60 1
USE_APACHE=	2.0+
a62 3
RUN_DEPENDS+=	sudo:${PORTSDIR}/security/sudo \
		postgresql-server>=0:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server \
		${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
d64 6
a69 1
SUB_FILES=	pkg-message log.sh
a71 1
.if !defined(WITH_DEPENDACK)
d87 1
d91 13
d107 1
@


1.3
log
@Chase the ftp/curl shlib version bump.
@
text
@d20 2
@


1.2
log
@Fix the rc.d script-related problems with this port:
1. It's rc.d, not rcng
2. All new ports that use rc.d scripts need to use USE_RC_SUBR
3. The name of the script, PROVIDE, and $name should match the port name.
4. For the script itself:
  a. Added a $FreeBSD$
  b. Added KEYWORD: shutdown since it starts a persistent service.
  c. Removed _flags from command=, it's spurious and will result in the
     flags being included twice.
  d. Moved the default variable assignment to after load_rc_config
  e. Made the conf file a required_file, and added it to command_args
     instead of _flags.

Approved by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	1
d50 1
a50 1
LIB_DEPENDS+=	curl.5:${PORTSDIR}/ftp/curl:install
@


1.1
log
@ThunderCache 4 is an enhaced standalone high-performance web caching system.

It's main goal is to be able to cache dynamic contents, the content most
proxing systems are unable to do caching. This is how ThunderCache becomes
high-performance and high-eficiency.

ThunderCache is freeware up to 50 concurrent sessions, and needs commercial
license to run more than 50 concurrent sessions. It's designed to run on
FreeBSD. Advanced features include TProxy support (IP_BINDANY), ToS/DiffService
marking.

WWW:	http://www.bmsoftware.org

Submitted by:	Patrick Tracanelli <eksffa at freebsdbrasil.com.br> (by email)
@
text
@d10 1
d27 2
d55 1
a55 1
SUB_FILES=	pkg-message thunder-rcNG log.sh
a78 1
	${INSTALL_SCRIPT} ${WRKDIR}/thunder-rcNG ${PREFIX}/etc/rc.d/thunder
@

