[rpm] nginx-rpm mit pagespeed bauen

sudo -s
yum install rpm-build
cd
wget http://nginx.org/packages/centos/6/SRPMS/nginx-1.6.1-1.el6.ngx.src.rpm
rpm -i nginx-1.6.1-1.el6.ngx.src.rpm
NPS_VERSION=1.8.31.4
wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip
unzip release-${NPS_VERSION}-beta.zip
cd ngx_pagespeed-release-${NPS_VERSION}-beta/
wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz
tar -xzvf ${NPS_VERSION}.tar.gz
cd rpmbuild/SPECS/
vim nginx.spec

–add-module=/root/ngx_pagespeed-release-1.8.31.4-beta in den beide configure-blöcken hinzufügen.

rpmbuild -ba nginx.spec

fertiges rpm landet in /root/rpmbuild/RPMS/x86_64/

hilfreiche Quellen f. obigen Workflow:
https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source und
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

Anfrage