# TODO # - strange error when accessing "/~watch-info": # [Thu Feb 10 03:16:16 2005] [warn] " 1\n\b" concurrency counter went negative; resetting to zero %bcond_without ipv6 # disable IPv6 support %define mod_name watch %define apxs /usr/sbin/apxs1 Summary: Apache module: Monitoring Interface for MRTG Summary(pl.UTF-8): Moduł do apache: Interfejs do monitorowania za pomocą MRTG Name: apache1-mod_%{mod_name} Version: 3.18 Release: 4 License: BSD Group: Networking/Daemons Source0: http://www.snert.com/Software/download/mod_watch%(echo %{version} | tr -d .).tgz # Source0-md5: 1409df800f24214bed16ca753b9967ff Source1: %{name}.conf Patch0: %{name}-PLD-v6stuff.patch URL: http://www.snert.com/Software/mod_watch/ #{?with_ipv6:BuildRequires: apache1(ipv6)-devel} BuildRequires: apache1-devel >= 1.3.39 BuildRequires: rpmbuild(macros) >= 1.268 Requires: apache1(EAPI) Obsoletes: apache-mod_watch <= 3.18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d %description This module will watch and collect the bytes, requests, and documents in & out per virtual host, file owner, remote-ip address, directory or location, and the web server as a whole. This module was designed for use with MRTG, which will make nice graphical representations of the data, but is general enough that it can be applied to other purposes, as the raw data is accessed by a URL. This module supports mod_vhost_alias and mod_gzip. %description -l pl.UTF-8 Ten moduł kontroluje i zbiera informacje na temat ilości przesłanych bajtów (przychodzących i wychodzących) wg. serwera wirtualnego, właściciela plików, zdalnego adresu ip, katalogu lub lokacji oraz serwera jako całości. Moduł został zaprojektowany do pracy z MRTG, dzięki czemu otrzymamy ładną, graficzną reprezentacje danych. Moduł wspiera mod_vhost_alias oraz mod_gzip. %prep %setup -q -n mod_%{mod_name}-%{version} %{?with_ipv6:%patch -p0} mv mod_watch.html mod_watch_pl.html sed -e 's/