]> git.pld-linux.org Git - packages/apache1-mod_witch.git/blame - apache1-mod_witch.spec
- converted to UTF-8
[packages/apache1-mod_witch.git] / apache1-mod_witch.spec
CommitLineData
db28fcc7 1%define mod_name witch
582cfaa4 2%define apxs /usr/sbin/apxs1
db28fcc7 3Summary: Apache module: log the access_log and error_log log into the syslogd
b8e04810 4Summary(pl.UTF-8): Moduł do apache przekazujący access_log i error_log do demona syslogd
582cfaa4 5Name: apache1-mod_%{mod_name}
db28fcc7 6Version: 0.0.5
fd5cbd89 7Release: 4
368b6afd 8License: GPL v2
db28fcc7
MW
9Group: Networking/Daemons
10Source0: http://savannah.nongnu.org/download/mod-witch/mod-witch.pkg/%{version}/mod-witch-%{version}.tar.gz
8b57f697 11# Source0-md5: a2ffe2f9e28947426321615e2ba57fc7
582cfaa4 12Source1: %{name}.conf
cb724c85 13URL: http://savannah.nongnu.org/projects/mod-witch/
db28fcc7 14BuildRequires: %{apxs}
6464169f 15BuildRequires: apache1-devel >= 1.3.33-2
c6a3a95b 16BuildRequires: rpmbuild(macros) >= 1.268
6464169f
ER
17Requires(triggerpostun): %{apxs}
18Requires(triggerpostun): grep
19Requires(triggerpostun): sed >= 4.0
fd5cbd89 20Requires: apache1(EAPI)
c6a3a95b 21Obsoletes: apache-mod_witch <= 0.0.5
db28fcc7
MW
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
6464169f
ER
24%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
25%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
db28fcc7
MW
26
27%description
cb724c85
JB
28This mod_witch apache module project intend to help the Apache web
29server to log the access_log and error_log log into the syslogd, this
30way apache will be able to log onto a remote logger machine with the
31syslogd.
db28fcc7 32
b8e04810
JR
33%description -l pl.UTF-8
34Moduł apache'a mod_witch ma pomóc serwerowi WWW apache przekazywać
35logi access_log i error_log do syslogd, umożliwiając w ten sposób
36logowanie na inną maszynę.
db28fcc7
MW
37
38%prep
39%setup -q -n mod-%{mod_name}-%{version}
40
41%build
582cfaa4 42%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so
db28fcc7
MW
43
44%install
45rm -rf $RPM_BUILD_ROOT
6464169f 46install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
db28fcc7
MW
47
48install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
6464169f 49install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
db28fcc7
MW
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%post
c6a3a95b 55%service -q apache restart
db28fcc7 56
3e9825c2 57%postun
db28fcc7 58if [ "$1" = "0" ]; then
c6a3a95b 59 %service -q apache restart
db28fcc7
MW
60fi
61
6464169f 62%triggerpostun -- %{name} < 0.0.5-2.1
225fc8b2 63if grep -q '^Include conf\.d/\*\.conf' /etc/apache/apache.conf; then
6464169f
ER
64 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
65 sed -i -e '
66 /^Include.*mod_%{mod_name}\.conf/d
67 ' /etc/apache/apache.conf
68else
69 # they're still using old apache.conf
70 sed -i -e '
71 s,^Include.*mod_%{mod_name}\.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf,
72 ' /etc/apache/apache.conf
73fi
74if [ -f /var/lock/subsys/apache ]; then
75 /etc/rc.d/init.d/apache restart 1>&2
76fi
77
db28fcc7
MW
78%files
79%defattr(644,root,root,755)
3f9ca957 80%doc ChangeLog README TODO
4cd395ec 81%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
db28fcc7 82%attr(755,root,root) %{_pkglibdir}/*
This page took 0.070528 seconds and 4 git commands to generate.