Add repository:
$ sudo add-apt-repository ppa:nginx/stable

Edit /etc/apt/sources.list.d/nginx-stable-lucid.list, add dpkg-src:
deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main
deb-src http://ppa.launchpad.net/nginx/stable/ubuntu lucid main
$ sudo apt-get update
$ sudo apt-get install dpkg-dev
$ sudo apt-get build-dep nginx


Get sources:

$ apt-get source nginx

Edit nginx_1.0.13/debian/rules:

config.status.full: config.env.full config.sub config.guess
...
--add-module=path/to/nginx_uploadprogress_module

Build package:

$ cd nginx_1.0.13 && dpkg-buildpackage -b -uc
$ cd .. $ sudo dpkg -i nginx_1.0.13-1_amd64.dev

addtional information : http://goo.gl/AA6cH
728x90

+ Recent posts