Group :: Monitoring
RPM: sqstat
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _htmldir /var/www/html
Name: sqstat
Version: 1.10
Release: alt1
Summary: Squid realtime report generator.
URL: http://samm.kiev.ua/sqstat/
Source: %name-%version.tar.gz
License: ISC-style
Group: Monitoring
Requires: squid-server,mod_php
Patch0: alt.conf.diff
Source1: htaccess
BuildArch: noarch
Packager: Anton Gorlov <stalker at altlinux.ru>
%description
SqStat is a script which allows to look through active squid users connections.
It use cachemgr protocol to get information from squid proxy server.
%prep
%setup -qn %name-%version
%patch0 -p1
%install
#mkdir -p %buildroot%_htmldir
#mkdir -p %buildroot%_htmldir/%name
mkdir -p %buildroot%_htmldir/%name/conf
%__install -m640 %SOURCE1 %buildroot%_htmldir/%name/conf/.htaccess
%__cp sqstat.* %buildroot%_htmldir/%name
%__cp arrow.gif %buildroot%_htmldir/%name
%__cp zhabascript.js %buildroot%_htmldir/%name
%__cp config.inc.php.defaults %buildroot%_htmldir/%name/conf/config.inc.php
%files
%doc docs/*
%dir %_htmldir/%name
%dir %attr (750,root,apache) %_htmldir/%name/conf
%attr (640,root,apache) %_htmldir/%name/%name.*
%attr (640,root,apache) %_htmldir/%name/arrow.gif
%attr (640,root,apache) %_htmldir/%name/zhabascript.js
%config(noreplace) %attr (640,root,apache) %_htmldir/%name/conf/*
%changelog
…
Full changelog you can see here
Name: sqstat
Version: 1.10
Release: alt1
Summary: Squid realtime report generator.
URL: http://samm.kiev.ua/sqstat/
Source: %name-%version.tar.gz
License: ISC-style
Group: Monitoring
Requires: squid-server,mod_php
Patch0: alt.conf.diff
Source1: htaccess
BuildArch: noarch
Packager: Anton Gorlov <stalker at altlinux.ru>
%description
SqStat is a script which allows to look through active squid users connections.
It use cachemgr protocol to get information from squid proxy server.
%prep
%setup -qn %name-%version
%patch0 -p1
%install
#mkdir -p %buildroot%_htmldir
#mkdir -p %buildroot%_htmldir/%name
mkdir -p %buildroot%_htmldir/%name/conf
%__install -m640 %SOURCE1 %buildroot%_htmldir/%name/conf/.htaccess
%__cp sqstat.* %buildroot%_htmldir/%name
%__cp arrow.gif %buildroot%_htmldir/%name
%__cp zhabascript.js %buildroot%_htmldir/%name
%__cp config.inc.php.defaults %buildroot%_htmldir/%name/conf/config.inc.php
%files
%doc docs/*
%dir %_htmldir/%name
%dir %attr (750,root,apache) %_htmldir/%name/conf
%attr (640,root,apache) %_htmldir/%name/%name.*
%attr (640,root,apache) %_htmldir/%name/arrow.gif
%attr (640,root,apache) %_htmldir/%name/zhabascript.js
%config(noreplace) %attr (640,root,apache) %_htmldir/%name/conf/*
%changelog
…
Full changelog you can see here