Logoj0ke.net Open Build Service > Projects > Apache:Modules > apache2-mod_security25 > Changes
Sign Up | Log In

Changes of Revision 2

[-] Added apache2-mod_security2.spec
x
 
1
@@ -0,0 +1,75 @@
2
+#
3
+# spec file for package apache2-mod_security2 (Version 2.1.7)
4
+#
5
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+# norootforbuild
13
+
14
+Name:           apache2-mod_security2
15
+Version:        2.1.7
16
+Release:        1
17
+#
18
+License:        GPL
19
+Group:          Productivity/Networking/Web/Servers
20
+#
21
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
22
+BuildRequires:  apache2-devel apache2-prefork libxml2-devel pcre-devel
23
+%define apache        apache2
24
+%define modname       mod_security2
25
+%define tarballname   modsecurity-apache_%{version}
26
+#
27
+%define apxs              %{_sbindir}/apxs2
28
+%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
29
+%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
30
+%define apache_mmn       %(MMN=$(%{apxs} -q LIBEXECDIR)/MMN; test -x $MMN && $MMN)
31
+Requires:       apache2 %{apache_mmn}
32
+#
33
+Url:            http://www.modsecurity.org
34
+Source:         http://www.modsecurity.org/download/%{tarballname}.tar.gz
35
+#
36
+Summary:        ModSecurity Open Source Web Application Firewall
37
+
38
+%description
39
+ModSecurity(TM) is an open source intrusion detection and
40
+prevention engine for web applications (or a web application
41
+firewall). Operating as an Apache Web server module or
42
+standalone, the purpose of ModSecurity is to increase web
43
+application security, protecting web applications from known
44
+and unknown attacks.
45
+
46
+ Author:
47
+--------
48
+    Ivan Ristic <ivanr@webkreator.com>
49
+
50
+%prep
51
+%setup -n %{tarballname}
52
+perl -p -i.orig -e \
53
+        "s|^(CFLAGS =.*)|\$1 $(%{apxs} -q CFLAGS)| ;\
54
+         s|^(top_dir +=).*|\1 $(%{apxs} -q exp_installbuilddir)/..|;
55
+         s|^(APXS +=).*|\$1 %apxs|" \
56
+    apache2/Makefile
57
+diff -urN apache2/Makefile{.orig,} ||:
58
+
59
+%build
60
+%{__make} -C apache2
61
+
62
+%install
63
+%makeinstall -C apache2
64
+%{__install} -D -m 0644 modsecurity.conf-minimal %{buildroot}%{apache_sysconfdir}/conf.d/%{modname}.conf
65
+
66
+%clean
67
+%{__rm} -rf %{buildroot};
68
+
69
+%files
70
+%defattr(-, root, root, 0755)
71
+%{apache_libexecdir}/%{modname}.so
72
+%config(noreplace) %{apache_sysconfdir}/conf.d/%{modname}.conf
73
+%doc CHANGES LICENSE modsecurity.conf-minimal README.TXT
74
+%doc doc/ rules/
75
+
76
+%changelog
77