packages: apache-mod_evasive/apache-mod_evasive.spec - copied from mod_dose...

shadzik shadzik at pld-linux.org
Mon Jun 15 11:11:24 CEST 2009


Author: shadzik                      Date: Mon Jun 15 09:11:24 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- copied from mod_dosevasive
- rel 5

---- Files affected:
packages/apache-mod_evasive:
   apache-mod_evasive.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/apache-mod_evasive/apache-mod_evasive.spec
diff -u packages/apache-mod_evasive/apache-mod_evasive.spec:1.2 packages/apache-mod_evasive/apache-mod_evasive.spec:1.3
--- packages/apache-mod_evasive/apache-mod_evasive.spec:1.2	Thu May 14 01:41:25 2009
+++ packages/apache-mod_evasive/apache-mod_evasive.spec	Mon Jun 15 11:11:19 2009
@@ -1,42 +1,60 @@
 # $Revision$, $Date$
+# TODO: cp spec name to apache-mod_evasive.spec as it is now official name
+# see http://www.nuclearelephant.com/projects/dosevasive/
 %define		mod_name	evasive
-%define 	apxs		%{_sbindir}/apxs
-Summary:	Apache module: evasive
-Summary(pl.UTF-8):	Moduł Apache'a: evasive
+%define		apxs		/usr/sbin/apxs
+Summary:	Apache DoS Evasive Maneuvers Module
+Summary(pl.UTF-8):	Moduł manewrów omijających ataki DoS dla Apache
 Name:		apache-mod_%{mod_name}
 Version:	1.10.1
-Release:	1
-License:	GPL
+Release:	5
+License:	GPL v2+
 Group:		Networking/Daemons/HTTP
-Source0:	http://www.zdziarski.com/projects/mod_evasive/mod_evasive_%{version}.tar.gz
+Source0:	http://www.zdziarski.com/projects/mod_evasive/mod_%{mod_name}_%{version}.tar.gz
 # Source0-md5:	784fca4a124f25ccff5b48c7a69a65e5
 Source1:	%{name}.conf
 URL:		http://www.zdziarski.com/projects/mod_evasive/
 BuildRequires:	%{apxs}
-BuildRequires:	apache-devel >= 2.2
+BuildRequires:	apache-devel >= 2.0
 BuildRequires:	rpmbuild(macros) >= 1.268
+BuildRequires:	zlib-devel
 Requires:	apache(modules-api) = %apache_modules_api
+Provides:	apache-mod_dosevasive
+Obsoletes:	apache-mod_dosevasive
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
-%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
+%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
-mod_evasive is an evasive maneuvers module for Apache.
+mod_(dos)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 ipchains,
+firewalls, routers, and etcetera. mod_dosevasive presently reports
+abuses via email and syslog facilities.
 
 %description -l pl.UTF-8
+mod_(dos)evasive to moduł manewrów omijających dla Apache, zapewniający
+akcje omijające w przypadku ataków DoS, DDoS lub brute force na usługę
+HTTP. Został zaprojektowany także jako narzędzie do wykrywania i
+zarządzania siecią, może być łatwo skonfigurowany do współpracy z
+ipchains, firewallami, routerami itp. mod_dosevasive obecnie raportuje
+nadużycia pocztą elektroniczną i poprzez sysloga.
 
 %prep
 %setup -q -n mod_%{mod_name}
 
 %build
-%{apxs} -c mod_%{mod_name}20.c -o mod_%{mod_name}20.la -DMAILER='/usr/lib/sendmail -t'
+%{apxs} -c mod_%{mod_name}20.c -lz
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
-install .libs/mod_%{mod_name}20.so $RPM_BUILD_ROOT%{_pkglibdir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
+install -d $RPM_BUILD_ROOT%{_pkglibdir}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+
+install .libs/mod_%{mod_name}20.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/80_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -52,7 +70,7 @@
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -61,8 +79,93 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.2  2009/05/13 23:41:25  glen
-- adapter, standard path for sendmail wrapper
+Revision 1.3  2009/06/15 09:11:19  shadzik
+- copied from mod_dosevasive
+- rel 5
+
+Revision 1.27  2009/02/21 15:58:22  gotar
+- updated URLs
+
+Revision 1.26  2008/10/25 15:50:01  blues
+- HTTP group
+
+Revision 1.25  2007/12/09 10:42:23  glen
+- apache-apxs -> %{apxs} in BR
+
+Revision 1.24  2007-06-07 10:52:26  shadzik
+- BR s@%{apxs}@apache-apxs at g
+
+Revision 1.23  2007/02/12 21:23:47  glen
+- tabs in preamble
+
+Revision 1.22  2007/02/12 00:48:36  baggins
+- converted to UTF-8
+
+Revision 1.21  2006/04/14 17:07:56  glen
+- restart apache in %postun rather in %preun as the config file, loading module
+  is still there and module will be loaded after package is uninstalled, which
+  later causes missing configuration file errors.
+
+Revision 1.20  2006/03/09 11:29:32  glen
+- cosmetics
+- spec shouldn't moved but copied as old tags are present
+
+Revision 1.19  2006/03/09 11:22:41  matkor
+- Updated to version 1.10.1-1
+- Seems to work - STBR(Ac)
+- CVS admin pls cp to apache-mod_evasive.spec (as project name changed).
+
+Revision 1.18  2006/01/30 17:39:10  glen
+- use %service
+
+Revision 1.17  2005/12/27 01:33:00  glen
+- unified files
+
+Revision 1.16  2005/12/26 19:30:07  glen
+- unified
+
+Revision 1.15  2005/12/25 23:05:49  glen
+- fix sysconfdir; rel 3
+
+Revision 1.14  2005/12/21 23:36:54  glen
+- rebuild with new apache
+- apxs calling not needed (which is broken anyway)
+- rel 2
+
+Revision 1.13  2005/12/12 13:44:44  glen
+- adapterized (sorted %verify attrs)
+
+Revision 1.12  2005/02/05 23:45:34  matowy
+- up to 1.10
+
+Revision 1.11  2004/12/29 23:40:15  zergin
+- path corrections, and forgot to add to %file
+
+Revision 1.10  2004/12/29 23:17:58  zergin
+- added initial config so it'll work right out of the box
+
+Revision 1.9  2004/10/10 12:05:10  havner
+- rel up for rebuild with new apache/apr
+
+Revision 1.8  2004/10/06 11:34:16  qboosh
+- BR: zlib-devel
+
+Revision 1.7  2004/09/19 15:30:22  radek
+- NOTE: version for apache1 is available in this tarball
+
+Revision 1.6  2004/09/19 15:29:40  radek
+- release 1: fixed building and License
+
+Revision 1.5  2003/10/28 21:09:14  qboosh
+- descriptions
+- updated URLs, started update to 1.8
+
+Revision 1.3  2003/05/26 16:24:19  malekith
+- massive attack: adding Source-md5
+
+Revision 1.2  2003/05/25 05:45:34  misi3k
+- massive attack s/pld.org.pl/pld-linux.org/
 
-Revision 1.1  2009/05/13 23:38:01  shadzik
-- init
+Revision 1.1  2003/05/16 21:12:10  misi3k
+- new
+  NFY
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/apache-mod_evasive/apache-mod_evasive.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list