NginX rpm/deb package with third party modules
To build the packages, use a Docker container or a VM, don't do that in a production environment.
This project includes the necessary files to build the latest NginX version with third party modules.
The third party modules are:
-
cache-purge
https://github.com/FRiCKLE/ngx_cache_purge -
development-kit
https://github.com/simpl/ngx_devel_kit -
fancyindex
https://github.com/aperezdc/ngx-fancyindex -
headers-more
https://github.com/agentzh/headers-more-nginx-module -
http-auth-pam
https://github.com/stogh/ngx_http_auth_pam_module -
http-substitutions-filter
https://github.com/yaoweibin/ngx_http_substitutions_filter_module -
sticky
https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng -
upload-progress
https://github.com/masterzen/nginx-upload-progress-module
rm -r upload-progress/test -
upstream-check
https://github.com/yaoweibin/nginx_upstream_check_module -
upstream-fair
https://github.com/gnosek/nginx-upstream-fair
To install the build dependencies, use the commands below:
yum install -y ftp git-core rpm-build make gcc patch bzip2 GeoIP-devel gd-devel \
libxslt-devel openssl-devel pcre-devel perl-devel perl-ExtUtils-Embed \
zlib-devel expat-devel lua-devel pam-devel
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
yum --enablerepo=epel install -y libmaxminddb libmaxminddb-devel
To build the package use:
git clone https://github.com/but3k4/nginx-package.git
cd nginx-package
make rpm
To install the package use:
rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
yum --enablerepo=epel install -y libmaxminddb
yum localinstall ../nginx-1.11.7-1.el7.x86_64.rpm \
../nginx-filesystem-1.11.7-1.el7.noarch.rpm
To install the build dependencies, use the commands below:
echo "deb http://deb.debian.org/debian jessie-backports main contrib non-free" \
> /etc/apt/sources.list.d/backports.list
apt-get update
apt-get install -y ftp git-core dialog dh-make build-essential devscripts wget \
autotools-dev dh-systemd libluajit-5.1-dev libexpat-dev libgd2-dev libgeoip-dev \
libmhash-dev libpam0g-dev libpcre3-dev libperl-dev libssl-dev libxslt1-dev \
libmaxminddb-dev libmaxminddb0
To build the package use:
git clone https://github.com/but3k4/nginx-package.git
cd nginx-package
make deb
To install the package use:
echo "deb http://deb.debian.org/debian jessie-backports main contrib non-free" \
> /etc/apt/sources.list.d/backports.list
apt-get update
apt-get install -y libmaxminddb0
dpkg -i ../nginx-common_1.11.7-1_all.deb ../nginx-extras_1.11.7-1_amd64.deb