svn commit: r357696 - head/www/thundercache

John Marino marino at FreeBSD.org
Fri Jun 13 16:15:52 UTC 2014


Author: marino
Date: Fri Jun 13 16:15:51 2014
New Revision: 357696
URL: http://svnweb.freebsd.org/changeset/ports/357696
QAT: https://qat.redports.org/buildarchive/r357696/

Log:
  www/thundercache: Stage support, PGSQL option fix and more
  
  The PR only provided changes needed to add stage support.  However, the
  port needed some additional TLC:
  
   * DISTNAME reworked for single, ARCH-based definition (pets portlint)
   * LICENSE stuff moved, rearranged (pets portlint)
   * DOCS option removed (it wasn't implemented)
   * Typo for PGSQL option fixed so it's default again (bump portrevision)
   * Cosmestic alignment
   * PGSQL converted to USES+=pgsql and WANT_PGSQL=
   * php+pgsql RUN_DEPENDS refactored, and set to use USE_PHP
   * Convert to new LIB_DEPENDS style (PR)
   * Convert to USES+=tar (PR)
   * Remove WWW whitespace (PR)
   * Handle /var/run/thunder (PR) (also requires portrevision bump)
  
  PR:		190951
  Submitted by:	Joe Benden
  fixes by:	marino
  Approved by:	stage blanket + just fix it blanket
  verified by:	Redports 8x pass

Modified:
  head/www/thundercache/Makefile
  head/www/thundercache/pkg-descr
  head/www/thundercache/pkg-plist

Modified: head/www/thundercache/Makefile
==============================================================================
--- head/www/thundercache/Makefile	Fri Jun 13 16:15:01 2014	(r357695)
+++ head/www/thundercache/Makefile	Fri Jun 13 16:15:51 2014	(r357696)
@@ -2,46 +2,44 @@
 
 PORTNAME=	thundercache
 PORTVERSION=	6.1
-PORTREVISION=	5
+PORTREVISION=	6
 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
+DISTNAME=	thundercache-6.1.201104260900-${BITS}-fbsd
 
 MAINTAINER=	eksffa at 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)
+LICENSE=	commercial
+LICENSE_NAME=	commercial
+LICENSE_TEXT=	Commercial software with shareware license to 50 threads
+LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
+
+RESTRICTED=	Commercial software with shareware license to 50 threads
+
+OPTIONS_DEFINE=	DEPENDACK APACHE PHP PGSQL
+OPTIONS_DEFAULT=DEPENDACK APACHE PHP PGSQL
+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
+USES=		tar:bzip2
 
 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
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.if ${ARCH} == "i386"
-DISTNAME=	thundercache-6.1.201104260900-32bits-fbsd
-.endif
-
+BITS=		${ARCH:S/amd64/64/:S/x86_64/64/:S/i386/32/}bits
 WRKSRC=		${WRKDIR}/thunder
 
 .if ${PORT_OPTIONS:MAPACHE}
@@ -49,21 +47,20 @@ 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
+USES+=		pgsql
+WANT_PGSQL=	server
 .endif
 
 .if ${PORT_OPTIONS:MPHP}
 USE_PHP+=	curl pcre bcmath pdo mcrypt mhash session
+.  if ${PORT_OPTIONS:MPGSQL}
+USE_PHP+=	pdo_pgsql pgsql
+.  endif
 .endif
 
-LIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
+LIB_DEPENDS+=	libcurl.so:${PORTSDIR}/ftp/curl \
+		libstdc++.so:${PORTSDIR}/lang/gcc \
+		libutil.so:${PORTSDIR}/misc/compat8x
 
 SUB_FILES=	pkg-message log.sh test-deps.sh
 SUB_LIST=	"GREP=${GREP}"
@@ -91,12 +88,11 @@ show-info:
 pre-everything::show-info
 
 do-install:
-	@${CP} -r ${WRKSRC} ${PREFIX}/
-	${INSTALL_SCRIPT} ${WRKDIR}/log.sh ${PREFIX}/thunder/sbin/
-	@${MKDIR} -m 755 /var/run/thunder
+	@${CP} -r ${WRKSRC} ${STAGEDIR}${PREFIX}/
+	@${INSTALL_SCRIPT} ${WRKDIR}/log.sh ${STAGEDIR}${PREFIX}/thunder/sbin/
+	@${MKDIR} -m 755 ${STAGEDIR}/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 **** " ; \

Modified: head/www/thundercache/pkg-descr
==============================================================================
--- head/www/thundercache/pkg-descr	Fri Jun 13 16:15:01 2014	(r357695)
+++ head/www/thundercache/pkg-descr	Fri Jun 13 16:15:51 2014	(r357696)
@@ -9,4 +9,4 @@ license to run more than 50 concurrent s
 FreeBSD. Advanced features include TProxy support (IP_BINDANY), ToS/DiffService
 marking.
 
-WWW:	http://www.bmsoftware.org
+WWW: http://www.bmsoftware.org

Modified: head/www/thundercache/pkg-plist
==============================================================================
--- head/www/thundercache/pkg-plist	Fri Jun 13 16:15:01 2014	(r357695)
+++ head/www/thundercache/pkg-plist	Fri Jun 13 16:15:51 2014	(r357696)
@@ -7,6 +7,8 @@ thunder/sbin/thunderlog.php
 thunder/sbin/diskinfo
 thunder/sbin/thunder
 thunder/sbin/log.sh
+ at exec mkdir -p /var/run/thunder
+ at exec chmod 755 /var/run/thunder
 @dirrm thunder/etc
 @dirrm thunder/logs/tmp
 @dirrm thunder/logs


More information about the svn-ports-head mailing list