-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Add Sodium version 0.4.5 as new package to OpenWrt.

Sodium is cryptographic library based on NaCl and exposes
a very simple, high-level API with a tiny set of functions for
each operation. It improves on many shortcomings of NaCl.

Signed-off-by: Moritz Warning <moritzwarning at web.de>
- ---
 libs/libsodium/Makefile |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 libs/libsodium/Makefile

diff --git a/libs/libsodium/Makefile b/libs/libsodium/Makefile
new file mode 100644
index 0000000..ba952b8
- --- /dev/null
+++ b/libs/libsodium/Makefile
@@ -0,0 +1,41 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libsodium
+PKG_VERSION:=0.4.5
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://github.com/jedisct1/libsodium/releases/download/$(PKG_VERSION)
+PKG_MD5SUM:=3a97d2c29ec0133e334036e3f19d0741
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libsodium
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=NaCl-based crypto library
+  URL:=http://github.com/jedisct1/libsodium
+endef
+
+define Build/Configure
+       $(call Build/Configure/Default,--enable-shared=no)
+endef
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include/sodium
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/sodium.h $(1)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/sodium/*.h $(1)/usr/include/sodium
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsodium.a $(1)/usr/lib
+endef
+
+$(eval $(call BuildPackage,libsodium))
- -- 
1.7.10.4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQEcBAEBAgAGBQJSgATzAAoJECHrh56PP4wplQ0IAN/iHEonqUzCTgsszn8nU7Mx
Hg0uog/7g7ia/hKTq7Y5XU1rt81p60c5VzShiKyv8r5TJLZEVXyMvZVwiQodDpsc
eEYWvS6e557tNAhYgCa4uGm7pmdrO2bq0Av2j6RSzBvG82mCl9osg/Z1DeHQYD3f
Yb1uBuZMmEsczvaeJuCLrv2H7vQy24YZ+X3KiJDF4P98iln4YJBfHSQMzW/GAc+p
FyFSaN9d6mksCZy9hvXs4fHgCdAJEgr7JjCQwlTJtlkY6fw4pll3G26QBBHNazAk
TnzQPWwj/sfURWSxrdnJ+NW3sl66IZoZ81wuVR/3ytXXvo2OHhDGSupATYfDYhQ=
=dvQ7
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to