Merge pull request #2287 from wodu/master
[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.20
12 PKG_RELEASE:=2
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:=b7af897a041c03c8ad1c7c466b54d10d
18
19 PKG_LICENSE:=GPL-3.0
20 PKG_LICENSE_FILES:=COPYING
21 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
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 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 endef
39
40 define Package/gnupg-utils
41 $(call Package/gnupg/Default)
42 DEPENDS:=gnupg +libcurl
43 TITLE:=Key management utilities for GnuPG
44 endef
45
46 define Package/gnupg/description
47 GnuPG is GNU's tool for secure communication and data storage.
48 It can be used to encrypt data and to create digital signatures.
49 It includes an advanced key management facility and is compliant
50 with the proposed OpenPGP Internet standard as described in RFC2440.
51 .
52 GnuPG does not use any patented algorithms so it cannot be compatible
53 with PGP2 because it uses IDEA (which is patented worldwide).
54 endef
55
56 define Package/gnupg-utils/description
57 Key management utilies for GnuPG.
58 This package is needed to import keys from a keyserver.
59 endef
60
61 CONFIGURE_ARGS += \
62 --disable-rpath \
63 --disable-asm \
64 --disable-gnupg-iconv \
65 --disable-card-support \
66 --disable-agent-support \
67 --disable-bzip2 \
68 --disable-ldap \
69 --disable-finger \
70 --disable-dns-srv \
71 --disable-regex \
72
73 MAKE_FLAGS += \
74 SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
75
76 define Package/gnupg/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpg $(1)/usr/bin/
79 endef
80
81 define Package/gnupg-utils/install
82 $(INSTALL_DIR) $(1)/usr/lib/gnupg
83 for file in gpgkeys_curl gpgkeys_hkp; do \
84 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/gnupg/$$$$file \
85 $(1)/usr/lib/gnupg/; \
86 done
87 endef
88
89 $(eval $(call BuildPackage,gnupg))
90 $(eval $(call BuildPackage,gnupg-utils))