From 607bab06df473dbd1584516308ce781339c768b2 Mon Sep 17 00:00:00 2001 From: zbyniu Date: Tue, 23 Nov 2004 23:23:05 +0000 Subject: [PATCH] - initial Changed files: apache-mod_security.spec -> 1.1 --- apache-mod_security.spec | 66 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 apache-mod_security.spec diff --git a/apache-mod_security.spec b/apache-mod_security.spec new file mode 100644 index 0000000..b435384 --- /dev/null +++ b/apache-mod_security.spec @@ -0,0 +1,66 @@ +%define mod_name security +%define apxs %{_sbindir}/apxs +Summary: Apache module: securing web applications +Summary(pl): Modu³ do apache: ochrona aplikacji webowych +Name: apache-mod_%{mod_name} +Version: 1.8.6 +Release: 0.1 +License: GPL v2 +Group: Networking/Daemons +Source0: http://www.modsecurity.org/download/mod_security-%{version}.tar.gz +# Source0-md5: f6bf4724dd0db3d37586b64bc0ee160d +URL: http://sourceforge.net/projects/mod-acct/ +BuildRequires: apache-devel +Requires(post,preun): %{apxs} +Requires: apache +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _pkglibdir %(%{apxs} -q LIBEXECDIR) +%define _sysconfdir /etc/httpd + +%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 +ModSecurity jest otwartym silnikiem wykrywania i zapobiegania +intruzom dla aplikacji webowych. Oferuje wbudwany w serwer www, +dzia³aj±c jak potê¿ny parasol chroni±cy aplikacje webowe przed +atakami. + +%prep +%setup -q -n mod_%{mod_name}-%{version} + +%build +cd apache2 +%{apxs} -c mod_%{mod_name}.c + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_pkglibdir} + +install apache2/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 +if [ -f /var/lock/subsys/httpd ]; then + /etc/rc.d/init.d/httpd restart 1>&2 +fi + +%preun +if [ "$1" = "0" ]; then + %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 + if [ -f /var/lock/subsys/httpd ]; then + /etc/rc.d/init.d/httpd restart 1>&2 + fi +fi + +%files +%defattr(644,root,root,755) +%doc README CHANGES modsecurity-manual.pdf httpd.conf* +%attr(755,root,root) %{_pkglibdir}/* -- 2.43.0