Skip to content

but3k4/nginx-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NginX rpm/deb package with third-party modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published