Patches: To generate a patch: diff -aur package.pristine package.new > package.patch To apply a patch: patch -p0 -i package.patch where -p0 assumes the paths in the patch are valid in the current directory gs2build.patch Contains patches for the gs2build build process Disables building externals perl-util.patch Contains a patch to change the tmp folder for gs2build This is necessary because the original location of the tmp folder was in the gs2build folder, which contains executables, and as such should be read-only. Thus the tmp folder has been changed to /tmp/greenstone-build Scripts: greenstone Sets up the environment for running greenstone-tools gli Runs greenstone to set up the environment, then runs GLI wvWare Removes itself from $PATH, then runs wvWare (which will be the system wvWare) Gotchas: derby.jar location Must be in the tomcat lib folder instead of the greenstone lib folder http://stackoverflow.com/questions/24963117/tomcat-realm-forms-login-always-fails Issues: Debian package has lots of warnings