-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod24u_evasive.spec
100 lines (73 loc) · 3.04 KB
/
mod24u_evasive.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
%define debug_package %{nil}
%define apxs $(which apxs)
%define real_name mod_evasive
Name: mod24u_evasive
Version: 1.10.1
#Release: 6.jason.2
#Release: 7.lx.el5
Release: 7.kkr%{?dist}
Summary: Denial of Service evasion module for Apache
Group: System Environment/Daemons
License: GPLv2+
URL: http://www.zdziarski.com/projects/mod_evasive/
Source0: http://www.zdziarski.com/projects/mod_evasive/mod_evasive_%{version}_apache_2.4.tar.gz
Source1: mod_evasive.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: httpd24u-devel
Requires: httpd24u
# Hardcode httpd-mm value for copr build
Requires: httpd-mmn = 20120211x8664
#Requires: httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing)
Obsoletes: mod_evasive
%description
mod_evasive is an evasive maneuvers module for Apache to provide evasive
action in the event of an HTTP DoS or DDoS attack or brute force attack. It
is also designed to be a detection and network management tool, and can be
easily configured to talk to firewalls, routers, etc. mod_evasive presently
reports abuses via email and syslog facilities.
%prep
%setup -q -n %{real_name}
%build
%{apxs} -Wc,"%{optflags}" -c mod_evasive24.c
%install
rm -rf $RPM_BUILD_ROOT
mkdir -pm 755 \
$RPM_BUILD_ROOT%{_libdir}/httpd/modules \
$RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
install -pm 755 .libs/mod_evasive24.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README LICENSE CHANGELOG test.pl
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*
%{_libdir}/httpd/modules/*
%changelog
* Fri Jul 14 2016 Mustafa Ramadhan <mustafa.ramadhan@lxcenter.org> - 1.10.1-7.mr
- recompile for Kloxo-MR for httpd 2.4
* Mon Sep 24 2012 Mustafa Ramadhan <mustafa.ramadhan@lxcenter.org> - 1.10.1-7.lx.el5
- recompile for lxcenter
* Fri Sep 18 2009 Jason Litka <http://www.jasonlitka.com> - 1.10.1-6
- Rebuild for EL
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.10.1-6
- fix license tag
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.10.1-5.1
- Autorebuild for GCC 4.3
* Wed Sep 05 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-4.1
- Rebuild for APR changes
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.10.1-4
- Rebuild for selinux ppc32 issue.
* Tue Apr 10 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-3
- Modify the URL and finally import into extras.
* Mon Jan 29 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-2
- The source moved to another domain since last year.
- use _sbindir macro for apxs.
* Tue Dec 06 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-1
- Cleaning up description
- Cleaning up install
- Slight modification to default config (add DOSWhitelist entries)
- Disttagging
- Adding test.pl to docs
* Wed Nov 16 2005 Kosntantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-0.1
- Initial packaging.