You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.9 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gnupg
  9. PKG_VERSION:=1.4.23
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/gnupg
  13. PKG_HASH:=c9462f17e651b6507848c08c430c791287cd75491f8b5a8b50c6ed46b12678ba
  14. PKG_LICENSE:=GPL-3.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/gnupg/Default
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. SUBMENU:=Encryption
  23. DEPENDS:=+zlib +libncurses +libreadline
  24. TITLE:=GNU privacy guard - a free PGP replacement
  25. URL:=http://www.gnupg.org/
  26. endef
  27. define Package/gnupg
  28. $(call Package/gnupg/Default)
  29. MENU:=1
  30. ALTERNATIVES:=200:/usr/bin/gpg:/usr/bin/gpg1
  31. endef
  32. define Package/gpgv
  33. $(call Package/gnupg/Default)
  34. TITLE:=GnuPG signature verification only
  35. ALTERNATIVES:=200:/usr/bin/gpgv:/usr/bin/gpgv1
  36. endef
  37. define Package/gnupg-utils
  38. $(call Package/gnupg/Default)
  39. DEPENDS:=gnupg +libcurl
  40. TITLE:=Key management utilities for GnuPG
  41. endef
  42. define Package/gnupg/description
  43. GnuPG is GNU's tool for secure communication and data storage.
  44. It can be used to encrypt data and to create digital signatures.
  45. It includes an advanced key management facility and is compliant
  46. with the proposed OpenPGP Internet standard as described in RFC2440.
  47. .
  48. GnuPG does not use any patented algorithms so it cannot be compatible
  49. with PGP2 because it uses IDEA (which is patented worldwide).
  50. endef
  51. define Package/gpgv/description
  52. GPGv is a stripped down version of GnuPG that only checks signatures.
  53. .
  54. GnuPG does not use any patented algorithms so it cannot be compatible
  55. with PGP2 because it uses IDEA (which is patented worldwide).
  56. endef
  57. define Package/gnupg-utils/description
  58. Key management utilies for GnuPG.
  59. This package is needed to import keys from a keyserver.
  60. endef
  61. CONFIGURE_ARGS += \
  62. --disable-rpath \
  63. --disable-asm \
  64. --disable-gnupg-iconv \
  65. --disable-card-support \
  66. --disable-agent-support \
  67. --disable-bzip2 \
  68. --disable-ldap \
  69. --disable-finger \
  70. --disable-dns-srv \
  71. --disable-regex
  72. MAKE_FLAGS += \
  73. SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
  74. TARGET_CFLAGS += $(if $(CONFIG_GCC_USE_VERSION_10),-DEXTERN_UNLESS_MAIN_MODULE=static)
  75. define Package/gnupg/install
  76. $(INSTALL_DIR) $(1)/usr/bin
  77. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/gpg1
  78. endef
  79. define Package/gpgv/install
  80. $(INSTALL_DIR) $(1)/usr/bin
  81. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/gpgv1
  82. endef
  83. define Package/gnupg-utils/install
  84. $(INSTALL_DIR) $(1)/usr/lib/gnupg
  85. for file in gpgkeys_curl gpgkeys_hkp; do \
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
  87. $(1)/usr/lib/gnupg/; \
  88. done
  89. endef
  90. $(eval $(call BuildPackage,gnupg))
  91. $(eval $(call BuildPackage,gpgv))
  92. $(eval $(call BuildPackage,gnupg-utils))