-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmod_dosdetector.spec
59 lines (45 loc) · 1.38 KB
/
mod_dosdetector.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
%define name %{mod_name}
%define version %{mod_version}
%define release 1
# Module-Specific definitions
%define mod_version 0.2
%define mod_name mod_dosdetector
#%define mod_conf 13_%{mod_name}.conf
%define mod_so %{mod_name}.so
%define sourcename %{mod_name}-%{mod_version}
%define apxs /usr/sbin/apxs
Summary: DoS attack detector for the Apache web server
Name: %{name}
Version: %{version}
Release: %{release}
License: Apache License
Group: System/Servers
URL: http://misccs.dyndns.org/mod_dosdetector/
Source0: http://misccs.dyndns.org/mod_dosdetector/%{sourcename}.tar.gz
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildPrereq: httpd-devel apr-devel
%description
mod_auth_pgsql can be used to limit access to documents served by
a web server by checking fields in a table in a PostgresQL
database.
%prep
%setup -q -n %{sourcename}
%build
%{apxs} -c mod_dosdetector.c -n mod_dosdetector.so
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_libdir}/httpd/modules/
cp .libs/mod_dosdetector.so %{buildroot}%{_libdir}/httpd/modules/
# %{apxs} -c -i -a -n 'dosdetector' mod_dosdetector.c
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%post
%postun
%files
%defattr(-,root,root)
%{_libdir}/httpd/modules/
#%config(noreplace) %{ap_confd}/%{mod_conf}
#%doc README INSTALL *.html
%changelog
* Fri Jan 19 2007 <[email protected]> - 0.1-1
- Initial release.