Skip to content

shamrin/nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: