From: Clemens Gruber <clemens.gruber@pqgruber.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] libsodium rule for ptxdist
Date: Sun, 27 Jul 2014 01:22:34 +0200 [thread overview]
Message-ID: <53D4383A.2060306@pqgruber.com> (raw)
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 <clemens.gruber@pqgruber.com>
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 <clemens.gruber@pqgruber.com>
+#
+# 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
<clemens.gruber@pqgruber.com>")
+ @$(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
reply other threads:[~2014-07-26 23:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53D4383A.2060306@pqgruber.com \
--to=clemens.gruber@pqgruber.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox