]> git.pld-linux.org Git - packages/apache-mod_evasive.git/blame - apache-mod_evasive.spec~
- init
[packages/apache-mod_evasive.git] / apache-mod_evasive.spec~
CommitLineData
6674f92f 1# $Revision$, $Date$
2%define mod_name evasive
3%define apxs %{_sbindir}/apxs
4Summary: Apache module: evasive
5Summary(pl.UTF-8): ModuĊ‚ Apache'a: evasive
6Name: apache-mod_%{mod_name}
7Version: 1.10.1
8Release: 1
9License: GPL
10Group: Networking/Daemons/HTTP
11Source0: http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
12# Source0-md5: 784fca4a124f25ccff5b48c7a69a65e5
13Source1: %{name}.conf
14URL: http://www.zdziarski.com/projects/mod_evasive/
15BuildRequires: %{apxs}
16BuildRequires: apache-devel >= 2.2
17BuildRequires: rpmbuild(macros) >= 1.268
18Requires: apache(modules-api) = %apache_modules_api
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
22%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
23
24%description
25mod_evasive is an evasive maneuvers module for Apache.
26
27%description -l pl.UTF-8
28
29%prep
30%setup -q -n mod_%{mod_name}
31
32%build
33%{apxs} -i -c mod_%{mod_name}20.c -o mod_%{mod_name}20.la -DMAILER='/usr/sbin/sendmail -t'
34
35%install
36rm -rf $RPM_BUILD_ROOT
37install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
38
39install .libs/mod_%{mod_name}20.so $RPM_BUILD_ROOT%{_pkglibdir}
40
41install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%post
47%service -q httpd restart
48
49%postun
50if [ "$1" = "0" ]; then
51 %service -q httpd restart
52fi
53
54%files
55%defattr(644,root,root,755)
56%doc README
57%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
58%attr(755,root,root) %{_pkglibdir}/*
59
60%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
61%changelog
62* %{date} PLD Team <feedback@pld-linux.org>
63All persons listed below can be reached at <cvs_login>@pld-linux.org
64
65$Log$
This page took 0.081666 seconds and 4 git commands to generate.