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.

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