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