Browse code

Adding support for njs module in nginx

Change-Id: I2cf4e83165b52eb3d9dabf3c6a0a5ead25b1931f
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5239
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

DheerajSShetty authored on 2018/06/09 06:13:55
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        High-performance HTTP server and reverse proxy
2 2
 Name:           nginx
3 3
 Version:        1.13.8
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        BSD-2-Clause
6 6
 URL:            http://nginx.org/download/nginx-%{version}.tar.gz
7 7
 Group:          Applications/System
... ...
@@ -10,13 +10,20 @@ Distribution:   Photon
10 10
 Source0:        %{name}-%{version}.tar.gz
11 11
 %define sha1    nginx=a1f9348c9c46f449a0b549d0519dd34191d30cee
12 12
 Source1:        nginx.service
13
+Source2:        nginx-njs-0.2.1.tar.gz
14
+%define sha1    nginx-njs=fd8c3f2d219f175be958796e3beaa17f3b465126
13 15
 BuildRequires:  openssl-devel
14 16
 BuildRequires:  pcre-devel
17
+BuildRequires:  which
15 18
 %description
16 19
 NGINX is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server.
17 20
 
18 21
 %prep
19 22
 %setup -q
23
+pushd ../
24
+mkdir nginx-njs
25
+tar -C nginx-njs -xf %{SOURCE2}
26
+popd
20 27
 
21 28
 %build
22 29
 ./configure \
... ...
@@ -27,6 +34,7 @@ NGINX is a free, open-source, high-performance HTTP server and reverse proxy, as
27 27
     --lock-path=/var/run/nginx.lock             \
28 28
     --error-log-path=/var/log/nginx/error.log   \
29 29
     --http-log-path=/var/log/nginx/access.log   \
30
+    --add-module=../nginx-njs/njs-0.2.1/nginx   \
30 31
     --with-http_ssl_module \
31 32
     --with-pcre \
32 33
     --with-ipv6 \
... ...
@@ -50,6 +58,8 @@ install -p -m 0644 %{SOURCE1} %{buildroot}/usr/lib/systemd/system/nginx.service
50 50
 %{_var}/log/nginx
51 51
 
52 52
 %changelog
53
+*   Fri Jun 08 2018 Dheeraj Shetty <dheerajs@vmware.com> 1.13.8-2
54
+-   adding module njs.
53 55
 *   Fri May 18 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 1.13.8-1
54 56
 -   Update to version 1.13.8 to support nginx-ingress
55 57
 *   Thu Dec 28 2017 Divya Thaluru <dthaluru@vmware.com>  1.13.5-2