summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/gnupg2/Makefile55
-rw-r--r--package/libksba/Makefile27
-rw-r--r--package/npth/Makefile27
3 files changed, 109 insertions, 0 deletions
diff --git a/package/gnupg2/Makefile b/package/gnupg2/Makefile
new file mode 100644
index 000000000..f235e5a91
--- /dev/null
+++ b/package/gnupg2/Makefile
@@ -0,0 +1,55 @@
+# 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:= gnupg2
+PKG_VERSION:= 2.1.13
+PKG_RELEASE:= 1
+PKG_HASH:= 4f9d83a6221daa60130fa79f0b1d37d6c20fffdd0320b640c7a597c5b6219675
+PKG_DESCR:= gnu privacy guard (modern)
+PKG_SECTION:= app/crypto
+PKG_DEPENDS:= libreadline libncurses libgcrypt libgpg-error libassuan
+PKG_DEPENDS+= libksba npth
+PKG_BUILDDEP:= readline ncurses libgcrypt libgpg-error libassuan
+PKG_BUILDDEP+= libksba npth
+PKG_URL:= http://www.gnupg.org/
+PKG_SITES:= ftp://ftp.gnupg.org/gcrypt/gnupg/
+
+DISTFILES:= gnupg-$(PKG_VERSION).tar.bz2
+WRKDIST= ${WRKDIR}/gnupg-${PKG_VERSION}
+
+PKG_SUBPKGS:= GNUPG2 GPGV2
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,GNUPG2,gnupg2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+$(eval $(call PKG_template,GPGV2,gpgv2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIGURE_ARGS+= --disable-asm \
+ --disable-dirmngr \
+ --disable-dns-srv \
+ --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
+
+gpgv2-install:
+ $(INSTALL_DIR) $(IDIR_GPGV2)/usr/bin
+ $(INSTALL_BIN) $(WRKBUILD)/g10/gpgv \
+ $(IDIR_GPGV2)/usr/bin
+
+gnupg2-install:
+ $(INSTALL_DIR) $(IDIR_GNUPG2)/usr/bin/
+ $(INSTALL_BIN) $(WRKBUILD)/g10/gpg $(IDIR_GNUPG2)/usr/bin/
+ # we need root privileges for secure memory (locked pages)
+ chmod u+s $(IDIR_GNUPG2)/usr/bin/gpg
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/libksba/Makefile b/package/libksba/Makefile
new file mode 100644
index 000000000..23a5bc915
--- /dev/null
+++ b/package/libksba/Makefile
@@ -0,0 +1,27 @@
+# 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:= libksba
+PKG_VERSION:= 1.3.4
+PKG_RELEASE:= 1
+PKG_HASH:= f6c2883cebec5608692d8730843d87f237c0964d923bbe7aa89c05f20558ad4f
+PKG_DESCR:= working with X.509 certificates
+PKG_SECTION:= libs/crypto
+PKG_URL:= https://www.gnupg.org/(fr)/related_software/libksba/index.html
+PKG_SITES:= https://www.gnupg.org/ftp/gcrypt/libksba/
+PKG_OPTS:= dev
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBKSBA,libksba,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+libksba-install:
+ $(INSTALL_DIR) $(IDIR_LIBKSBA)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libksba*.so* \
+ $(IDIR_LIBKSBA)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/npth/Makefile b/package/npth/Makefile
new file mode 100644
index 000000000..da0ca6594
--- /dev/null
+++ b/package/npth/Makefile
@@ -0,0 +1,27 @@
+# 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:= npth
+PKG_VERSION:= 1.2
+PKG_RELEASE:= 1
+PKG_HASH:= 6ddbdddb2cf49a4723f9d1ad6563c480d6760dcb63cb7726b8fc3bc2e1b6c08a
+PKG_DESCR:= non-preemptive threads implementation
+PKG_SECTION:= libs/misc
+PKG_URL:= https://www.gnupg.org/related_software/npth/index.html
+PKG_SITES:= https://www.gnupg.org/ftp/gcrypt/npth/
+PKG_OPTS:= dev
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,NPTH,npth,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+npth-install:
+ $(INSTALL_DIR) $(IDIR_NPTH)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libnpth*.so* \
+ $(IDIR_NPTH)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk