gnutls: updated to 3.5.16
[feed/packages.git] / utils / gnupg / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gnupg
11 PKG_VERSION:=1.4.21
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/gnupg \
16 ftp://ftp.gnupg.org/gcrypt/gnupg
17 PKG_HASH:=6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
18
19 PKG_LICENSE:=GPL-3.0
20 PKG_LICENSE_FILES:=COPYING
21 PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/gnupg/Default
28 SECTION:=utils
29 CATEGORY:=Utilities
30 SUBMENU:=Encryption
31 DEPENDS:=+zlib +libncurses +libreadline
32 TITLE:=GNU privacy guard - a free PGP replacement
33 URL:=http://www.gnupg.org/
34 endef
35
36 define Package/gnupg
37 $(call Package/gnupg/Default)
38 MENU:=1
39 endef
40
41 define Package/gpgv
42 $(call Package/gnupg/Default)
43 TITLE:=GnuPG signature verification only
44 endef
45
46 define Package/gnupg-utils
47 $(call Package/gnupg/Default)
48 DEPENDS:=gnupg +libcurl
49 TITLE:=Key management utilities for GnuPG
50 endef
51
52 define Package/gnupg/description
53 GnuPG is GNU's tool for secure communication and data storage.
54 It can be used to encrypt data and to create digital signatures.
55 It includes an advanced key management facility and is compliant
56 with the proposed OpenPGP Internet standard as described in RFC2440.
57 .
58 GnuPG does not use any patented algorithms so it cannot be compatible
59 with PGP2 because it uses IDEA (which is patented worldwide).
60 endef
61
62 define Package/gpgv/description
63 GPGv is a stripped down version of GnuPG that only checks signatures.
64 .
65 GnuPG does not use any patented algorithms so it cannot be compatible
66 with PGP2 because it uses IDEA (which is patented worldwide).
67 endef
68
69 define Package/gnupg-utils/description
70 Key management utilies for GnuPG.
71 This package is needed to import keys from a keyserver.
72 endef
73
74 CONFIGURE_ARGS += \
75 --disable-rpath \
76 --disable-asm \
77 --disable-gnupg-iconv \
78 --disable-card-support \
79 --disable-agent-support \
80 --disable-bzip2 \
81 --disable-ldap \
82 --disable-finger \
83 --disable-dns-srv \
84 --disable-regex \
85
86 MAKE_FLAGS += \
87 SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
88
89 define Package/gnupg/install
90 $(INSTALL_DIR) $(1)/usr/bin
91 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
92 endef
93
94 define Package/gpgv/install
95 $(INSTALL_DIR) $(1)/usr/bin
96 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/
97 endef
98
99 define Package/gnupg-utils/install
100 $(INSTALL_DIR) $(1)/usr/lib/gnupg
101 for file in gpgkeys_curl gpgkeys_hkp; do \
102 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
103 $(1)/usr/lib/gnupg/; \
104 done
105 endef
106
107 $(eval $(call BuildPackage,gnupg))
108 $(eval $(call BuildPackage,gpgv))
109 $(eval $(call BuildPackage,gnupg-utils))