From bc94de1d1ff4a9ada5de4a6a28683eea475149c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 10 Feb 2005 01:49:12 +0000 Subject: [PATCH] - confdir enabled apache1 - added ipv6 bcond Changed files: apache1-mod_watch.spec -> 1.19 --- apache1-mod_watch.spec | 54 ++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/apache1-mod_watch.spec b/apache1-mod_watch.spec index 08ea962..f038e8e 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: 1.2 License: BSD Group: Networking/Daemons Source0: http://www.snert.com/Software/download/mod_watch%(echo %{version} | tr -d .).tgz @@ -13,16 +19,17 @@ Source1: %{name}.conf Patch0: %{name}-PLD-v6stuff.patch URL: http://www.snert.com/Software/mod_watch/ BuildRequires: %{apxs} -BuildRequires: apache1-devel +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 +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 +49,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,23 +59,17 @@ 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/