Installing gpg for NetBuild
1. Download gpg source code. Due to restrictions on the export of cryptography, the source code for gpg is not included with NetBuild. You will need to download it from a repuatable source. Try ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.2.4.tar.gz. If you have trouble building gpg 1.2.4 (the lastest version), try downloading and building gpg 1.2.2 - it also works with NetBuild and is known to build on some platforms for which a build of gpg 1.2.4 fails.
2. Extract into an empty directory. For instance:
mkdir $HOME/src/gnupg cd $HOME/src/gnupg tar xfpz $HOME/gnupg-1.2.4.tar.gzor if your tar program doesn't support the z option:
mkdir $HOME/src/gnupg cd $HOME/src/gnupg gunzip < $HOME/gnupg-1.2.4.tar.gz | tar xfp -
3. Configure gpg. Change to the directory where you extracted gpg sources, and type
./configureIf you wish to install your own private copy of gpg (either because you can't install it on a system-wide basis or because you don't want to overwrite the copy of gpg that is installed on a system-wide basis), type
./configure --exec-prefix=$HOME/NetBuild/cpu-oswhere cpu-os is your NetBuild platform name, something like ia32-linux or powerpc-darwin. To determine the name for your platform, type $HOME/src/netbuild/script/nb-platform
4. Build gpg. Type make.
5. Install gpg. Type make install
6. Fix your PATH. If you installed a local copy of gpg, add the directory where you installed gpg to your PATH. For instance:
export PATH=$HOME/NetBuild/ia32-linux/bin:$PATHfor sh, ksh, or bash users or
set path = ( $HOME/NetBuild/ia32-linux/bin $path )for csh or tcsh users.
7. Test. Type gpg --version and make sure that the output matches the version of gpg that you built.