I'd like to run nginx on a jessie server with the pagespeed module compiled into nginx.
Instead of starting from scratch for my build script, I'd like to add the pagespeed module to the build script that is run when I execute apt-get install nginx
. Then compile and set up nginx from this modified script.
But, I have no idea how to get the 'source code' or what the right technical terms to search for are for completing this.
Get the source package:
sudo apt-get build-dep <package>
Get the build dependencies
sudo apt-get source --compile <package>
You can fix a package bug by:
dpatch-edit-patch somebug.dpatch
And build the modified package:
debuild -b -uc -us
Installing the modified package:
sudo dpkg -i ../package_<your arch>.deb
Have a look at Debian Building Tutorial.
Hope this helps.