Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #Compiling Nginx with RTMP module
  2.  
  3. 1. Install the following packages
  4. `sudo apt-get install python-software-properties dpkg-dev git`
  5. 2. Add Nginx repo
  6. `sudo add-apt-repository ppa:nginx/stable`
  7. 3. Update package list
  8. `sudo apt-get update`
  9. 4. Get nginx source (put this in it's own dir like `/build`
  10. `sudo apt-get source nginx-full`
  11. 5. Move into the src dir
  12. `cd /build/nginx-x.x.x`
  13. 6. Grab the build dependecies for `nginx-full`
  14. `sudo apt-get build-dep nginx-full`
  15. 7. Grab the nginx-rtmp-module source into modules folder for the nginx source
  16. `cd /build/nginx-x.x.x/debian/modules`
  17. `git clone git://github.com/arut/nginx-rtmp-module.git`
  18. 8. Move back into the src dir
  19. `cd /build/nginx-x.x.x`
  20. 9. Add the module to the `configure` rules in `nginx-x.x.x/debian/rules` for all the versions
  21. `--add-module=$(MODULESDIR)/nginx-rtmp-module \`
  22. 10. Make an update to the changelog
  23. `dch -i`
  24. 11. rebuild the package
  25. `sudo dpkg-buildpackage -uc -b`
  26. 12. The debs can be installed using `sudo dpkg -i PACKAGE_NAME.deb` (you'll need to move all the debs)
  27.  
  28. This can probably be done a slightly less clunky fashion or by using the Launchpad PPA system somehow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement