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.

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