# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # thundersnarf # thundersnarf/files # thundersnarf/files/pkg-message.in # thundersnarf/Makefile # thundersnarf/distinfo # thundersnarf/pkg-descr # thundersnarf/pkg-plist # echo c - thundersnarf mkdir -p thundersnarf > /dev/null 2>&1 echo c - thundersnarf/files mkdir -p thundersnarf/files > /dev/null 2>&1 echo x - thundersnarf/files/pkg-message.in sed 's/^X//' >thundersnarf/files/pkg-message.in << 'df0adbb9ea54e18087201a6aea67ca1d' X XIf you haven't setup your PostgreSQL server, set it up accordingly and create Xsnortsnarf's database: X X%%PREFIX%%/bin/psql postgres -U pgsql < \ X %%WWWDIR%%/protected/data/db/pg_thundersnarf.sql X XRun Thunder Snarf from /etc/crontab. Schedule it according to your machine Xload availability, for example: X X*/20 * * * * root %%PREFIX%%/bin/thundersnarf >/dev/null 2>&1 df0adbb9ea54e18087201a6aea67ca1d echo x - thundersnarf/Makefile sed 's/^X//' >thundersnarf/Makefile << '4a7e65d99fc99c687b69eea605a4a4c0' X# New ports collection makefile for: thundersnarf X# Date created: 2010-05-20 X# Whom: Patrick Tracanelli X# X# $FreeBSD$ X# X XPORTNAME= thundersnarf XPORTVERSION= 1.0b XPORTREVISION= 1 XCATEGORIES= www XMASTER_SITES= http://www6.freebsdbrasil.com.br/~eksffa/l/dev/thunder/ \ X ${MASTER_SITE_LOCAL}/jmelo X XMAINTAINER= eksffa@freebsdbrasil.com.br XCOMMENT= Web reporting and trending analysis for Thunder Cache Pro X XOPTIONS= APACHE "Install apache for reporting viewing" on \ X PHP "Install PHP for reporting generating" on \ X PGSQL "Install PostgreSQL (report data storing)" on X XUSE_BZIP2= yes X XNO_BUILD= yes XWRKSRC= ${WRKDIR}/${PORTNAME:R} X XMANUAL_PACKAGE_BUILD= This port wants PGSQL 8.4, but 8.2 is default and used to build php5-pgsql dependency. X X.include X X.if defined (WITH_APACHE) XUSE_APACHE= 2.0+ X.endif X X.if defined (WITH_PGSQL) XUSE_PGSQL= yes XWANT_PGSQL_VER= 84 XRUN_DEPENDS+= postgresql-server>=0:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server X.endif X X.if defined(WITH_PHP) && defined(WITH_PGSQL) XRUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_pgsql.so:${PORTSDIR}/databases/php5-pdo_pgsql X.endif X X.if defined(WITH_PHP) XUSE_PHP+= curl pcre bcmath pdo mcrypt mhash session pgsql spl dom X.endif X XLIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl:install X XSUB_FILES= pkg-message X Xdo-install: X @${CP} -R ${WRKSRC} ${WWWDIR} X @${INSTALL_SCRIPT} -m 555 ${WRKSRC}/protected/data/bin/thundersnarf ${PREFIX}/bin/ X @${INSTALL_SCRIPT} -m 555 ${WRKSRC}/protected/data/bin/thundersnarf-poll ${PREFIX}/bin/ X @${CHGRP} -R ${WWWGRP} ${WWWDIR}/protected/runtime \ X ${WWWDIR}/assets X @${CHMOD} -R g+rwx ${WWWDIR}/protected/runtime \ X ${WWWDIR}/assets X X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X @${CP} -Rv ${WRKSRC}/README ${DOCSDIR}/README.pt_BR X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include 4a7e65d99fc99c687b69eea605a4a4c0 echo x - thundersnarf/distinfo sed 's/^X//' >thundersnarf/distinfo << '40bb1e9dd211d4db780768b01042ce64' XMD5 (thundersnarf-1.0b.tar.bz2) = 6b13080fddd0c842bdd04ee3eaf852a3 XSHA256 (thundersnarf-1.0b.tar.bz2) = 43aa4d52971d27bb62b576ef2573be40e1f5e8e99f75f43bdbd79172f153255e XSIZE (thundersnarf-1.0b.tar.bz2) = 1875161 40bb1e9dd211d4db780768b01042ce64 echo x - thundersnarf/pkg-descr sed 's/^X//' >thundersnarf/pkg-descr << 'e2e72c0dab73d748dfb4d8332816ba6c' XThunderSnarf is a web reporting and trending tool for Thunder Cache Pro which Xhas the main goal to provide a strategic overview of how Thunder is caching and Xwhat it is caching, aggregating value and helping on decision making regarding Xthe real web acceleration rates and allowing one to identify unefficient cache Xpatterns, plugins, as well as domains which should have a plugin written for Xand, off course, the top efficient domains and caching patterns as well. X XWWW: http://www.thundercache.com.br e2e72c0dab73d748dfb4d8332816ba6c echo x - thundersnarf/pkg-plist sed 's/^X//' >thundersnarf/pkg-plist << '2252c64805bd9a397a35b6ceb1656c9b' Xbin/thundersnarf Xbin/thundersnarf-poll X%%DOCSDIR%%/README.pt_BR X@dirrm %%DOCSDIR%% X@unexec echo "completely uninstalling %D/%%WWWDIR%%" X@unexec /bin/rm -rf %D/%%WWWDIR%% 2>/dev/null || true 2252c64805bd9a397a35b6ceb1656c9b exit