summaryrefslogtreecommitdiff
path: root/package/gnupg/Makefile
blob: 0794aa3866e711bd49424954ff7886cf787356fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		gnupg
PKG_VERSION:=		1.4.23
PKG_RELEASE:=		1
PKG_HASH:=		c9462f17e651b6507848c08c430c791287cd75491f8b5a8b50c6ed46b12678ba
PKG_DESCR:=		gnu privacy guard
PKG_SECTION:=		app/crypto
PKG_DEPENDS:=		libreadline libncurses
PKG_BUILDDEP:=		readline ncurses
PKG_URL:=		http://www.gnupg.org/
PKG_SITES:=		ftp://ftp.gnupg.org/gcrypt/gnupg/

DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION).tar.bz2

PKG_SUBPKGS:=		GNUPG GPGV
 
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,GNUPG,gnupg,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
$(eval $(call PKG_template,GPGV,gpgv,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

CONFIGURE_ARGS+=	--disable-asm \
			--disable-gnupg-iconv \
			--disable-card-support \
			--disable-agent-support \
			--disable-bzip2 \
			--disable-exec \
			--disable-ldap \
			--disable-hkp \
			--disable-finger \
			--disable-dns-srv \
			--disable-rpath \
			--disable-regex

gpgv-install:
	$(INSTALL_DIR) $(IDIR_GPGV)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/gpgv \
		$(IDIR_GPGV)/usr/bin

gnupg-install:
	$(INSTALL_DIR) $(IDIR_GNUPG)/usr/bin/
	$(INSTALL_DIR) $(IDIR_GNUPG)/usr/share/gnupg
	$(INSTALL_DATA) $(WRKINST)/usr/share/gnupg/options.skel \
		$(IDIR_GNUPG)/usr/share/gnupg
	$(INSTALL_BIN) $(WRKINST)/usr/bin/gpg $(IDIR_GNUPG)/usr/bin/
	# we need root privileges for secure memory (locked pages)
	chmod u+s $(IDIR_GNUPG)/usr/bin/gpg

include $(ADK_TOPDIR)/mk/pkg-bottom.mk