SPECS: apache-mod_security2.spec (NEW) - brand new, incompatible w...

djrzulf djrzulf at pld-linux.org
Sat Feb 16 23:19:38 CET 2008


Author: djrzulf                      Date: Sat Feb 16 22:19:38 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- brand new, incompatible with mod_security, but spec is based on
  1.x version
- rel 0.1, need testing,

---- Files affected:
SPECS:
   apache-mod_security2.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/apache-mod_security2.spec
diff -u /dev/null SPECS/apache-mod_security2.spec:1.1
--- /dev/null	Sat Feb 16 23:19:38 2008
+++ SPECS/apache-mod_security2.spec	Sat Feb 16 23:19:33 2008
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+%define		mod_name	security2
+%define 	apxs		/usr/sbin/apxs
+Summary:	Apache module: securing web applications
+Summary(pl.UTF-8):	Moduł do apache: ochrona aplikacji WWW
+Name:		apache-mod_%{mod_name}
+Version:	2.1.5
+Release:	0.1
+License:	GPL v2
+Group:		Networking/Daemons
+Source0:	http://www.modsecurity.org/download/modsecurity-apache_%{version}.tar.gz
+# Source0-md5:	5ecbc8dbebbfcc8f850937167891fc9d
+URL:		http://www.modsecurity.org/
+BuildRequires:	apache-devel
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	apache(modules-api) = %apache_modules_api
+Obsoletes:	apache-mod_security
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)
+
+%description
+ModSecurity is an open source intrusion detection and prevention
+engine for web applications. It operates embedded into the web server,
+acting as a powerful umbrella - shielding web applications from
+attacks.
+
+%description -l pl.UTF-8
+ModSecurity jest otwartym silnikiem wykrywania i zapobiegania intruzom
+dla aplikacji WWW. Operuje w ramach serwera WWW, działając jak potężny
+parasol chroniący aplikacje WWW przed atakami.
+
+%prep
+%setup -q -n modsecurity-apache_%{version}
+
+%build
+cd apache2
+%{apxs} -c mod_%{mod_name}.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+
+install apache2/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
+	$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q httpd restart
+
+%postun
+if [ "$1" = "0" ]; then
+	%service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README.TXT modsecurity*
+%doc doc/*.html doc/*.gif doc/*.jpg rules/*
+%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"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-02-16 22:19:33  djrzulf
+- brand new, incompatible with mod_security, but spec is based on
+  1.x version
+- rel 0.1, need testing,
+
================================================================


More information about the pld-cvs-commit mailing list