Created
August 18, 2017 16:24
-
-
Save nsoranzo/571537939ddbb140192e290fa6ec3358 to your computer and use it in GitHub Desktop.
Build nginx rpm for Galaxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum install -y GeoIP-devel gcc gd-devel gperftools-devel libxslt-devel openssl-devel pcre-devel perl-devel perl-ExtUtils-Embed rpm-build zlib-devel | |
$ mkdir -p ~/software | |
$ cd ~/software/ | |
[software]$ git clone --branch 2.2 https://github.com/vkholodkov/nginx-upload-module | |
# Download latest source RPM from EPEL repository https://apps.fedoraproject.org/packages/nginx/ | |
[software]$ wget https://dl.fedoraproject.org/pub/epel/7/SRPMS/n/nginx-1.10.2-1.el7.src.rpm | |
[software]$ rm -rf ~/rpmbuild/ | |
[software]$ mkdir ~/rpmbuild | |
[software]$ rpm -i nginx-1.10.2-1.el7.src.rpm | |
[software]$ cd ~/rpmbuild/ | |
[rpmbuild]$ sed -i.orig -e 's|./configure|./configure --add-module=$HOME/software/nginx-upload-module|' SPECS/nginx.spec | |
[rpmbuild]$ rpmbuild --define 'dist .el7' -bb SPECS/nginx.spec | |
[rpmbuild]$ sudo yum install -y RPMS/noarch/nginx-filesystem-1.10.2-1.el7.noarch.rpm RPMS/x86_64/nginx-1.10.2-1.el7.x86_64.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment