diff -ruN --exclude=CVS /usr/ports/www/thundercache/Makefile /usr/ports/www/thundercache.n/Makefile --- /usr/ports/www/thundercache/Makefile 2010-06-29 22:47:11.000000000 -0300 +++ /usr/ports/www/thundercache.n/Makefile 2010-08-31 14:18:18.000000000 -0300 @@ -6,13 +6,13 @@ # PORTNAME= thundercache -PORTVERSION= 4.1 +PORTVERSION= 5.0 CATEGORIES= www MASTER_SITES= http://www.bmsoftware.org/freebsd/ \ http://www8.freebsdbrasil.com.br/~eksffa/thunder/ \ http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \ ${MASTER_SITE_LOCAL}/jmelo -DISTNAME= thundercache-4.1.201006231050-32bits-fbsd +DISTNAME= thundercache-5.0.201031081330-64bits-fbsd MAINTAINER= eksffa@freebsdbrasil.com.br COMMENT= High-performance and high-eficiency caching proxy system @@ -44,8 +44,8 @@ BROKEN= Won't run on systems version < FreeBSD 8.0-RELEASE .endif -.if ${ARCH} == "amd64" -DISTNAME= thundercache-4.1.201006231050-64bits-fbsd +.if ${ARCH} == "i386" +DISTNAME= thundercache-5.0.201031081330-32bits-fbsd .endif WRKSRC= ${WRKDIR}/thunder diff -ruN --exclude=CVS /usr/ports/www/thundercache/distinfo /usr/ports/www/thundercache.n/distinfo --- /usr/ports/www/thundercache/distinfo 2010-08-31 13:16:44.000000000 -0300 +++ /usr/ports/www/thundercache.n/distinfo 2010-08-31 23:33:29.000000000 -0300 @@ -1,3 +1,6 @@ -MD5 (thundercache-4.1.201006231050-64bits-fbsd.tar.bz2) = 514b6fcd454c5607421e6eeee6ebc5f0 -SHA256 (thundercache-4.1.201006231050-64bits-fbsd.tar.bz2) = 32fc33fefcfc5018e1ca24b899e550b6612857bb399aa46450abcb9ddc11e8f1 -SIZE (thundercache-4.1.201006231050-64bits-fbsd.tar.bz2) = 339994 +MD5 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 6eff69801b412ca5f7bb07ea9a7e2f00 +SHA256 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 11d45e287571e88a28fcd2cc9a1f5b2b67821b6cc4d7c5dceac4c72b50bc35ea +SIZE (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 145547 +MD5 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 59fd2724a211fa203835fc8883db0e1d +SHA256 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = a4e275622a0eb8107068d125f8092bad8f6d597be8fcf827220d241d82ff16e0 +SIZE (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 148645 diff -ruN --exclude=CVS /usr/ports/www/thundercache/files/pkg-message.in /usr/ports/www/thundercache.n/files/pkg-message.in --- /usr/ports/www/thundercache/files/pkg-message.in 2010-04-07 11:05:49.000000000 -0300 +++ /usr/ports/www/thundercache.n/files/pkg-message.in 2010-09-01 11:16:44.000000000 -0300 @@ -1,5 +1,5 @@ -Please note that you have just installed ThunderCache 4 on +Please note that you have just installed ThunderCache Pro on %%PREFIX%%/thunder @@ -40,5 +40,4 @@ thundercache_enable="YES" -And start it from %%PREFIX%%/etc/rc.d/thundercache - +And start it from %%PREFIX%%/etc/rc.d/thundercache diff -ruN --exclude=CVS /usr/ports/www/thundercache/pkg-descr /usr/ports/www/thundercache.n/pkg-descr --- /usr/ports/www/thundercache/pkg-descr 2010-03-18 15:35:19.000000000 -0300 +++ /usr/ports/www/thundercache.n/pkg-descr 2010-09-01 11:16:24.000000000 -0300 @@ -1,4 +1,4 @@ -ThunderCache 4 is an enhaced standalone high-performance web caching system. +ThunderCache Pro 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 diff -ruN --exclude=CVS /usr/ports/www/thundercache/pkg-plist /usr/ports/www/thundercache.n/pkg-plist --- /usr/ports/www/thundercache/pkg-plist 2010-06-29 17:29:18.000000000 -0300 +++ /usr/ports/www/thundercache.n/pkg-plist 2010-08-31 14:19:07.000000000 -0300 @@ -3,76 +3,6 @@ thunder/etc/thunder.php thunder/logs/error.log thunder/logs/access.log -thunder/plugins/youtube.com.so -thunder/plugins/xvideos.com.so -thunder/plugins/vimeo.com.so -thunder/plugins/rapidshare.com.so -thunder/plugins/grisoft.com.so -thunder/plugins/avg.com.so -thunder/plugins/dailymotion.com.so -thunder/plugins/viddler.com.so -thunder/plugins/globo.com.so -thunder/plugins/windowsupdate.com.so -thunder/plugins/terra.com.so -thunder/plugins/ziddu.com.so -thunder/plugins/photobucket.com.so -thunder/plugins/video.msn.com.so -thunder/plugins/avgate.com.so -thunder/plugins/etrustdownloads.ca.com.so -thunder/plugins/update.nai.com.so -thunder/plugins/metacafe.com.so -thunder/plugins/avgate.net.so -thunder/plugins/kaspersky-labs.com.so -thunder/plugins/pornhub.com.so -thunder/plugins/nai.com.so -thunder/plugins/mediafire.com.so -thunder/plugins/bitgravity.com.so -thunder/plugins/pop6.com.so -thunder/plugins/freeav.com.so -thunder/plugins/googlevideo.com.so -thunder/plugins/edgecastcdn.net.so -thunder/plugins/freeav.net.so -thunder/plugins/tube8.com.so -thunder/plugins/microsoft.com.so -thunder/plugins/sambatech.com.br.so -thunder/plugins/grisoft.cz.so -thunder/plugins/symantecliveupdate.com.so -thunder/plugins/megavideo.com.so -thunder/plugins/kaspersky.com.so -thunder/plugins/orkut.com.so -thunder/plugins/uol.com.br.so -thunder/plugins/avast.com.so -thunder/plugins/eset.com.so -thunder/plugins/xtube.com.so -thunder/plugins/redtube.com.so -thunder/plugins/4shared.com.so -thunder/plugins/pornotube.com.so -thunder/plugins/orkut.com.br.so -thunder/plugins/megaupload.com.so -thunder/plugins/mccont.com.so -thunder/plugins/megarotic.com.so -thunder/plugins/2shared.com.so -thunder/plugins/palco.fm.so -thunder/plugins/cabobranco.tv.br.so -thunder/plugins/depositfiles.com.so -thunder/plugins/euvoupassar.com.br.so -thunder/plugins/filefactory.com.so -thunder/plugins/hotfile.com.so -thunder/plugins/keezmovies.com.so -thunder/plugins/sendspace.com.so -thunder/plugins/videolog.tv.so -thunder/plugins/zshare.net.so -thunder/plugins/adobe.com.so -thunder/plugins/macromedia.com.so -thunder/plugins/files.com.so -thunder/plugins/badongo.com.so -thunder/plugins/turboupload.com.so -thunder/plugins/xxx.com.so -thunder/plugins/youporn.com.so -thunder/plugins/extremetube.com.so -thunder/plugins/bangbros.com.so -thunder/plugins/youjizz.com.so -thunder/plugins/flvporn.com.so thunder/sbin/thunderlog.php thunder/sbin/diskinfo thunder/sbin/thunder @@ -80,7 +10,6 @@ @dirrm thunder/etc @dirrm thunder/logs/tmp @dirrm thunder/logs -@dirrm thunder/plugins @dirrm thunder/sbin @dirrm thunder/cache @dirrm thunder diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/Makefile /usr/ports/www/thundercache.n/thundercache/Makefile --- /usr/ports/www/thundercache/thundercache/Makefile 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/Makefile 2010-08-31 14:18:18.000000000 -0300 @@ -0,0 +1,120 @@ +# New ports collection makefile for: thundercache +# Date created: 2010-03-15 +# Whom: Patrick Tracanelli +# +# $FreeBSD: ports/www/thundercache/Makefile,v 1.13 2010/06/30 01:47:11 sylvio Exp $ +# + +PORTNAME= thundercache +PORTVERSION= 5.0 +CATEGORIES= www +MASTER_SITES= http://www.bmsoftware.org/freebsd/ \ + http://www8.freebsdbrasil.com.br/~eksffa/thunder/ \ + http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \ + ${MASTER_SITE_LOCAL}/jmelo +DISTNAME= thundercache-5.0.201031081330-64bits-fbsd + +MAINTAINER= eksffa@freebsdbrasil.com.br +COMMENT= High-performance and high-eficiency caching proxy system + +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 + +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 + +MANUAL_PACKAGE_BUILD= This port wants PGSQL 8.4, but 8.2 is default and used to build php5-pgsql dependency. + +.include + +.if ${OSVERSION} < 800000 +BROKEN= Won't run on systems version < FreeBSD 8.0-RELEASE +.endif + +.if ${ARCH} == "i386" +DISTNAME= thundercache-5.0.201031081330-32bits-fbsd +.endif + +WRKSRC= ${WRKDIR}/thunder + +.if defined (WITH_APACHE) +USE_APACHE= 2.0+ +.endif + +.if defined (WITH_PGSQL) +USE_PGSQL= yes +WANT_PGSQL_VER= 84 +RUN_DEPENDS+= postgresql-server>=0:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server +.endif + +.if defined(WITH_PHP) && defined(WITH_PGSQL) +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 defined(WITH_PHP) +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 !defined(WITH_DEPENDACK) + @${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 diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/distinfo /usr/ports/www/thundercache.n/thundercache/distinfo --- /usr/ports/www/thundercache/thundercache/distinfo 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/distinfo 2010-08-31 23:33:29.000000000 -0300 @@ -0,0 +1,6 @@ +MD5 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 6eff69801b412ca5f7bb07ea9a7e2f00 +SHA256 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 11d45e287571e88a28fcd2cc9a1f5b2b67821b6cc4d7c5dceac4c72b50bc35ea +SIZE (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 145547 +MD5 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 59fd2724a211fa203835fc8883db0e1d +SHA256 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = a4e275622a0eb8107068d125f8092bad8f6d597be8fcf827220d241d82ff16e0 +SIZE (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 148645 diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/files/log.sh.in /usr/ports/www/thundercache.n/thundercache/files/log.sh.in --- /usr/ports/www/thundercache/thundercache/files/log.sh.in 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/files/log.sh.in 2010-04-07 11:05:49.000000000 -0300 @@ -0,0 +1,27 @@ +#!/bin/sh +export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin" +# +# Patrick Tracanelli +# +# Config +# +PHP="%%PREFIX%%/bin/php" +THUNDERLOG="%%PREFIX%%/thunder/sbin/thunderlog.php" +DB="thunder" +HOST="localhost" +USER="thunder" +PASS="thundercache" +LOG="%%PREFIX%%/thunder/logs" +LOGTEMP="%%PREFIX%%/thunder/logs/tmp" +SCRIPTLOG="/dev/null" # mude para /tmp/scriptlog.log para debugar se preciso + +# +# Simply populate some stats andresets access.log +# + +cp -f ${LOG}/access.log ${LOGTEMP}/access.log + +:> ${LOG}/access.log + +$PHP $THUNDERLOG $HOST $DB $USER $PASS $LOGTEMP/access.log >>${SCRIPTLOG} 2>&1 && rm -f $LOGTEMP/access.log + diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/files/pkg-message.in /usr/ports/www/thundercache.n/thundercache/files/pkg-message.in --- /usr/ports/www/thundercache/thundercache/files/pkg-message.in 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/files/pkg-message.in 2010-09-01 01:59:51.000000000 -0300 @@ -0,0 +1,44 @@ + +Please note that you have just installed ThunderCache Pro on + + %%PREFIX%%/thunder + +Now you have to configure your system according to these instructions: + +Enable PostgreSQL database and set a special login class o rc.conf: + + postgresql_enable="YES" + postgresql_class="postgres" + +Create the special login class on login.conf: + + postgres:\ + :lang=en_US.UTF-8:\ + :setenv=LC_COLLATE=C:\ + :tc=default: + +Update the login database: + + cap_mkdb /etc/login.conf + +Create the needed database: + + %%PREFIX%%/bin/psql postgres -U pgsql < \ + %%PREFIX%%/thunder/etc/thunder_postgre.sql + +Copy %%PREFIX%%/thunder/etc/thunder.php to some adequated place, like: + + cp -p %%PREFIX%%/thunder/etc/thunder.php \ + %%PREFIX%%/www/data/ + +Add %%PREFIX%%/thunder/sbin/log.sh to /etc/crontab according to your needs: + + @hourly root %%PREFIX%%/thunder/sbin/log.sh + +Configure %%PREFIX%%/thunder/etc/thunder.conf accordingly and finally, add +the following line to rc.conf: + + thundercache_enable="YES" + +And start it from %%PREFIX%%/etc/rc.d/thundercache + diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/files/test-deps.sh.in /usr/ports/www/thundercache.n/thundercache/files/test-deps.sh.in --- /usr/ports/www/thundercache/thundercache/files/test-deps.sh.in 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/files/test-deps.sh.in 2010-04-07 11:06:17.000000000 -0300 @@ -0,0 +1,16 @@ +#!/bin/sh + if ! ldd %%PREFIX%%/bin/curl | %%GREP%% "libssh" >/dev/null 2>&1 ; then + BARRIER=1 + fi + if ! ldd %%PREFIX%%/bin/curl | %%GREP%% "libssl" >/dev/null 2>&1 ; then + BARRIER=1 + fi + if ! %%PREFIX%%/bin/curl -h | %%GREP%% "proxy /dev/null 2>&1 ; then + BARRIER=1 + fi + + if [ "${BARRIER}" = 1 ] ; then + false + else + true + fi diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/files/thundercache.in /usr/ports/www/thundercache.n/thundercache/files/thundercache.in --- /usr/ports/www/thundercache/thundercache/files/thundercache.in 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/files/thundercache.in 2010-03-18 18:42:30.000000000 -0300 @@ -0,0 +1,28 @@ +#!/bin/sh + +# $FreeBSD: ports/www/thundercache/files/thundercache.in,v 1.1 2010/03/18 21:42:30 dougb Exp $ +# +# PROVIDE: thundercache +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Remember to thundercache_enable="YES" in /etc/rc.conf +# You can also add optional flags to thundercache_flags +# +# FreeBSD Brasil LTDA +# + +. /etc/rc.subr + +name="thundercache" +rcvar=`set_rcvar` + +command="%%PREFIX%%/thunder/sbin/thunder" +required_files="%%PREFIX%%/thunder/etc/thunder.conf" +command_args="-c $required_files" +pidfile="/var/run/thunder/thunder.pid" + +load_rc_config $name +: ${thundercache_enable="NO"} + +run_rc_command "$1" diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/pkg-descr /usr/ports/www/thundercache.n/thundercache/pkg-descr --- /usr/ports/www/thundercache/thundercache/pkg-descr 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/pkg-descr 2010-09-01 01:59:39.000000000 -0300 @@ -0,0 +1,12 @@ +ThunderCache Pro 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 diff -ruN --exclude=CVS /usr/ports/www/thundercache/thundercache/pkg-plist /usr/ports/www/thundercache.n/thundercache/pkg-plist --- /usr/ports/www/thundercache/thundercache/pkg-plist 1969-12-31 21:00:00.000000000 -0300 +++ /usr/ports/www/thundercache.n/thundercache/pkg-plist 2010-08-31 14:19:07.000000000 -0300 @@ -0,0 +1,17 @@ +thunder/etc/thunder_postgre.sql +thunder/etc/thunder.conf +thunder/etc/thunder.php +thunder/logs/error.log +thunder/logs/access.log +thunder/sbin/thunderlog.php +thunder/sbin/diskinfo +thunder/sbin/thunder +thunder/sbin/log.sh +@dirrm thunder/etc +@dirrm thunder/logs/tmp +@dirrm thunder/logs +@dirrm thunder/sbin +@dirrm thunder/cache +@dirrm thunder +@unexec /bin/rm /var/run/thunder/thunder.pid 2>/dev/null || true +@unexec /bin/rmdir /var/run/thunder 2>/dev/null || true