mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] libsodium rule for ptxdist
@ 2014-07-26 23:22 Clemens Gruber
  0 siblings, 0 replies; only message in thread
From: Clemens Gruber @ 2014-07-26 23:22 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-26 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26 23:22 [ptxdist] libsodium rule for ptxdist Clemens Gruber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox