forked from jcu-eresearch/nginx-custom-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx-eresearch.patch
68 lines (63 loc) · 2.47 KB
/
nginx-eresearch.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
diff --git a/nginx.spec b/nginx.spec
index e9fa05b..0e807c1 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -1,9 +1,8 @@
-#
%define nginx_home %{_localstatedir}/cache/nginx
%define nginx_user nginx
%define nginx_group nginx
-Summary: nginx is a high performance web server
+Summary: nginx is a high performance web server (Built with XSLT, XSLT HTML Parser, and Auth Request modules)
Name: nginx
Version: 1.3.16
Release: 1%{?dist}.ngx
@@ -18,6 +17,11 @@ Source4: nginx.conf
Source5: nginx.vh.default.conf
Source6: nginx.vh.example_ssl.conf
Source7: nginx.suse.init
+Source8: ngx_http_auth_request_module
+Source9: headers-more-nginx-module-0.19
+Source10: ngx-fancyindex
+Source11: nginx_ajp_module
+Source12: nginx-xslt-html-parser.patch
License: 2-clause BSD-like license
%if 0%{?suse_version}
@@ -54,6 +57,12 @@ not stripped version of nginx build with the debugging log support
%prep
%setup -q
+cp -R -p %SOURCE8 .
+cp -R -p %SOURCE9 .
+cp -R -p %SOURCE10 .
+cp -R -p %SOURCE11 .
+patch -p1 < %SOURCE11/ajp.patch
+patch -p1 < %SOURCE12
%build
./configure \
@@ -89,6 +97,13 @@ not stripped version of nginx build with the debugging log support
--with-ipv6 \
--with-debug \
--with-cc-opt="%{optflags} $(pcre-config --cflags)" \
+ --with-http_spdy_module \
+ --with-http_xslt_module \
+ --add-module=%{_builddir}/%{name}-%{version}/ngx-fancyindex \
+ --add-module=%{_builddir}/%{name}-%{version}/nginx_ajp_module \
+ --add-module=%{_builddir}/%{name}-%{version}/headers-more-nginx-module-0.19 \
+ --add-module=%{_builddir}/%{name}-%{version}/ngx_http_auth_request_module \
+# --add-module=%{_builddir}/%{name}-%{version}/ngx_http_auth_request_module-a29d74804ff1 \
$*
make %{?_smp_mflags}
%{__mv} %{_builddir}/%{name}-%{version}/objs/nginx \
@@ -125,6 +140,13 @@ make %{?_smp_mflags}
--with-file-aio \
--with-ipv6 \
--with-cc-opt="%{optflags} $(pcre-config --cflags)" \
+ --with-http_spdy_module \
+ --with-http_xslt_module \
+ --add-module=%{_builddir}/%{name}-%{version}/ngx-fancyindex \
+ --add-module=%{_builddir}/%{name}-%{version}/nginx_ajp_module \
+ --add-module=%{_builddir}/%{name}-%{version}/headers-more-nginx-module-0.19 \
+ --add-module=%{_builddir}/%{name}-%{version}/ngx_http_auth_request_module \
+# --add-module=%{_builddir}/%{name}-%{version}/ngx_http_auth_request_module-a29d74804ff1 \
$*
make %{?_smp_mflags}