X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=apache1-mod_watch.spec;h=f038e8e17864f41cbd9df7a2160cb0abaa46919f;hb=bc94de1d1ff4a9ada5de4a6a28683eea475149c8;hp=af18f621fc17da33cffa7e2cd12db7360226d8c2;hpb=cf7f9f5c06cc51412cfe9247c213fae47c2f5c22;p=packages%2Fapache1-mod_watch.git diff --git a/apache1-mod_watch.spec b/apache1-mod_watch.spec index af18f62..f038e8e 100644 --- a/apache1-mod_watch.spec +++ b/apache1-mod_watch.spec @@ -1,23 +1,35 @@ +# 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/apxs +%define apxs /usr/sbin/apxs1 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 +Name: apache1-mod_%{mod_name} +Version: 3.18 +Release: 1.2 License: BSD Group: Networking/Daemons -Source0: http://www.snert.com/Software/mod_watch/mod_watch%(echo %{version} | sed -e "s#\.##g").tgz +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/ BuildRequires: %{apxs} -BuildRequires: apache(EAPI)-devel -Prereq: %{_sbindir}/apxs -Requires: apache(EAPI) +BuildRequires: apache1-devel >= 1.3.33-2 +%{?with_ipv6:BuildRequires: apache1(ipv6)-devel} +Requires(post,preun): %{apxs} +Requires(post,preun): grep +Requires(preun): fileutils +Requires: apache1 >= 1.3.33-2 +Obsoletes: apache-mod_%{mod_name} <= %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _pkglibdir %(%{apxs} -q LIBEXECDIR) +%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) +%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) %description This module will watch and collect the bytes, requests, and documents @@ -37,49 +49,58 @@ graficzn %prep %setup -q -n mod_%{mod_name}-%{version} -%patch -p0 +%{?with_ipv6:%patch -p0} + +mv mod_watch.html mod_watch_pl.html %build -%{__make} build-dynamic +%{__make} build-dynamic \ + APXS=%{apxs} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd} +install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} -install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/mod_watch.conf +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf -mv mod_watch.html mod_watch_pl.html sed -e 's/