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.

91 lines
2.3 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.20
  10. PKG_RELEASE:=2
  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:=b7af897a041c03c8ad1c7c466b54d10d
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  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/gnupg-utils
  33. $(call Package/gnupg/Default)
  34. DEPENDS:=gnupg +libcurl
  35. TITLE:=Key management utilities for GnuPG
  36. endef
  37. define Package/gnupg/description
  38. GnuPG is GNU's tool for secure communication and data storage.
  39. It can be used to encrypt data and to create digital signatures.
  40. It includes an advanced key management facility and is compliant
  41. with the proposed OpenPGP Internet standard as described in RFC2440.
  42. .
  43. GnuPG does not use any patented algorithms so it cannot be compatible
  44. with PGP2 because it uses IDEA (which is patented worldwide).
  45. endef
  46. define Package/gnupg-utils/description
  47. Key management utilies for GnuPG.
  48. This package is needed to import keys from a keyserver.
  49. endef
  50. CONFIGURE_ARGS += \
  51. --disable-rpath \
  52. --disable-asm \
  53. --disable-gnupg-iconv \
  54. --disable-card-support \
  55. --disable-agent-support \
  56. --disable-bzip2 \
  57. --disable-ldap \
  58. --disable-finger \
  59. --disable-dns-srv \
  60. --disable-regex \
  61. MAKE_FLAGS += \
  62. SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
  63. define Package/gnupg/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
  66. endef
  67. define Package/gnupg-utils/install
  68. $(INSTALL_DIR) $(1)/usr/lib/gnupg
  69. for file in gpgkeys_curl gpgkeys_hkp; do \
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
  71. $(1)/usr/lib/gnupg/; \
  72. done
  73. endef
  74. $(eval $(call BuildPackage,gnupg))
  75. $(eval $(call BuildPackage,gnupg-utils))