Version integrity checking
Create a script to check the signature of all code files against a white-listed source. Pasteque.org could for example hold the signature list along the download files.
The script will compute all md5sum or whatever signature to check against the list. If all signatures are matching, the installation can be considered unmodified.