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.

108 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.22
  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:=9594a24bec63a21568424242e3f198b9d9828dea5ff0c335e47b06f835f930b4
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
  17. PKG_INSTALL:=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. define Package/gnupg/install
  73. $(INSTALL_DIR) $(1)/usr/bin
  74. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
  75. endef
  76. define Package/gpgv/install
  77. $(INSTALL_DIR) $(1)/usr/bin
  78. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/
  79. endef
  80. define Package/gnupg-utils/install
  81. $(INSTALL_DIR) $(1)/usr/lib/gnupg
  82. for file in gpgkeys_curl gpgkeys_hkp; do \
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
  84. $(1)/usr/lib/gnupg/; \
  85. done
  86. endef
  87. $(eval $(call BuildPackage,gnupg))
  88. $(eval $(call BuildPackage,gpgv))
  89. $(eval $(call BuildPackage,gnupg-utils))