X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=apache1-mod_watch.spec;h=4439c63fd1145fb70a311fdc58dc21860d571f6b;hb=53ba1bc0f77c577200e141a480ba5a6f56da92a8;hp=08ea962fbd986906c0d43435b1d33aa4d9992974;hpb=8532f574090610b8b221ede7722ea8fd7fd4da60;p=packages%2Fapache1-mod_watch.git diff --git a/apache1-mod_watch.spec b/apache1-mod_watch.spec index 08ea962..4439c63 100644 --- a/apache1-mod_watch.spec +++ b/apache1-mod_watch.spec @@ -1,10 +1,16 @@ +# 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): ModuĀ³ do apache: Interfejs do monitorowania za pomocĀ± MRTG Name: apache1-mod_%{mod_name} Version: 3.18 -Release: 1 +Release: 2 License: BSD Group: Networking/Daemons Source0: http://www.snert.com/Software/download/mod_watch%(echo %{version} | tr -d .).tgz @@ -13,16 +19,14 @@ Source1: %{name}.conf Patch0: %{name}-PLD-v6stuff.patch URL: http://www.snert.com/Software/mod_watch/ BuildRequires: %{apxs} -BuildRequires: apache1-devel -Requires(post,preun): %{apxs} -Requires(post,preun): grep -Requires(preun): fileutils -Requires: apache1 +BuildRequires: apache1-devel >= 1.3.33-2 +%{?with_ipv6:BuildRequires: apache1(ipv6)-devel} +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 _sysconfdir %(%{apxs} -q SYSCONFDIR) +%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 @@ -42,7 +46,9 @@ 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 \ @@ -50,43 +56,48 @@ graficzn %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}} +install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} -install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/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/