#Compiling Nginx with RTMP module
- Install the following packages
sudo apt-get install python-software-properties dpkg-dev git - Add Nginx repo
sudo add-apt-repository ppa:nginx/stable - Update package list
sudo apt-get update - Get nginx source (put this in it's own dir like
/buildsudo apt-get source nginx-full - Move into the src dir
cd nginx-* - Grab the build dependecies for
nginx-fullsudo apt-get build-dep nginx-full - Grab the nginx-rtmp-module source into modules folder for the nginx source
cd debian/modulesgit clone git://github.com/arut/nginx-rtmp-module.git - Move back into the src dir
cd /build/nginx-* - Add the module to the
configurerules innano debian/rulesfor all the versions--add-module=$(MODULESDIR)/nginx-rtmp-module \ - Make an update to the changelog
dch -i - rebuild the package
sudo dpkg-buildpackage -uc -b - The debs can be installed using
sudo dpkg -i PACKAGE_NAME.deb(you'll need to move all the debs)
This can probably be done a slightly less clunky fashion or by using the Launchpad PPA system somehow