From 5cd4f3ad8aa8503d9cdd961cb97c61f444882da5 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 17 Nov 2013 09:45:19 +0700 Subject: libraries/nacl: Added (cryptographic library) Signed-off-by: Willy Sudiarto Raharjo Signed-off-by: Robby Workman --- libraries/nacl/README | 4 ++ libraries/nacl/nacl.SlackBuild | 103 +++++++++++++++++++++++++++++++++++++++++ libraries/nacl/nacl.info | 10 ++++ libraries/nacl/slack-desc | 19 ++++++++ 4 files changed, 136 insertions(+) create mode 100644 libraries/nacl/README create mode 100644 libraries/nacl/nacl.SlackBuild create mode 100644 libraries/nacl/nacl.info create mode 100644 libraries/nacl/slack-desc diff --git a/libraries/nacl/README b/libraries/nacl/README new file mode 100644 index 0000000000..5a25eb0ba2 --- /dev/null +++ b/libraries/nacl/README @@ -0,0 +1,4 @@ +nacl is a is a new easy-to-use high-speed software library for +network communication, encryption, decryption, signatures, etc. +NaCl's goal is to provide all of the core operations needed to +build higher-level cryptographic tools. \ No newline at end of file diff --git a/libraries/nacl/nacl.SlackBuild b/libraries/nacl/nacl.SlackBuild new file mode 100644 index 0000000000..c39ce91521 --- /dev/null +++ b/libraries/nacl/nacl.SlackBuild @@ -0,0 +1,103 @@ +#!/bin/sh + +# Slackware build script for nacl + +# Copyright 2013 Willy Sudiarto Raharjo okcompilers/c <okcompilers/cpp <.*//" do + +./do + +shost=`hostname | sed 's/\..*//' | tr -cd '[a-z][A-Z][0-9]'` + +mkdir -p $PKG/usr/lib${LIBDIRSUFFIX} +install -D -m 644 build/$shost/lib${LIBDIRSUFFIX}/*/libnacl.a "$PKG/usr/lib${LIBDIRSUFFIX}/libnacl.a" +install -D -m 644 build/$shost/lib${LIBDIRSUFFIX}/*/randombytes.o "$PKG/usr/lib${LIBDIRSUFFIX}/randombytes.o" + +mkdir -p $PKG/usr/include/nacl +install -m 0644 build/$shost/include/*/* "$PKG/usr/include/nacl" + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/nacl/nacl.info b/libraries/nacl/nacl.info new file mode 100644 index 0000000000..9a0e9ad487 --- /dev/null +++ b/libraries/nacl/nacl.info @@ -0,0 +1,10 @@ +PRGNAM="nacl" +VERSION="20110221" +HOMEPAGE="http://nacl.cr.yp.to/index.html" +DOWNLOAD="http://hyperelliptic.org/nacl/nacl-20110221.tar.bz2" +MD5SUM="0b901dd7ff84bd7e8aff4d4893cb944b" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Willy Sudiarto Raharjo" +EMAIL="willysr@slackbuilds.org" diff --git a/libraries/nacl/slack-desc b/libraries/nacl/slack-desc new file mode 100644 index 0000000000..340ca916a1 --- /dev/null +++ b/libraries/nacl/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +nacl: nacl (Cryptographic library) +nacl: +nacl: nacl is a is a new easy-to-use high-speed software library for +nacl: network communication, encryption, decryption, signatures, etc. +nacl: NaCl's goal is to provide all of the core operations needed to +nacl: build higher-level cryptographic tools. +nacl: +nacl: Project URL: http://nacl.cr.yp.to/index.html +nacl: +nacl: +nacl: -- cgit v1.2.3-65-gdbad