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.

109 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.21
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \
  13. ftp://ftp.gnupg.org/gcrypt/gnupg
  14. PKG_HASH:=6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/gnupg/Default
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. SUBMENU:=Encryption
  24. DEPENDS:=+zlib +libncurses +libreadline
  25. TITLE:=GNU privacy guard - a free PGP replacement
  26. URL:=http://www.gnupg.org/
  27. endef
  28. define Package/gnupg
  29. $(call Package/gnupg/Default)
  30. MENU:=1
  31. endef
  32. define Package/gpgv
  33. $(call Package/gnupg/Default)
  34. TITLE:=GnuPG signature verification only
  35. endef
  36. define Package/gnupg-utils
  37. $(call Package/gnupg/Default)
  38. DEPENDS:=gnupg +libcurl
  39. TITLE:=Key management utilities for GnuPG
  40. endef
  41. define Package/gnupg/description
  42. GnuPG is GNU's tool for secure communication and data storage.
  43. It can be used to encrypt data and to create digital signatures.
  44. It includes an advanced key management facility and is compliant
  45. with the proposed OpenPGP Internet standard as described in RFC2440.
  46. .
  47. GnuPG does not use any patented algorithms so it cannot be compatible
  48. with PGP2 because it uses IDEA (which is patented worldwide).
  49. endef
  50. define Package/gpgv/description
  51. GPGv is a stripped down version of GnuPG that only checks signatures.
  52. .
  53. GnuPG does not use any patented algorithms so it cannot be compatible
  54. with PGP2 because it uses IDEA (which is patented worldwide).
  55. endef
  56. define Package/gnupg-utils/description
  57. Key management utilies for GnuPG.
  58. This package is needed to import keys from a keyserver.
  59. endef
  60. CONFIGURE_ARGS += \
  61. --disable-rpath \
  62. --disable-asm \
  63. --disable-gnupg-iconv \
  64. --disable-card-support \
  65. --disable-agent-support \
  66. --disable-bzip2 \
  67. --disable-ldap \
  68. --disable-finger \
  69. --disable-dns-srv \
  70. --disable-regex \
  71. MAKE_FLAGS += \
  72. SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
  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))