diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-04 17:31:47 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-04 17:31:47 +0000 |
commit | e2daa8d07fa3e292c91a3405b8efc1db6a643904 (patch) | |
tree | 82f3041529b85163775d75eb8d149448824bfe33 /www/sqstat | |
parent | a442fe71d52fbcda3cb6bef7db3e7db323900a11 (diff) | |
download | ports-e2daa8d07fa3e292c91a3405b8efc1db6a643904.tar.gz ports-e2daa8d07fa3e292c91a3405b8efc1db6a643904.zip |
Notes
Diffstat (limited to 'www/sqstat')
-rw-r--r-- | www/sqstat/Makefile | 45 | ||||
-rw-r--r-- | www/sqstat/distinfo | 3 | ||||
-rw-r--r-- | www/sqstat/files/pkg-message.in | 17 | ||||
-rw-r--r-- | www/sqstat/pkg-descr | 5 |
4 files changed, 70 insertions, 0 deletions
diff --git a/www/sqstat/Makefile b/www/sqstat/Makefile new file mode 100644 index 000000000000..a5ce99475350 --- /dev/null +++ b/www/sqstat/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: sqstat +# Date created: 4 May 2006 +# Whom: Sergey Matveychuk <sem@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= sqstat +PORTVERSION= 0.9.5 +CATEGORIES= www +MASTER_SITES= http://samm.kiev.ua/sqstat/ + +MAINTAINER= sem@FreeBSD.org +COMMENT= A script which allows to look through active squid users connections + +USE_PHP= pcre +NO_BUILD= yes +PKGMESSAGE= ${WRKDIR}/pkg-message + +SQSTATDIR?= share/${PORTNAME} + +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_LIST= SQSTATDIR=${SQSTATDIR} + +PLIST_DIRS= ${SQSTATDIR} +PLIST_FILES= ${SQSTATDIR}/sqstat.css ${SQSTATDIR}/sqstat.php +PORTDOCS= CHANGES LICENSE README TODO + +do-install: + @${MKDIR} ${PREFIX}/${SQSTATDIR}; \ + for f in ${PLIST_FILES}; do \ + ${INSTALL_DATA} ${WRKSRC}/$${f##*/} ${PREFIX}/${SQSTATDIR}; \ + done +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR}; \ + for f in ${PORTDOCS}; do \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \ + done +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/www/sqstat/distinfo b/www/sqstat/distinfo new file mode 100644 index 000000000000..be2ee101f0ea --- /dev/null +++ b/www/sqstat/distinfo @@ -0,0 +1,3 @@ +MD5 (sqstat-0.9.5.tar.gz) = fe6ee9b65afb33dd32b51a4e682bf16e +SHA256 (sqstat-0.9.5.tar.gz) = 6bc3f0efe1ad1faf11e2206789058a3b532b6ac8cebea09188f689a2761da3e1 +SIZE (sqstat-0.9.5.tar.gz) = 4901 diff --git a/www/sqstat/files/pkg-message.in b/www/sqstat/files/pkg-message.in new file mode 100644 index 000000000000..00c1f3db3e90 --- /dev/null +++ b/www/sqstat/files/pkg-message.in @@ -0,0 +1,17 @@ +====================================================================== +- Edit %%PREFIX%%/%%SQSTATDIR%%/sqstat.php file: + +set $squidhost, $squidport, $cachemgr_passwd, $resolveip as you like. + +- Set up squid: + +acl manager proto cache_object +# replace 10.0.0.1 with your webserver IP +acl webserver src 10.0.0.1/255.255.255.255 +http_access allow manager webserver +http_access deny manager + +- Set up apache web server: + +Alias /sqstat "%%PREFIX%%/%%SQSTATDIR%%/" +====================================================================== diff --git a/www/sqstat/pkg-descr b/www/sqstat/pkg-descr new file mode 100644 index 000000000000..0eee6f6071f4 --- /dev/null +++ b/www/sqstat/pkg-descr @@ -0,0 +1,5 @@ +SqStat is a script which allows to look through active squid users +connections. It use cachemgr protocol to get information from +squid proxy server. + +WWW: http://samm.kiev.ua/sqstat/ |