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.

110 lines
2.8 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:=2
  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. endef
  31. define Package/gpgv
  32. $(call Package/gnupg/Default)
  33. TITLE:=GnuPG signature verification only
  34. endef
  35. define Package/gnupg-utils
  36. $(call Package/gnupg/Default)
  37. DEPENDS:=gnupg +libcurl
  38. TITLE:=Key management utilities for GnuPG
  39. endef
  40. define Package/gnupg/description
  41. GnuPG is GNU's tool for secure communication and data storage.
  42. It can be used to encrypt data and to create digital signatures.
  43. It includes an advanced key management facility and is compliant
  44. with the proposed OpenPGP Internet standard as described in RFC2440.
  45. .
  46. GnuPG does not use any patented algorithms so it cannot be compatible
  47. with PGP2 because it uses IDEA (which is patented worldwide).
  48. endef
  49. define Package/gpgv/description
  50. GPGv is a stripped down version of GnuPG that only checks signatures.
  51. .
  52. GnuPG does not use any patented algorithms so it cannot be compatible
  53. with PGP2 because it uses IDEA (which is patented worldwide).
  54. endef
  55. define Package/gnupg-utils/description
  56. Key management utilies for GnuPG.
  57. This package is needed to import keys from a keyserver.
  58. endef
  59. CONFIGURE_ARGS += \
  60. --disable-rpath \
  61. --disable-asm \
  62. --disable-gnupg-iconv \
  63. --disable-card-support \
  64. --disable-agent-support \
  65. --disable-bzip2 \
  66. --disable-ldap \
  67. --disable-finger \
  68. --disable-dns-srv \
  69. --disable-regex
  70. MAKE_FLAGS += \
  71. SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
  72. TARGET_CFLAGS += $(if $(CONFIG_GCC_USE_VERSION_10),-DEXTERN_UNLESS_MAIN_MODULE=static)
  73. define Package/gnupg/install
  74. $(INSTALL_DIR) $(1)/usr/bin
  75. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
  76. endef
  77. define Package/gpgv/install
  78. $(INSTALL_DIR) $(1)/usr/bin
  79. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/
  80. endef
  81. define Package/gnupg-utils/install
  82. $(INSTALL_DIR) $(1)/usr/lib/gnupg
  83. for file in gpgkeys_curl gpgkeys_hkp; do \
  84. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
  85. $(1)/usr/lib/gnupg/; \
  86. done
  87. endef
  88. $(eval $(call BuildPackage,gnupg))
  89. $(eval $(call BuildPackage,gpgv))
  90. $(eval $(call BuildPackage,gnupg-utils))