]> git.pld-linux.org Git - packages/apache-mod_evasive.git/blob - apache-mod_evasive.spec~
- init
[packages/apache-mod_evasive.git] / apache-mod_evasive.spec~
1 # $Revision$, $Date$
2 %define         mod_name        evasive
3 %define         apxs            %{_sbindir}/apxs
4 Summary:        Apache module: evasive
5 Summary(pl.UTF-8):      ModuĊ‚ Apache'a: evasive
6 Name:           apache-mod_%{mod_name}
7 Version:        1.10.1
8 Release:        1
9 License:        GPL
10 Group:          Networking/Daemons/HTTP
11 Source0:        http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
12 # Source0-md5:  784fca4a124f25ccff5b48c7a69a65e5
13 Source1:        %{name}.conf
14 URL:            http://www.zdziarski.com/projects/mod_evasive/
15 BuildRequires:  %{apxs}
16 BuildRequires:  apache-devel >= 2.2
17 BuildRequires:  rpmbuild(macros) >= 1.268
18 Requires:       apache(modules-api) = %apache_modules_api
19 BuildRoot:      %{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
25 mod_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
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
38
39 install .libs/mod_%{mod_name}20.so $RPM_BUILD_ROOT%{_pkglibdir}
40
41 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 %service -q httpd restart
48
49 %postun
50 if [ "$1" = "0" ]; then
51         %service -q httpd restart
52 fi
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>
63 All persons listed below can be reached at <cvs_login>@pld-linux.org
64
65 $Log$
This page took 0.094027 seconds and 3 git commands to generate.