ksmbd-tools: update to 3.5.1
[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.23
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/gnupg
16 PKG_HASH:=c9462f17e651b6507848c08c430c791287cd75491f8b5a8b50c6ed46b12678ba
17
18 PKG_LICENSE:=GPL-3.0-or-later
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/gnupg/Default
27 SECTION:=utils
28 CATEGORY:=Utilities
29 SUBMENU:=Encryption
30 DEPENDS:=+zlib +libncurses +libreadline
31 TITLE:=GNU privacy guard - a free PGP replacement
32 URL:=http://www.gnupg.org/
33 endef
34
35 define Package/gnupg
36 $(call Package/gnupg/Default)
37 MENU:=1
38 ALTERNATIVES:=200:/usr/bin/gpg:/usr/bin/gpg1
39 endef
40
41 define Package/gpgv
42 $(call Package/gnupg/Default)
43 TITLE:=GnuPG signature verification only
44 ALTERNATIVES:=200:/usr/bin/gpgv:/usr/bin/gpgv1
45 endef
46
47 define Package/gnupg-utils
48 $(call Package/gnupg/Default)
49 DEPENDS:=gnupg +libcurl
50 TITLE:=Key management utilities for GnuPG
51 endef
52
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.
58 .
59 GnuPG does not use any patented algorithms so it cannot be compatible
60 with PGP2 because it uses IDEA (which is patented worldwide).
61 endef
62
63 define Package/gpgv/description
64 GPGv is a stripped down version of GnuPG that only checks signatures.
65 .
66 GnuPG does not use any patented algorithms so it cannot be compatible
67 with PGP2 because it uses IDEA (which is patented worldwide).
68 endef
69
70 define Package/gnupg-utils/description
71 Key management utilies for GnuPG.
72 This package is needed to import keys from a keyserver.
73 endef
74
75 CONFIGURE_ARGS += \
76 --disable-rpath \
77 --disable-asm \
78 --disable-gnupg-iconv \
79 --disable-card-support \
80 --disable-agent-support \
81 --disable-bzip2 \
82 --disable-ldap \
83 --disable-finger \
84 --disable-dns-srv \
85 --disable-regex
86
87 MAKE_FLAGS += \
88 SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
89
90 TARGET_CFLAGS += -fcommon
91
92 define Package/gnupg/install
93 $(INSTALL_DIR) $(1)/usr/bin
94 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/gpg1
95 endef
96
97 define Package/gpgv/install
98 $(INSTALL_DIR) $(1)/usr/bin
99 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/gpgv1
100 endef
101
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/; \
107 done
108 endef
109
110 $(eval $(call BuildPackage,gnupg))
111 $(eval $(call BuildPackage,gpgv))
112 $(eval $(call BuildPackage,gnupg-utils))