Skip to content
NginX rpm/deb package with third-party modules
HTML Roff Shell Nginx Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker-files
src
Makefile
README.md
nginx.spec

README.md

NginX rpm/deb package

NginX rpm/deb package with third party modules

Advice

To build the packages, use a Docker container or a VM, don't do that in a production environment.

Overview

This project includes the necessary files to build the latest NginX version with third party modules.

The third party modules are:

CentOS

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

Build

To build the package use:

git clone https://github.com/but3k4/nginx-package.git
cd nginx-package
make rpm

Install

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

Debian

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

Build

To build the package use:

git clone https://github.com/but3k4/nginx-package.git
cd nginx-package
make deb

Install

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
You can’t perform that action at this time.