Use the following command to extract the source code:
$ tar -xvzf htdig130304.tgz
The ht://Dig source code should now, be located in the directory 'htdig'.