Skip to content

Commit

Permalink
adding uuid4 module
Browse files Browse the repository at this point in the history
  • Loading branch information
beanieboi committed Apr 1, 2019
1 parent c9a52a0 commit a51ae63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Binary file modified bin/nginx-cedar-14
Binary file not shown.
Binary file modified bin/nginx-heroku-16
Binary file not shown.
Binary file modified bin/nginx-heroku-18
Binary file not shown.
12 changes: 7 additions & 5 deletions scripts/build_nginx
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@ NGINX_VERSION=${NGINX_VERSION-1.9.5}
PCRE_VERSION=${PCRE_VERSION-8.37}
HEADERS_MORE_VERSION=${HEADERS_MORE_VERSION-0.261}
ZLIB_VERSION=${ZLIB_VERSION-1.2.11}
UUID4_VERSION=${UUID4_VERSION-master}

nginx_tarball_url=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
pcre_tarball_url=http://iweb.dl.sourceforge.net/project/pcre/pcre/${PCRE_VERSION}/pcre-${PCRE_VERSION}.tar.bz2
headers_more_nginx_module_url=https://github.com/openresty/headers-more-nginx-module/archive/v${HEADERS_MORE_VERSION}.tar.gz
uuid4_url=https://github.com/cybozu/nginx-uuid4-module/archive/${UUID4_VERSION}.tar.gz
zlib_url=http://zlib.net/zlib-${ZLIB_VERSION}.tar.gz

temp_dir=$(mktemp -d /tmp/nginx.XXXXXXXXXX)

echo "Serving files from /tmp on $PORT"
cd /tmp
python -m SimpleHTTPServer $PORT &

cd $temp_dir
echo "Temp dir: $temp_dir"

Expand All @@ -40,6 +38,9 @@ echo "Downloading $headers_more_nginx_module_url"
echo "Downloading $zlib_url"
(cd nginx-${NGINX_VERSION} && curl -L $zlib_url | tar xvz )

echo "Downloading $uuid4_url"
(cd nginx-${NGINX_VERSION} && curl -L $uuid4_url | tar xvz )

(
cd nginx-${NGINX_VERSION}
./configure \
Expand All @@ -49,7 +50,8 @@ echo "Downloading $zlib_url"
--with-http_realip_module \
--with-http_ssl_module \
--prefix=/tmp/nginx \
--add-module=${temp_dir}/nginx-${NGINX_VERSION}/headers-more-nginx-module-${HEADERS_MORE_VERSION}
--add-module=${temp_dir}/nginx-${NGINX_VERSION}/headers-more-nginx-module-${HEADERS_MORE_VERSION} \
--add-module=${temp_dir}/nginx-${NGINX_VERSION}/nginx-uuid4-module-${UUID4_VERSION}
make install
)

Expand Down

0 comments on commit a51ae63

Please sign in to comment.