View | Details | Raw Unified | Return to bug 150190
Collapse All | Expand All

(-)/usr/ports/www/thundercache.n/Makefile (-4 / +4 lines)
Lines 6-18 Link Here
6
#
6
#
7
7
8
PORTNAME=	thundercache
8
PORTNAME=	thundercache
9
PORTVERSION=	4.1
9
PORTVERSION=	5.0
10
CATEGORIES=	www
10
CATEGORIES=	www
11
MASTER_SITES=	http://www.bmsoftware.org/freebsd/ \
11
MASTER_SITES=	http://www.bmsoftware.org/freebsd/ \
12
		http://www8.freebsdbrasil.com.br/~eksffa/thunder/ \
12
		http://www8.freebsdbrasil.com.br/~eksffa/thunder/ \
13
		http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \
13
		http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \
14
		${MASTER_SITE_LOCAL}/jmelo
14
		${MASTER_SITE_LOCAL}/jmelo
15
DISTNAME=	thundercache-4.1.201006231050-32bits-fbsd
15
DISTNAME=	thundercache-5.0.201031081330-64bits-fbsd
16
16
17
MAINTAINER=	eksffa@freebsdbrasil.com.br
17
MAINTAINER=	eksffa@freebsdbrasil.com.br
18
COMMENT=	High-performance and high-eficiency caching proxy system
18
COMMENT=	High-performance and high-eficiency caching proxy system
Lines 44-51 Link Here
44
BROKEN=		Won't run on systems version < FreeBSD 8.0-RELEASE
44
BROKEN=		Won't run on systems version < FreeBSD 8.0-RELEASE
45
.endif
45
.endif
46
46
47
.if ${ARCH} == "amd64"
47
.if ${ARCH} == "i386"
48
DISTNAME=	thundercache-4.1.201006231050-64bits-fbsd
48
DISTNAME=	thundercache-5.0.201031081330-32bits-fbsd
49
.endif
49
.endif
50
50
51
WRKSRC=		${WRKDIR}/thunder
51
WRKSRC=		${WRKDIR}/thunder
(-)/usr/ports/www/thundercache.n/distinfo (-3 / +6 lines)
Lines 1-3 Link Here
1
MD5 (thundercache-4.1.201006231050-64bits-fbsd.tar.bz2) = 514b6fcd454c5607421e6eeee6ebc5f0
1
MD5 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 6eff69801b412ca5f7bb07ea9a7e2f00
2
SHA256 (thundercache-4.1.201006231050-64bits-fbsd.tar.bz2) = 32fc33fefcfc5018e1ca24b899e550b6612857bb399aa46450abcb9ddc11e8f1
2
SHA256 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 11d45e287571e88a28fcd2cc9a1f5b2b67821b6cc4d7c5dceac4c72b50bc35ea
3
SIZE (thundercache-4.1.201006231050-64bits-fbsd.tar.bz2) = 339994
3
SIZE (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 145547
4
MD5 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 59fd2724a211fa203835fc8883db0e1d
5
SHA256 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = a4e275622a0eb8107068d125f8092bad8f6d597be8fcf827220d241d82ff16e0
6
SIZE (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 148645
(-)/usr/ports/www/thundercache.n/files/pkg-message.in (-3 / +2 lines)
Lines 1-5 Link Here
1
1
2
Please note that you have just installed ThunderCache 4 on
2
Please note that you have just installed ThunderCache Pro on
3
3
4
	%%PREFIX%%/thunder
4
	%%PREFIX%%/thunder
5
5
Lines 40-44 Link Here
40
40
41
	thundercache_enable="YES" 
41
	thundercache_enable="YES" 
42
42
43
And start it from %%PREFIX%%/etc/rc.d/thundercache 
43
And start it from %%PREFIX%%/etc/rc.d/thundercache
44
(-)/usr/ports/www/thundercache.n/pkg-descr (-1 / +1 lines)
Lines 1-4 Link Here
1
ThunderCache 4 is an enhaced standalone high-performance web caching system.
1
ThunderCache Pro is an enhaced standalone high-performance web caching system.
2
2
3
It's main goal is to be able to cache dynamic contents, the content most
3
It's main goal is to be able to cache dynamic contents, the content most
4
proxing systems are unable to do caching. This is how ThunderCache becomes
4
proxing systems are unable to do caching. This is how ThunderCache becomes
(-)/usr/ports/www/thundercache.n/pkg-plist (-71 lines)
Lines 3-78 Link Here
3
thunder/etc/thunder.php
3
thunder/etc/thunder.php
4
thunder/logs/error.log
4
thunder/logs/error.log
5
thunder/logs/access.log
5
thunder/logs/access.log
6
thunder/plugins/youtube.com.so
7
thunder/plugins/xvideos.com.so
8
thunder/plugins/vimeo.com.so
9
thunder/plugins/rapidshare.com.so
10
thunder/plugins/grisoft.com.so
11
thunder/plugins/avg.com.so
12
thunder/plugins/dailymotion.com.so
13
thunder/plugins/viddler.com.so
14
thunder/plugins/globo.com.so
15
thunder/plugins/windowsupdate.com.so
16
thunder/plugins/terra.com.so
17
thunder/plugins/ziddu.com.so
18
thunder/plugins/photobucket.com.so
19
thunder/plugins/video.msn.com.so
20
thunder/plugins/avgate.com.so
21
thunder/plugins/etrustdownloads.ca.com.so
22
thunder/plugins/update.nai.com.so
23
thunder/plugins/metacafe.com.so
24
thunder/plugins/avgate.net.so
25
thunder/plugins/kaspersky-labs.com.so
26
thunder/plugins/pornhub.com.so
27
thunder/plugins/nai.com.so
28
thunder/plugins/mediafire.com.so
29
thunder/plugins/bitgravity.com.so
30
thunder/plugins/pop6.com.so
31
thunder/plugins/freeav.com.so
32
thunder/plugins/googlevideo.com.so
33
thunder/plugins/edgecastcdn.net.so
34
thunder/plugins/freeav.net.so
35
thunder/plugins/tube8.com.so
36
thunder/plugins/microsoft.com.so
37
thunder/plugins/sambatech.com.br.so
38
thunder/plugins/grisoft.cz.so
39
thunder/plugins/symantecliveupdate.com.so
40
thunder/plugins/megavideo.com.so
41
thunder/plugins/kaspersky.com.so
42
thunder/plugins/orkut.com.so
43
thunder/plugins/uol.com.br.so
44
thunder/plugins/avast.com.so
45
thunder/plugins/eset.com.so
46
thunder/plugins/xtube.com.so
47
thunder/plugins/redtube.com.so
48
thunder/plugins/4shared.com.so
49
thunder/plugins/pornotube.com.so
50
thunder/plugins/orkut.com.br.so
51
thunder/plugins/megaupload.com.so
52
thunder/plugins/mccont.com.so
53
thunder/plugins/megarotic.com.so
54
thunder/plugins/2shared.com.so
55
thunder/plugins/palco.fm.so
56
thunder/plugins/cabobranco.tv.br.so
57
thunder/plugins/depositfiles.com.so
58
thunder/plugins/euvoupassar.com.br.so
59
thunder/plugins/filefactory.com.so
60
thunder/plugins/hotfile.com.so
61
thunder/plugins/keezmovies.com.so
62
thunder/plugins/sendspace.com.so
63
thunder/plugins/videolog.tv.so
64
thunder/plugins/zshare.net.so
65
thunder/plugins/adobe.com.so
66
thunder/plugins/macromedia.com.so
67
thunder/plugins/files.com.so
68
thunder/plugins/badongo.com.so
69
thunder/plugins/turboupload.com.so
70
thunder/plugins/xxx.com.so
71
thunder/plugins/youporn.com.so
72
thunder/plugins/extremetube.com.so
73
thunder/plugins/bangbros.com.so
74
thunder/plugins/youjizz.com.so
75
thunder/plugins/flvporn.com.so
76
thunder/sbin/thunderlog.php
6
thunder/sbin/thunderlog.php
77
thunder/sbin/diskinfo
7
thunder/sbin/diskinfo
78
thunder/sbin/thunder
8
thunder/sbin/thunder
Lines 80-86 Link Here
80
@dirrm thunder/etc
10
@dirrm thunder/etc
81
@dirrm thunder/logs/tmp
11
@dirrm thunder/logs/tmp
82
@dirrm thunder/logs
12
@dirrm thunder/logs
83
@dirrm thunder/plugins
84
@dirrm thunder/sbin
13
@dirrm thunder/sbin
85
@dirrm thunder/cache
14
@dirrm thunder/cache
86
@dirrm thunder
15
@dirrm thunder
(-)/usr/ports/www/thundercache.n/thundercache/Makefile (+120 lines)
Line 0 Link Here
1
# New ports collection makefile for:	thundercache
2
# Date created:		2010-03-15
3
# Whom:			Patrick Tracanelli <eksffa@freebsdbrasil.com.br>
4
#
5
# $FreeBSD: ports/www/thundercache/Makefile,v 1.13 2010/06/30 01:47:11 sylvio Exp $
6
#
7
8
PORTNAME=	thundercache
9
PORTVERSION=	5.0
10
CATEGORIES=	www
11
MASTER_SITES=	http://www.bmsoftware.org/freebsd/ \
12
		http://www8.freebsdbrasil.com.br/~eksffa/thunder/ \
13
		http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \
14
		${MASTER_SITE_LOCAL}/jmelo
15
DISTNAME=	thundercache-5.0.201031081330-64bits-fbsd
16
17
MAINTAINER=	eksffa@freebsdbrasil.com.br
18
COMMENT=	High-performance and high-eficiency caching proxy system
19
20
OPTIONS=	DEPENDACK "I have read and understood the depends needs" on \
21
		APACHE "Install apache for reporting viewing" on \
22
		PHP "Install PHP for reporting generating" on \
23
		PGSQL "Install PostgreSQL (report data storing)" on
24
25
USE_OPENSSL=	yes
26
USE_BZIP2=	yes
27
28
ONLY_FOR_ARCHS=	i386 amd64
29
30
USE_RC_SUBR=	thundercache
31
32
NO_BUILD=	yes
33
LICENSE=	commercial
34
LICENSE_NAME=	commercial
35
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
36
LICENSE_TEXT=	Commercial software with shareware license to 50 threads
37
RESTRICTED=	Commercial software with shareware license to 50 threads
38
39
MANUAL_PACKAGE_BUILD=	This port wants PGSQL 8.4, but 8.2 is default and used to build php5-pgsql dependency.
40
41
.include <bsd.port.pre.mk>
42
43
.if ${OSVERSION} < 800000
44
BROKEN=		Won't run on systems version < FreeBSD 8.0-RELEASE
45
.endif
46
47
.if ${ARCH} == "i386"
48
DISTNAME=	thundercache-5.0.201031081330-32bits-fbsd
49
.endif
50
51
WRKSRC=		${WRKDIR}/thunder
52
53
.if defined (WITH_APACHE)
54
USE_APACHE=	2.0+
55
.endif
56
57
.if defined (WITH_PGSQL)
58
USE_PGSQL=	yes
59
WANT_PGSQL_VER=	84
60
RUN_DEPENDS+=	postgresql-server>=0:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
61
.endif
62
63
.if defined(WITH_PHP) && defined(WITH_PGSQL)
64
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql
65
RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pgsql.so:${PORTSDIR}/databases/php5-pgsql
66
.endif
67
68
.if defined(WITH_PHP)
69
USE_PHP+=	curl pcre bcmath pdo mcrypt mhash session
70
.endif
71
72
LIB_DEPENDS+=	curl.6:${PORTSDIR}/ftp/curl:install
73
74
SUB_FILES=	pkg-message log.sh test-deps.sh
75
SUB_LIST=	"GREP=${GREP}"
76
77
show-info:
78
	@${ECHO_MSG} ""
79
	@${ECHO_MSG} "ATTENTION:"
80
	@${ECHO_MSG} ""
81
	@${ECHO_MSG} " It is very important that you carefully read and respect"
82
	@${ECHO_MSG} " the special build options for the following depends:"
83
	@${ECHO_MSG} ""
84
	@${ECHO_MSG} " ftp/curl		LIBSSH2=yes OPENSSL=yes PROXY=yes"
85
	@${ECHO_MSG} " security/openssl	ZLIB=yes"
86
	@${ECHO_MSG} " devel/php5-pcre	BUNDLED_PCRE=yes (for apache20)"
87
	@${ECHO_MSG} " postgresql${PGSQL_VER}-server \
88
					NLS=yes PAM=yes OPTIMIZED_CFLAGS=yes TZDATA=yes"
89
	@${ECHO_MSG} ""
90
	@${ECHO_MSG} " After you understood it correctly, select DEPENDACK on"
91
	@${ECHO_MSG} " the OPTIONS screen. Run ''make config'' to acknowledge"
92
	@${ECHO_MSG} ""
93
.if !defined(WITH_DEPENDACK)
94
	@${FALSE}
95
.endif
96
97
pre-everything::show-info
98
99
do-install:
100
	@${CP} -r ${WRKSRC} ${PREFIX}/
101
	${INSTALL_SCRIPT} ${WRKDIR}/log.sh ${PREFIX}/thunder/sbin/
102
	@${MKDIR} -m 755 /var/run/thunder
103
104
post-install:
105
	@${CAT} ${PKGMESSAGE}
106
	@(${CHMOD} +x ${WRKDIR}/test-deps.sh ; \
107
	if ! ${WRKDIR}/test-deps.sh > /dev/null 2>&1 ; then \
108
		${ECHO_MSG} "**** FATAL **** " ; \
109
		${ECHO_MSG} "**** THIS PORT MAY NOT WORK PROPERLY **** " ; \
110
		${ECHO_MSG} "Some depends are not built with required features." ; \
111
		${ECHO_MSG} "You must always honor at least the following options" ; \
112
		${ECHO_MSG} "depends as listed:" ; \
113
		${ECHO_MSG} "" ; \
114
		${ECHO_MSG} "ftp/curl	   LIBSSH2=yes OPENSSL=yes PROXY=yes" ; \
115
		${ECHO_MSG} "" ; \
116
		${ECHO_MSG} "Type ''make show-info'' to read further information." ; \
117
		${ECHO_MSG} "" ; \
118
	fi)
119
120
.include <bsd.port.post.mk>
(-)/usr/ports/www/thundercache.n/thundercache/distinfo (+6 lines)
Line 0 Link Here
1
MD5 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 6eff69801b412ca5f7bb07ea9a7e2f00
2
SHA256 (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 11d45e287571e88a28fcd2cc9a1f5b2b67821b6cc4d7c5dceac4c72b50bc35ea
3
SIZE (thundercache-5.0.201031081330-32bits-fbsd.tar.bz2) = 145547
4
MD5 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 59fd2724a211fa203835fc8883db0e1d
5
SHA256 (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = a4e275622a0eb8107068d125f8092bad8f6d597be8fcf827220d241d82ff16e0
6
SIZE (thundercache-5.0.201031081330-64bits-fbsd.tar.bz2) = 148645
(-)/usr/ports/www/thundercache.n/thundercache/files/log.sh.in (+27 lines)
Line 0 Link Here
1
#!/bin/sh
2
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin"
3
#
4
# Patrick Tracanelli <eksffa@freebsdbrasil.com.br>
5
#
6
# Config
7
#
8
PHP="%%PREFIX%%/bin/php"
9
THUNDERLOG="%%PREFIX%%/thunder/sbin/thunderlog.php"
10
DB="thunder"
11
HOST="localhost"
12
USER="thunder"
13
PASS="thundercache"
14
LOG="%%PREFIX%%/thunder/logs"
15
LOGTEMP="%%PREFIX%%/thunder/logs/tmp"
16
SCRIPTLOG="/dev/null" # mude para /tmp/scriptlog.log para debugar se preciso
17
18
#
19
# Simply populate some stats andresets access.log
20
#
21
22
cp -f ${LOG}/access.log ${LOGTEMP}/access.log
23
24
:> ${LOG}/access.log
25
26
$PHP $THUNDERLOG $HOST $DB $USER $PASS $LOGTEMP/access.log >>${SCRIPTLOG} 2>&1 && rm -f $LOGTEMP/access.log
27
(-)/usr/ports/www/thundercache.n/thundercache/files/pkg-message.in (+44 lines)
Line 0 Link Here
1
2
Please note that you have just installed ThunderCache Pro on
3
4
	%%PREFIX%%/thunder
5
6
Now you have to configure your system according to these instructions:
7
8
Enable PostgreSQL database and set a special login class o rc.conf:
9
10
	postgresql_enable="YES"
11
	postgresql_class="postgres"
12
13
Create the special login class on login.conf:
14
15
	postgres:\
16
		:lang=en_US.UTF-8:\
17
		:setenv=LC_COLLATE=C:\
18
		:tc=default:
19
20
Update the login database:
21
22
	cap_mkdb /etc/login.conf
23
24
Create the needed database:
25
26
	%%PREFIX%%/bin/psql postgres -U pgsql < \
27
			%%PREFIX%%/thunder/etc/thunder_postgre.sql
28
29
Copy %%PREFIX%%/thunder/etc/thunder.php to some adequated place, like:
30
31
	cp -p %%PREFIX%%/thunder/etc/thunder.php \
32
		%%PREFIX%%/www/data/
33
34
Add %%PREFIX%%/thunder/sbin/log.sh to /etc/crontab according to your needs:
35
36
	@hourly			root	%%PREFIX%%/thunder/sbin/log.sh 
37
38
Configure %%PREFIX%%/thunder/etc/thunder.conf accordingly and finally, add
39
the following line to rc.conf:
40
41
	thundercache_enable="YES" 
42
43
And start it from %%PREFIX%%/etc/rc.d/thundercache 
44
(-)/usr/ports/www/thundercache.n/thundercache/files/test-deps.sh.in (+16 lines)
Line 0 Link Here
1
#!/bin/sh
2
 if ! ldd %%PREFIX%%/bin/curl | %%GREP%% "libssh" >/dev/null 2>&1 ; then
3
   BARRIER=1
4
 fi
5
 if ! ldd %%PREFIX%%/bin/curl | %%GREP%% "libssl" >/dev/null 2>&1 ; then
6
   BARRIER=1
7
 fi
8
 if ! %%PREFIX%%/bin/curl -h | %%GREP%% "proxy <host" >/dev/null 2>&1 ; then
9
   BARRIER=1
10
 fi
11
12
 if [ "${BARRIER}" = 1 ] ; then
13
	false
14
 else
15
	true
16
 fi
(-)/usr/ports/www/thundercache.n/thundercache/files/thundercache.in (+28 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: ports/www/thundercache/files/thundercache.in,v 1.1 2010/03/18 21:42:30 dougb Exp $
4
#
5
# PROVIDE: thundercache
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Remember to thundercache_enable="YES" in /etc/rc.conf
10
# You can also add optional flags to thundercache_flags
11
#
12
# FreeBSD Brasil LTDA <consultoria@freebsdbrasil.com.br>
13
#
14
15
. /etc/rc.subr
16
17
name="thundercache"
18
rcvar=`set_rcvar`
19
20
command="%%PREFIX%%/thunder/sbin/thunder"
21
required_files="%%PREFIX%%/thunder/etc/thunder.conf"
22
command_args="-c $required_files"
23
pidfile="/var/run/thunder/thunder.pid"
24
25
load_rc_config $name
26
: ${thundercache_enable="NO"}
27
28
run_rc_command "$1"
(-)/usr/ports/www/thundercache.n/thundercache/pkg-descr (+12 lines)
Line 0 Link Here
1
ThunderCache Pro is an enhaced standalone high-performance web caching system.
2
3
It's main goal is to be able to cache dynamic contents, the content most
4
proxing systems are unable to do caching. This is how ThunderCache becomes
5
high-performance and high-eficiency.
6
7
ThunderCache is freeware up to 50 concurrent sessions, and needs commercial
8
license to run more than 50 concurrent sessions. It's designed to run on
9
FreeBSD. Advanced features include TProxy support (IP_BINDANY), ToS/DiffService
10
marking.
11
12
WWW:	http://www.bmsoftware.org
(-)/usr/ports/www/thundercache.n/thundercache/pkg-plist (+17 lines)
Line 0 Link Here
1
thunder/etc/thunder_postgre.sql
2
thunder/etc/thunder.conf
3
thunder/etc/thunder.php
4
thunder/logs/error.log
5
thunder/logs/access.log
6
thunder/sbin/thunderlog.php
7
thunder/sbin/diskinfo
8
thunder/sbin/thunder
9
thunder/sbin/log.sh
10
@dirrm thunder/etc
11
@dirrm thunder/logs/tmp
12
@dirrm thunder/logs
13
@dirrm thunder/sbin
14
@dirrm thunder/cache
15
@dirrm thunder
16
@unexec /bin/rm /var/run/thunder/thunder.pid 2>/dev/null || true
17
@unexec /bin/rmdir /var/run/thunder 2>/dev/null || true

Return to bug 150190