2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=https
://gnupg.org
/ftp
/gcrypt
/gnupg
16 PKG_HASH
:=c9462f17e651b6507848c08c430c791287cd75491f8b5a8b50c6ed46b12678ba
18 PKG_LICENSE
:=GPL-3.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/gnupg
/Default
30 DEPENDS
:=+zlib
+libncurses
+libreadline
31 TITLE
:=GNU privacy guard
- a free PGP replacement
32 URL
:=http
://www.gnupg.org
/
36 $(call Package
/gnupg
/Default
)
38 ALTERNATIVES
:=200:/usr
/bin
/gpg
:/usr
/bin
/gpg1
42 $(call Package
/gnupg
/Default
)
43 TITLE
:=GnuPG signature verification only
44 ALTERNATIVES
:=200:/usr
/bin
/gpgv
:/usr
/bin
/gpgv1
47 define Package
/gnupg-utils
48 $(call Package
/gnupg
/Default
)
49 DEPENDS
:=gnupg
+libcurl
50 TITLE
:=Key management utilities for GnuPG
53 define Package
/gnupg
/description
54 GnuPG is GNU
's tool for secure communication and data storage.
55 It can be used to encrypt data and to create digital signatures.
56 It includes an advanced key management facility and is compliant
57 with the proposed OpenPGP Internet standard as described in RFC2440.
59 GnuPG does not use any patented algorithms so it cannot be compatible
60 with PGP2 because it uses IDEA (which is patented worldwide).
63 define Package/gpgv/description
64 GPGv is a stripped down version of GnuPG that only checks signatures.
66 GnuPG does not use any patented algorithms so it cannot be compatible
67 with PGP2 because it uses IDEA (which is patented worldwide).
70 define Package/gnupg-utils/description
71 Key management utilies for GnuPG.
72 This package is needed to import keys from a keyserver.
78 --disable-gnupg-iconv \
79 --disable-card-support \
80 --disable-agent-support \
88 SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
90 TARGET_CFLAGS += -fcommon
92 define Package/gnupg/install
93 $(INSTALL_DIR) $(1)/usr/bin
94 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/gpg1
97 define Package/gpgv/install
98 $(INSTALL_DIR) $(1)/usr/bin
99 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/gpgv1
102 define Package/gnupg-utils/install
103 $(INSTALL_DIR) $(1)/usr/lib/gnupg
104 for file in gpgkeys_curl gpgkeys_hkp; do \
105 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
106 $(1)/usr/lib/gnupg/; \
110 $(eval $(call BuildPackage,gnupg))
111 $(eval $(call BuildPackage,gpgv))
112 $(eval $(call BuildPackage,gnupg-utils))