shamrin / nginx

Nginx, custom debian packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nginx, custom debian packages

Prerequisites (alternatively do vagrant up, it will do this for you):

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get build-dep nginx
sudo apt-get install libgd2-noxpm-dev

Building packages:

git clone git@github.com:shamrin/nginx.git
cd nginx/nginx-1.6.2/
dpkg-buildpackage -b
cd ..

Testing packages:

sudo dpkg -i nginx-common_1.6.2-5+precise0shamrin1_all.deb nginx-full_1.6.2-5+precise0shamrin1_amd64.deb  nginx_1.6.2-5+precise0shamrin1_all.deb

Uploading as GitHub release:

git tag v1.6.2-5+precise0shamrin1

Then create GitHub release and upload packages there.

Rough description of how this repo was created

Don't read if you don't want to re-create this repo from scratch

Local Ansible:

make
. venv/bin/activate

Vagrant:

vagrant up
vagrant ssh
cd /vagrant

Get nginx:

sudo apt-get build-dep nginx
apt-get source nginx
rm nginx_1.6.2*
git add nginx-1.6.2
git commit

Get nginx-push-stream-module:

cd nginx-1.6.2/debian/modules
git clone https://github.com/wandenberg/nginx-push-stream-module.git
cd nginx-push-stream-module/
git log -1
rm -rf .git
git add .
git commit
cd ../../../..

Add nginx-push-stream-module to debian/rules:

cd nginx-1.6.2/
vi debian/rules

And add --add-module=$(MODULESDIR)/nginx-push-stream-module to full_configure_flags list.

Links:

About

Nginx, custom debian packages


Languages

Language:C 60.8%Language:Perl 27.0%Language:Ruby 7.1%Language:C++ 1.8%Language:JavaScript 0.9%Language:Shell 0.7%Language:Lua 0.7%Language:Vim Script 0.3%Language:Perl 6 0.3%Language:Nginx 0.2%Language:HTML 0.2%Language:Makefile 0.1%Language:ApacheConf 0.0%Language:D 0.0%Language:Objective-C 0.0%Language:Assembly 0.0%Language:Awk 0.0%