diff options
author | Werner Koch <[email protected]> | 2016-04-04 15:42:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-04-04 16:40:25 +0000 |
commit | 96bcd4220f1f1313afe12097d8dc62342ac8de0d (patch) | |
tree | bb31ae3382b7d3c0eb4e1d9979d1786a9d5a87ce /tests | |
parent | tests: Add missing file. (diff) | |
download | gnupg-96bcd4220f1f1313afe12097d8dc62342ac8de0d.tar.gz gnupg-96bcd4220f1f1313afe12097d8dc62342ac8de0d.zip |
Now build "gpg" binary but install as "gpg2"
* configure.ac (USE_GPG2_HACK): New ac_define am_conditional.
* common/homedir.c (gnupg_module_name): Replace use of macro
NAME_OF_INSTALLED_GPG.
* g10/keygen.c (generate_keypair): Ditto.
* g10/Makefile.am (bin_PROGRAMS): Remove.
(noinst_PROGRAMS): Add gpg or gpg2 and gpgv or gpg2.
(gpg2_hack_list): New.
(use_gpg2_hack): New.
(gpg2_SOURCES): Rename to gpg_SOURCES.
(gpgv2_SOURCES): Rename to gpgv_SOURCES.
(gpg2_LDADD): Rename to gpg_LDADD.
(gpgv2_LDADD): Rename to gpgv_LDADD.
(gpg2_LDFLAGS): Rename to gpg_LDFLAGS.
(gpgv2_LDFLAGS): Rename to gpgv2_LDFLAGS.
(install-exec-hook): Remove WinCE specific rules and add new rules.
(uninstall-local): Uninstall gpg/gpg2 and gpgv/gpgv2.
* tests/openpgp/Makefile.am (required_pgms): s/gpg2/gpg/.
* tests/openpgp/defs.inc: Ditto.
* tests/openpgp/gpgtar.test: Ditto.
* tests/openpgp/mkdemodirs: Ditto.
* tests/openpgp/signdemokey: Ditto.
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Remove obsolete
--enable-mailto, add --enable-gpg2-is-gpg.
--
Although we need to duplicate some automake generated code this method
allows to easily switch the name of the installed target using the
configure option "--enable-gpg2-is-gpg".
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/openpgp/Makefile.am | 2 | ||||
-rwxr-xr-x | tests/openpgp/defs.inc | 2 | ||||
-rwxr-xr-x | tests/openpgp/gpgtar.test | 2 | ||||
-rwxr-xr-x | tests/openpgp/mkdemodirs | 2 | ||||
-rwxr-xr-x | tests/openpgp/signdemokey | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/openpgp/Makefile.am b/tests/openpgp/Makefile.am index 4e09c2327..bab0b7d37 100644 --- a/tests/openpgp/Makefile.am +++ b/tests/openpgp/Makefile.am @@ -20,7 +20,7 @@ # Programs required before we can run these tests. -required_pgms = ../../g10/gpg2$(EXEEXT) ../../agent/gpg-agent$(EXEEXT) \ +required_pgms = ../../g10/gpg$(EXEEXT) ../../agent/gpg-agent$(EXEEXT) \ ../../tools/gpg-connect-agent$(EXEEXT) \ ../../tools/mk-tdata$(EXEEXT) diff --git a/tests/openpgp/defs.inc b/tests/openpgp/defs.inc index 8f969db26..ea86c6919 100755 --- a/tests/openpgp/defs.inc +++ b/tests/openpgp/defs.inc @@ -215,7 +215,7 @@ fi unset GPG_AGENT_INFO # (--no-permission-warning makes only sense on the commandline) -GPG="../../g10/gpg2 --no-permission-warning " +GPG="../../g10/gpg --no-permission-warning " # (We may not use a relative name for gpg-agent.) GPG_AGENT="$(cd ../../agent && /bin/pwd)/gpg-agent" GPG_CONNECT_AGENT="../../tools/gpg-connect-agent" diff --git a/tests/openpgp/gpgtar.test b/tests/openpgp/gpgtar.test index daba514fe..63bed7025 100755 --- a/tests/openpgp/gpgtar.test +++ b/tests/openpgp/gpgtar.test @@ -27,7 +27,7 @@ FILELIST="${TESTDIR}/filelist" PPFILE="${TESTDIR}/passphrase" PPFLAGS="--gpg-args --passphrase-file=$PPFILE" -GPG=../../g10/gpg2 +GPG=../../g10/gpg GPGARGS="$opt_always --no-permission-warning" GPGTAR="../../tools/gpgtar" diff --git a/tests/openpgp/mkdemodirs b/tests/openpgp/mkdemodirs index a381681b0..fd8a7410e 100755 --- a/tests/openpgp/mkdemodirs +++ b/tests/openpgp/mkdemodirs @@ -4,7 +4,7 @@ set -e # We need to use --no-options so that a gpg.conf from an older version # of gpg is not used. -GPG="../../g10/gpg2 --no-options --batch --quiet +GPG="../../g10/gpg --no-options --batch --quiet --no-secmem-warning --allow-secret-key-import" NAMES='Alpha Bravo Charlie Delta Echo Foxtrot Golf Hotel India diff --git a/tests/openpgp/signdemokey b/tests/openpgp/signdemokey index 9a1257cc4..13c5784de 100755 --- a/tests/openpgp/signdemokey +++ b/tests/openpgp/signdemokey @@ -10,7 +10,7 @@ name="$1" user_id="$2" user_id_no="$3" -echo "abc" | ../g10/gpg2 --options ./gpg.conf --homedir $name \ +echo "abc" | ../g10/gpg --options ./gpg.conf --homedir $name \ --sign-key --batch --yes --passphrase-fd 0 $user_id \ $user_id_no sign save |