Name: py-htbstat Version: 0.2.3 Release: dor2 Summary: Python module HTBstat and (CGI and shell) scripts to collect and analyze HTB statistics. License: GPL Group: Networking/Tools Requires: python-base py-rrdtool Packager: Dmytro O. Redchuk Url: http://www2.ldc.net/~dor Source: %{name}-%{version}-%{release}.src.tar.bz2 Provides: python(HTBstat) %define python_libdir %_libdir/python%__python_version # Automatically added by buildreq on Thu Apr 14 2005 (-ba) BuildRequires: python-base python-modules-compiler python-modules-encodings rpm-build-python %description Python module HTBstat and (CGI and shell) scripts to collect and analyze HTB statistics. Uses py-rrdtool to work with RRD bases. %prep %setup %install mkdir -p $RPM_BUILD_ROOT/%python_libdir/site-packages/HTBstat cp HTBstat/*.py $RPM_BUILD_ROOT/%python_libdir/site-packages/HTBstat mkdir -p $RPM_BUILD_ROOT/usr/bin cp bin/statsfill.py $RPM_BUILD_ROOT/usr/bin/htbstatsfill.py cp bin/makestat.sh $RPM_BUILD_ROOT/usr/bin/htbmakestat.sh mkdir -p $RPM_BUILD_ROOT/etc/htbstat cp etc/htbstat.conf etc/htbstat.cgi etc/functions $RPM_BUILD_ROOT/etc/htbstat mkdir -p $RPM_BUILD_ROOT/var/www/cgi-bin cp cgi-bin/htbstat.py cgi-bin/htbcheck.py cgi-bin/dumpclass.py cgi-bin/htbstatpic.py\ $RPM_BUILD_ROOT/var/www/cgi-bin mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version} cp -r doc/* $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version} %files %dir /%python_libdir/site-packages/HTBstat /%python_libdir/site-packages/HTBstat/*.py /%python_libdir/site-packages/HTBstat/*.pyc /usr/bin/* %dir /etc/htbstat /etc/htbstat/* %docdir /usr/share/doc/%{name}-%{version} /usr/share/doc/%{name}-%{version} /var/www/cgi-bin/* %changelog * Wed Jan 16 2008 Dmytro O. Redchuk 0.2.3-dor2 - Added consolidation function selection field to cgi script. - Minor changes: renamed "irate" and "iceil" ( to "rate" and "ceil") on pictures and cleaned the code a bit. * Tue Jan 15 2008 Dmytro O. Redchuk 0.2.3-dor1 - Fixed `re's in HTBstat.py to accept `backlog [0-9]b [0-9]p' format (takes into account packets only though). - Fixed `kpps' input field interpretation. * Mon Oct 09 2006 Dmytro O. Redchuk 0.2.2-dor1 - Changed all (class and scripts) to deal with bits, not kbits - Fixed `re's in HTBstat.py to accept different `tc -s class' output formats - rate and ceil values were stored in kbits not bits -- fixed - Some other fixes for bugs in one-device mode * Wed Sep 27 2006 Dmytro O. Redchuk 0.2.1-dor3 - Made it possible to use xxxx:xxxx classids. * Fri Dec 16 2005 Dmytro O. Redchuk 0.2-dor1 - Changed method of setting graph upper limit (was: rrdtool's LIMIT, now: -u [-r]) - Added wwwpicpath to cgi config file. - Added htbstatpic.py for getting single picture (png format). * Thu Mar 24 2005 Dmytro O. Redchuk 0.1-dor1 - Initial build.