Browse Source

gnupg: prepare for gnupg2

Use ALTERNATIVES for /usr/bin/gpg and /usr/bin/gpgv, so upcoming gnupg2
variants can be selected instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
lilik-openwrt-22.03
Daniel Golle 4 years ago
committed by Daniel Golle
parent
commit
cb480a40b2
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      utils/gnupg/Makefile

+ 5
- 3
utils/gnupg/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=gnupg PKG_NAME:=gnupg
PKG_VERSION:=1.4.23 PKG_VERSION:=1.4.23
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/gnupg PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/gnupg
@ -35,11 +35,13 @@ endef
define Package/gnupg define Package/gnupg
$(call Package/gnupg/Default) $(call Package/gnupg/Default)
MENU:=1 MENU:=1
ALTERNATIVES:=200:/usr/bin/gpg:/usr/bin/gpg1
endef endef
define Package/gpgv define Package/gpgv
$(call Package/gnupg/Default) $(call Package/gnupg/Default)
TITLE:=GnuPG signature verification only TITLE:=GnuPG signature verification only
ALTERNATIVES:=200:/usr/bin/gpgv:/usr/bin/gpgv1
endef endef
define Package/gnupg-utils define Package/gnupg-utils
@ -89,12 +91,12 @@ TARGET_CFLAGS += $(if $(CONFIG_GCC_USE_VERSION_10),-DEXTERN_UNLESS_MAIN_MODULE=s
define Package/gnupg/install define Package/gnupg/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/gpg1
endef endef
define Package/gpgv/install define Package/gpgv/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/gpgv1
endef endef
define Package/gnupg-utils/install define Package/gnupg-utils/install


Loading…
Cancel
Save