forked from jcu-eresearch/nginx-custom-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx-eresearch.patch
More file actions
75 lines (68 loc) · 2.53 KB
/
nginx-eresearch.patch
File metadata and controls
75 lines (68 loc) · 2.53 KB
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
69
70
71
72
73
74
75
--- nginx.spec 2015-04-07 18:41:45.000000000 +0200
+++ ../../nginx-custom-build/nginx.spec2 2015-04-16 16:44:18.072000000 +0200
@@ -74,12 +74,23 @@
Source8: nginx.service
Source9: nginx.upgrade.sh
Source10: nginx.suse.logrotate
+#Source100: headers-more-nginx-module
+Source101: ngx-fancyindex
+Source102: nginx_ajp_module
+#Source103: nginx-xslt-html-parser.patch
+Source104: nginx-auth-ldap
+#Source105: nginx-http-shibboleth
+Source106: ngx_devel_kit
+Source107: set-misc-nginx-module
License: 2-clause BSD-like license
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: zlib-devel
BuildRequires: pcre-devel
+BuildRequires: openldap-devel
+BuildRequires: libxml2-devel
+BuildRequires: libxslt-devel
Provides: webserver
@@ -100,6 +111,14 @@
%prep
%setup -q
+#cp -R -p %SOURCE100 .
+cp -R -p %SOURCE101 .
+cp -R -p %SOURCE102 .
+#patch -p1 < %SOURCE103
+cp -R -p %SOURCE104 .
+#cp -R -p %SOURCE105 .
+cp -R -p %SOURCE106 .
+cp -R -p %SOURCE107 .
%build
./configure \
@@ -136,7 +155,14 @@
--with-ipv6 \
--with-debug \
%{?with_spdy:--with-http_spdy_module} \
- --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
+ --with-http_spdy_module \
+ --with-http_xslt_module \
+ --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
+ --add-module=%{_builddir}/%{name}-%{version}/ngx-fancyindex \
+ --add-module=%{_builddir}/%{name}-%{version}/nginx_ajp_module \
# --add-module=%{_builddir}/%{name}-%{version}/headers-more-nginx-module \
+ --add-module=%{_builddir}/%{name}-%{version}/nginx-auth-ldap \
# --add-module=%{_builddir}/%{name}-%{version}/nginx-http-shibboleth \
+ --add-module=%{_builddir}/%{name}-%{version}/ngx_devel_kit \
+ --add-module=%{_builddir}/%{name}-%{version}/set-misc-nginx-module \
$*
make %{?_smp_mflags}
%{__mv} %{_builddir}/%{name}-%{version}/objs/nginx \
@@ -175,6 +203,13 @@
--with-ipv6 \
%{?with_spdy:--with-http_spdy_module} \
--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 \
+ --add-module=%{_builddir}/%{name}-%{version}/nginx-auth-ldap \
# --add-module=%{_builddir}/%{name}-%{version}/nginx-http-shibboleth \
+ --add-module=%{_builddir}/%{name}-%{version}/ngx_devel_kit \
+ --add-module=%{_builddir}/%{name}-%{version}/set-misc-nginx-module \
$*
make %{?_smp_mflags}