b64c08f2539cca29d93c098a30ff2203197d832d
[packages.git] / utils / gnupg / Makefile
1 #
2 # Copyright (C) 2006-2009 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.10
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:=dcf7ed712997888d616e029637bfc303
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/gnupg
22   SECTION:=utils
23   CATEGORY:=Utilities
24   DEPENDS:=+zlib +libncurses +libreadline
25   TITLE:=GNU privacy guard - a free PGP replacement
26   URL:=http://www.gnupg.org/
27 endef
28
29 define Package/gnupg/description
30  GnuPG is GNU's tool for secure communication and data storage.
31  It can be used to encrypt data and to create digital signatures.
32  It includes an advanced key management facility and is compliant
33  with the proposed OpenPGP Internet standard as described in RFC2440.
34  .
35  GnuPG does not use any patented algorithms so it cannot be compatible
36  with PGP2 because it uses IDEA (which is patented worldwide).
37 endef
38
39 CONFIGURE_ARGS += \
40         --disable-rpath \
41         --disable-asm \
42         --disable-gnupg-iconv \
43         --disable-card-support \
44         --disable-agent-support \
45         --disable-bzip2 \
46         --disable-exec \
47         --disable-ldap \
48         --disable-hkp \
49         --disable-finger \
50         --disable-ftp \
51         --disable-dns-srv \
52         --enable-fake-curl \
53         --disable-regex \
54
55 MAKE_FLAGS += \
56         SUBDIRS="m4 intl zlib util mpi cipher tools g10 keyserver ${checks}" \
57
58 define Package/gnupg/install
59         $(INSTALL_DIR) $(1)/usr/bin
60         $(INSTALL_BIN) $(PKG_BUILD_DIR)/g10/gpg $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,gnupg))