2018-09-19 10:58:08 +00:00
|
|
|
# pinentry is required for gpg2 to be able to read user passwords
|
|
|
|
CONFIG_PINENTRY ?= $(CONFIG_GPG2)
|
|
|
|
modules-$(CONFIG_PINENTRY) += pinentry
|
|
|
|
|
|
|
|
pinentry_version := 1.1.0
|
|
|
|
pinentry_dir := pinentry-$(pinentry_version)
|
|
|
|
pinentry_tar := pinentry-$(pinentry_version).tar.bz2
|
|
|
|
pinentry_url := https://www.gnupg.org/ftp/gcrypt/pinentry/$(pinentry_tar)
|
|
|
|
pinentry_hash := 68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570
|
|
|
|
|
|
|
|
# For reproducibility reasons we have to override the exec_prefix
|
|
|
|
# and datarootdir on the configure line so that the Makefiles will
|
|
|
|
# be generated with the correct paths, but then re-write them when
|
|
|
|
# we use the install target so that they will be copied to the correct
|
|
|
|
# location.
|
2023-03-01 16:12:46 +00:00
|
|
|
pinentry_configure := \
|
2018-09-19 10:58:08 +00:00
|
|
|
$(CROSS_TOOLS) \
|
2023-03-01 16:12:46 +00:00
|
|
|
CFLAGS="-Os" \
|
|
|
|
./configure \
|
2021-07-18 17:34:20 +00:00
|
|
|
--host $(MUSL_ARCH)-linux-musl \
|
2018-09-19 10:58:08 +00:00
|
|
|
--prefix "/" \
|
2018-10-17 21:42:43 +00:00
|
|
|
--disable-fallback-curses \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-libsecret \
|
2018-09-19 10:58:08 +00:00
|
|
|
--disable-pinentry-curses \
|
|
|
|
--disable-pinentry-emacs \
|
2024-01-29 03:55:11 +00:00
|
|
|
--disable-pinentry-fltk \
|
|
|
|
--disable-pinentry-gnome3 \
|
|
|
|
--disable-pinentry-gtk2 \
|
|
|
|
--disable-pinentry-qt \
|
2020-10-26 14:19:57 +00:00
|
|
|
--disable-pinentry-qt5 \
|
2024-01-29 03:55:11 +00:00
|
|
|
--enable-pinentry-tty \
|
2018-09-19 10:58:08 +00:00
|
|
|
--with-libassuan-prefix="$(INSTALL)" \
|
2023-06-30 18:20:23 +00:00
|
|
|
--with-libgpg-error-prefix="$(INSTALL)" \
|
2018-09-19 10:58:08 +00:00
|
|
|
|
|
|
|
# Run one build to generate the executables with the pre-defined
|
|
|
|
# exec_prefix and datarootdir, then a second make to install the binaries
|
|
|
|
# into our actual target location
|
|
|
|
pinentry_target := $(MAKE_JOBS) \
|
|
|
|
&& $(MAKE) -C $(build)/$(pinentry_dir) \
|
|
|
|
DESTDIR="$(INSTALL)" \
|
|
|
|
install \
|
|
|
|
&& cp $(build)/$(pinentry_dir)/tty/pinentry-tty $(build)/$(pinentry_dir)/tty/pinentry
|
|
|
|
|
2018-11-15 00:41:02 +00:00
|
|
|
pinentry_output := tty/pinentry-tty
|
2018-09-19 10:58:08 +00:00
|
|
|
|
|
|
|
pinentry_depends := libgpg-error libassuan $(musl_dep)
|