Merge branch 'v1.4' of jpellegrini/package-feed into v1.4
[librecmc/package-feed.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_MD5SUM:=9bdeabf3c0f87ff21cb3f9216efdd01d
18 PKG_HASH:=6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276
19
20 PKG_LICENSE:=GPL-3.0
21 PKG_LICENSE_FILES:=COPYING
22 PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/gnupg/Default
29   SECTION:=utils
30   CATEGORY:=Utilities
31   SUBMENU:=Encryption
32   DEPENDS:=+zlib +libncurses +libreadline
33   TITLE:=GNU privacy guard - a free PGP replacement
34   URL:=http://www.gnupg.org/
35 endef
36
37 define Package/gnupg
38   $(call Package/gnupg/Default)
39   MENU:=1
40 endef
41
42 define Package/gpgv
43   $(call Package/gnupg/Default)
44   TITLE:=GnuPG signature verification only
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 define Package/gnupg/install
91         $(INSTALL_DIR) $(1)/usr/bin
92         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
93 endef
94
95 define Package/gpgv/install
96         $(INSTALL_DIR) $(1)/usr/bin
97         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpgv $(1)/usr/bin/
98 endef
99
100 define Package/gnupg-utils/install
101         $(INSTALL_DIR) $(1)/usr/lib/gnupg
102         for file in gpgkeys_curl gpgkeys_hkp; do \
103                 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
104                   $(1)/usr/lib/gnupg/; \
105         done
106 endef
107
108 $(eval $(call BuildPackage,gnupg))
109 $(eval $(call BuildPackage,gpgv))
110 $(eval $(call BuildPackage,gnupg-utils))