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

Changes of Revision 2

[-] Added apache2-mod_security.spec
x
 
1
@@ -0,0 +1,77 @@
2
+#
3
+# spec file for package apache2-mod_security (Version 1.9.5)
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
+%define apache apache2
15
+%define modname mod_security
16
+%define tarballname modsecurity-apache_%{version}
17
+
18
+%define apxs              %{_sbindir}/apxs2
19
+%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
20
+%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
21
+%define apache_mmn       %(MMN=$(%{apxs} -q LIBEXECDIR)/MMN; test -x $MMN && $MMN)
22
+#
23
+Name: apache2-mod_security
24
+Version: 1.9.5
25
+Release: 1
26
+#
27
+License: GPL
28
+Group: Productivity/Networking/Web/Servers
29
+#
30
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
31
+BuildRequires: apache2-devel
32
+Requires:     apache2 %{apache_mmn}
33
+#
34
+URL: http://www.modsecurity.org
35
+Source: http://www.modsecurity.org/download/%{tarballname}.tar.gz
36
+Source1: http://www.modsecurity.org/download/modsecurity-rules-current.tar.gz
37
+#
38
+Summary:      ModSecurity Open Source Web Application Firewall
39
+%description
40
+ModSecurity(TM) is an open source intrusion detection and
41
+prevention engine for web applications (or a web application
42
+firewall). Operating as an Apache Web server module or
43
+standalone, the purpose of ModSecurity is to increase web
44
+application security, protecting web applications from known
45
+and unknown attacks.
46
+
47
+ Author:
48
+--------
49
+    Ivan Ristic <ivanr@webkreator.com>
50
+
51
+%prep
52
+%setup -n %{tarballname}
53
+mkdir rules-current
54
+tar xzf %{S:1} -C rules-current
55
+
56
+%build
57
+pushd %{apache}
58
+    CFLAGS="%{optflags}" \
59
+    %{apxs} -c %{modname}.c
60
+popd
61
+
62
+%install
63
+%{__install} -Dd -m 0755 %{buildroot}%{apache_libexecdir}
64
+%{apxs} -i -S LIBEXECDIR=%{buildroot}%{apache_libexecdir} -n %{modname} %{apache}/%{modname}.la
65
+%{__install} -D -m 0644 httpd.conf.example-minimal %{buildroot}%{apache_sysconfdir}/conf.d/%{modname}.conf
66
+
67
+%clean
68
+%{__rm} -rf %{buildroot};
69
+
70
+%files
71
+%defattr(-, root, root, 0755)
72
+%{apache_libexecdir}/%{modname}.so
73
+%config(noreplace) %{apache_sysconfdir}/conf.d/%{modname}.conf
74
+%doc util/ httpd.conf.example-minimal rules-current/
75
+%doc doc/html-multipage/ doc/*.pdf
76
+%doc README CHANGES LICENSE
77
+
78
+%changelog
79