head	1.11;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.6
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.2;
locks; strict;
comment	@# @;


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

1.10
date	2012.11.17.06.03.07;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.09.04.22.27.55;	author ohauer;	state Exp;
branches;
next	1.8;

1.8
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.7;

1.7
date	2012.03.06.07.31.51;	author crees;	state Exp;
branches;
next	1.6;

1.6
date	2011.08.20.17.27.52;	author ohauer;	state Exp;
branches;
next	1.5;

1.5
date	2011.04.20.20.28.25;	author jmelo;	state Exp;
branches;
next	1.4;

1.4
date	2011.04.20.19.04.48;	author jmelo;	state Exp;
branches;
next	1.3;

1.3
date	2010.09.29.21.24.12;	author jmelo;	state Exp;
branches;
next	1.2;

1.2
date	2010.07.02.19.37.59;	author sylvio;	state Exp;
branches;
next	1.1;

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


desc
@@


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

PORTNAME=	thundersnarf
PORTVERSION=	1.3
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	www
MASTER_SITES=	http://www.tracanelli.com.br/l/dev/thunder/ \
		${MASTER_SITE_LOCAL}/jmelo

MAINTAINER=	eksffa@@freebsdbrasil.com.br
COMMENT=	Web reporting and trending analysis for Thunder Cache Pro

OPTIONS_DEFINE=	APACHE PHP PGSQL DOCS
OPTIONS_DEFAULT=	APACHE PHP PGSQL
APACHE_DESC=	Install apache for reporting viewing
PHP_DESC=	Install PHP for reporting generating
PGSQL_DESC=	Install PostgreSQL (report data storing)

USE_BZIP2=	yes

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME:R}

.include <bsd.port.options.mk>

.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
.endif

.if ${PORT_OPTIONS:MPHP}
USE_PHP+=	curl pcre bcmath pdo mcrypt mhash session pgsql spl dom xmlrpc ctype openssl simplexml soap json
.endif

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

SUB_FILES=	pkg-message

do-install:
	@@${CP} -R ${WRKSRC} ${WWWDIR}
	@@${INSTALL_SCRIPT} -m 555 ${WRKSRC}/protected/data/bin/thundersnarf ${PREFIX}/bin/
	@@${INSTALL_SCRIPT} -m 555 ${WRKSRC}/protected/data/bin/thundersnarf-poll ${PREFIX}/bin/
	@@${CHGRP} -R ${WWWGRP}	${WWWDIR}/protected/runtime \
		${WWWDIR}/assets
	@@${CHMOD} -R g+rwx ${WWWDIR}/protected/runtime \
		${WWWDIR}/assets

.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@${CP} -Rv ${WRKSRC}/README ${DOCSDIR}/README.pt_BR
.endif

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

.include <bsd.port.mk>
@


1.10
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/www/thundersnarf/Makefile 303678 2012-09-04 22:27:55Z ohauer $
d14 5
a18 3
OPTIONS=	APACHE "Install apache for reporting viewing" on \
		PHP "Install PHP for reporting generating" on \
		PGSQL "Install PostgreSQL (report data storing)" on
d25 1
a25 1
.include <bsd.port.pre.mk>
d27 1
a27 1
.if defined (WITH_APACHE)
d31 1
a31 1
.if defined (WITH_PGSQL)
d37 1
a37 1
.if defined(WITH_PHP) && defined(WITH_PGSQL)
d41 1
a41 1
.if defined(WITH_PHP)
d58 1
a58 1
.if !defined(NOPORTDOCS)
d66 1
a66 1
.include <bsd.port.post.mk>
@


1.9
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.8
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:	thundersnarf
# Date created:		2010-05-20
# Whom:			Patrick Tracanelli <eksffa@@freebsdbrasil.com.br>
#
a1 1
#
d26 1
a26 1
USE_APACHE=	22+
@


1.7
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
@d31 1
a31 1
USE_APACHE=	20+
@


1.6
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d10 1
a10 1
PORTREVISION=	1
d36 1
a36 1
WANT_PGSQL_VER=	84
@


1.5
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
d31 1
a31 1
USE_APACHE=	2.0+
@


1.4
log
@- Update to 1.3.

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

@


1.3
log
@- Update to 1.1.

PR:		ports/151086
Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.1
@


1.2
log
@- Update to 1.02b

PR:		ports/148304
Submitted by:	Patrick Tracanelli <eksffa@@freebsdbrasil.com.br> (maintainer)
Feature safe:	yes
@
text
@d9 2
a10 1
PORTVERSION=	1.02b
d12 1
a12 1
MASTER_SITES=	http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \
d46 1
a46 1
USE_PHP+=	curl pcre bcmath pdo mcrypt mhash session pgsql spl dom xmlrpc ctype
@


1.1
log
@ThunderSnarf is a web reporting and trending tool for Thunder Cache Pro which
has the main goal to provide a strategic overview of how Thunder is caching and
what it is caching, aggregating value and helping on decision making regarding
the real web acceleration rates and allowing one to identify unefficient cache
patterns, plugins, as well as domains which should have a plugin written for
and, off course, the top efficient domains and caching patterns as well.

WWW:	http://www.thundercache.com.br

PR:		ports/146875
Submitted by:	Patrick Tracanelli <eksffa at freebsdbrasil.com.br>
@
text
@d9 1
a9 1
PORTVERSION=	1.0b
@

