%define mod_name watch %define apxs /usr/sbin/apxs Summary: Apache module: Monitoring Interface for MRTG Summary(pl): Moduł do apache: Interfejs do monitorowania za pomocą MRTG Name: apache-mod_%{mod_name} Version: 3.13 Release: 3 License: BSD Group: Networking/Daemons Source0: http://www.snert.com/Software/mod_watch/mod_watch%(echo %{version} | sed -e "s#\.##g").tgz Source1: %{name}.conf Patch0: %{name}-PLD-v6stuff.patch URL: http://www.snert.com/Software/mod_watch/ BuildRequires: %{apxs} BuildRequires: apache(EAPI)-devel Prereq: %{_sbindir}/apxs Requires: apache(EAPI) BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _pkglibdir %(%{apxs} -q LIBEXECDIR) %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 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} %patch -p0 %build %{__make} build-dynamic %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd} install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/mod_watch.conf mv mod_watch.html mod_watch_pl.html sed -e 's/