1
0

Makefile 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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_MD5SUM:=9bdeabf3c0f87ff21cb3f9216efdd01d
  15. PKG_HASH:=6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
  16. PKG_LICENSE:=GPL-3.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/gnupg/Default
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. SUBMENU:=Encryption
  25. DEPENDS:=+zlib +libncurses +libreadline
  26. TITLE:=GNU privacy guard - a free PGP replacement
  27. URL:=http://www.gnupg.org/
  28. endef
  29. define Package/gnupg
  30. $(call Package/gnupg/Default)
  31. MENU:=1
  32. endef
  33. define Package/gpgv
  34. $(call Package/gnupg/Default)
  35. TITLE:=GnuPG signature verification only
  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. define Package/gnupg/install
  75. $(INSTALL_DIR) $(1)/usr/bin
  76. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
  77. endef
  78. define Package/gpgv/install
  79. $(INSTALL_DIR) $(1)/usr/bin
  80. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/
  81. endef
  82. define Package/gnupg-utils/install
  83. $(INSTALL_DIR) $(1)/usr/lib/gnupg
  84. for file in gpgkeys_curl gpgkeys_hkp; do \
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
  86. $(1)/usr/lib/gnupg/; \
  87. done
  88. endef
  89. $(eval $(call BuildPackage,gnupg))
  90. $(eval $(call BuildPackage,gpgv))
  91. $(eval $(call BuildPackage,gnupg-utils))