From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.pqgruber.com ([178.189.19.235]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XBBJ6-0006Tz-KH for ptxdist@pengutronix.de; Sun, 27 Jul 2014 01:23:18 +0200 Received: from [10.20.30.14] (chello213047245140.tirol.surfer.at [213.47.245.140]) by mail.pqgruber.com (Postfix) with ESMTPSA id 2AA0A4E86B for ; Sun, 27 Jul 2014 01:23:16 +0200 (CEST) Message-ID: <53D4383A.2060306@pqgruber.com> Date: Sun, 27 Jul 2014 01:22:34 +0200 From: Clemens Gruber MIME-Version: 1.0 Subject: [ptxdist] libsodium rule for ptxdist Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, I created a build rule for the crypto library libsodium, a fork of djb's NaCl library with an improved API (much easier to use, with higher level abstractions, etc). Author: Clemens Gruber Date: Sun Jul 27 00:44:30 2014 +0200 Add build rule for libsodium --- rules/libsodium.in | 11 ++++++++++ rules/libsodium.make | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/rules/libsodium.in b/rules/libsodium.in new file mode 100644 index 0000000..421132d --- /dev/null +++ b/rules/libsodium.in @@ -0,0 +1,11 @@ +## SECTION=networking + +config LIBSODIUM + tristate + prompt "libsodium" + help + Sodium is an easy-to-use software library for encryption, decryption, + signatures, password hashing and more. It is a portable, cross-compilable, + installable, packageable fork of NaCl (djb), with a compatible API, and an + extended API to improve usability even further. Its goal is to provide all + of the core operations needed to build higher-level cryptographic tools. diff --git a/rules/libsodium.make b/rules/libsodium.make new file mode 100644 index 0000000..a4caabc --- /dev/null +++ b/rules/libsodium.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Clemens Gruber +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBSODIUM) += libsodium + +# +# Paths and names +# +LIBSODIUM_VERSION := 0.6.1 +LIBSODIUM_MD5 := 894da0e07a715dd8e44f8b3486093e70 +LIBSODIUM := libsodium-$(LIBSODIUM_VERSION) +LIBSODIUM_SUFFIX := tar.gz +LIBSODIUM_URL := http://download.libsodium.org/libsodium/releases/$(LIBSODIUM).$(LIBSODIUM_SUFFIX) +LIBSODIUM_SOURCE := $(SRCDIR)/$(LIBSODIUM).$(LIBSODIUM_SUFFIX) +LIBSODIUM_DIR := $(BUILDDIR)/$(LIBSODIUM) +LIBSODIUM_LICENSE := ISC + +# +# autoconf +# +LIBSODIUM_CONF_TOOL := autoconf +LIBSODIUM_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --enable-shared \ + --disable-static \ + --with-gnu-ld + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libsodium.targetinstall: + @$(call targetinfo) + + @$(call install_init, libsodium) + @$(call install_fixup, libsodium,PRIORITY,optional) + @$(call install_fixup, libsodium,SECTION,base) + @$(call install_fixup, libsodium,AUTHOR,"Clemens Gruber ") + @$(call install_fixup, libsodium,DESCRIPTION,missing) + + @$(call install_lib, libsodium, 0, 0, 0644, libsodium) + + @$(call install_finish, libsodium) + + @$(call touch) + +# vim: syntax=make Regards, Clemens -- ptxdist mailing list ptxdist@pengutronix.de