Build Gnupg2 to have bin name gpg
dshaw at jabberwocky.com
Wed Aug 11 22:17:28 CEST 2010
On Aug 11, 2010, at 2:49 PM, Joseph Isadore Ziff wrote:
> Dear gnupg-users,
> I've been wanting to build gnupg2 to have the bin/executable name gpg instead of gpg2 but have so far been unsuccessful in tracking down exactly what bits of the source code need to be altered. I am running a linux i386 system. I know this question might be a bit trivial, but any help you could give me is greatly appreciated.
If you're building this for a distribution, I strongly advise against this. gpg and gpg2 are designed to be installable at the same time (they're not the same thing and gpg2 is not a strict replacement for gpg). If you have gpg2 claim the gpg name, then gpg isn't installable any longer. This is currently an issue that needs to be addressed in Fedora.
If you're just doing it for yourself, however, I still wouldn't change code. Instead, just make a symlink from "gpg" to "gpg2". Much simpler and you don't need to deal with renaming keyserver helpers, or re-patching the code every time a new release is made, etc.
More information about the Gnupg-users