pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/monocypher Add monocypher version 2.0.5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1e1509d6584
branches:  trunk
changeset: 331284:c1e1509d6584
user:      maya <maya%pkgsrc.org@localhost>
date:      Sat Mar 16 09:17:09 2019 +0000

description:
Add monocypher version 2.0.5

Monocypher is an easy to use crypto library. It is:

- Small. Sloccount counts about 1700 lines of code, small enough to
allow audits. The binaries are under 65KB.
= Easy to deploy. Just add monocypher.c and monocypher.h to your
project. They compile as C99 or C++, have no dependency, and
are dedicated to the public domain.
- Easy to use. The API is small, consistent, and cannot fail
on correct input.
- Fast. The primitives are fast to begin with, and performance
wasn't needlessly sacrificed. Monocypher holds up pretty well
against Libsodium, despite being closer in size to TweetNaCl.

diffstat:

 security/monocypher/DESCR                  |  12 ++++++++++++
 security/monocypher/Makefile               |  20 ++++++++++++++++++++
 security/monocypher/PLIST                  |   6 ++++++
 security/monocypher/buildlink3.mk          |  12 ++++++++++++
 security/monocypher/distinfo               |   7 +++++++
 security/monocypher/patches/patch-makefile |  21 +++++++++++++++++++++
 6 files changed, 78 insertions(+), 0 deletions(-)

diffs (102 lines):

diff -r 97d06a48c925 -r c1e1509d6584 security/monocypher/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/monocypher/DESCR Sat Mar 16 09:17:09 2019 +0000
@@ -0,0 +1,12 @@
+Monocypher is an easy to use crypto library. It is:
+
+- Small. Sloccount counts about 1700 lines of code, small enough to
+allow audits. The binaries are under 65KB.
+= Easy to deploy. Just add monocypher.c and monocypher.h to your
+project. They compile as C99 or C++, have no dependency, and
+are dedicated to the public domain.
+- Easy to use. The API is small, consistent, and cannot fail
+on correct input.
+- Fast. The primitives are fast to begin with, and performance
+wasn't needlessly sacrificed. Monocypher holds up pretty well
+against Libsodium, despite being closer in size to TweetNaCl.
diff -r 97d06a48c925 -r c1e1509d6584 security/monocypher/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/monocypher/Makefile      Sat Mar 16 09:17:09 2019 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2019/03/16 09:17:09 maya Exp $
+
+DISTNAME=      monocypher-2.0.5
+CATEGORIES=    security
+MASTER_SITES=  https://monocypher.org/download/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://monocypher.org/
+COMMENT=       Easy to use, deploy and auditable crypto library
+LICENSE=       cc0-1.0-universal OR 2-clause-bsd
+
+USE_TOOLS+=    gmake
+MAKE_FILE=     makefile
+MAKE_ENV+=     MAN_DIR=${DESTDIR}/${PKGMANDIR}
+TEST_TARGET=   test
+
+# We default to binaries portable to more than one arch.
+BUILDLINK_TRANSFORM+=  rm:-march=native
+
+.include "../../mk/bsd.pkg.mk"
diff -r 97d06a48c925 -r c1e1509d6584 security/monocypher/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/monocypher/PLIST Sat Mar 16 09:17:09 2019 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2019/03/16 09:17:09 maya Exp $
+include/monocypher.h
+lib/libmonocypher.a
+lib/libmonocypher.so
+lib/libmonocypher.so.2
+lib/pkgconfig/monocypher.pc
diff -r 97d06a48c925 -r c1e1509d6584 security/monocypher/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/monocypher/buildlink3.mk Sat Mar 16 09:17:09 2019 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/03/16 09:17:09 maya Exp $
+
+BUILDLINK_TREE+=       monocypher
+
+.if !defined(MONOCYPHER_BUILDLINK3_MK)
+MONOCYPHER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.monocypher+=     monocypher>=2.0.5
+BUILDLINK_PKGSRCDIR.monocypher?=       ../../security/monocypher
+.endif # MONOCYPHER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -monocypher
diff -r 97d06a48c925 -r c1e1509d6584 security/monocypher/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/monocypher/distinfo      Sat Mar 16 09:17:09 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/03/16 09:17:09 maya Exp $
+
+SHA1 (monocypher-2.0.5.tar.gz) = b409cc5a69c96d38d47c07affd550bd33d6861f2
+RMD160 (monocypher-2.0.5.tar.gz) = 755440680f64195cea6c969ca49cb9b0d794f3f4
+SHA512 (monocypher-2.0.5.tar.gz) = 634dfaa981decb48043161f733702f7b55c1057bbb4cd8c202c8d8c1dd6fadcfbce881328f5df95213931eeea160d74330d18992d83fd60c76390e53023078f9
+Size (monocypher-2.0.5.tar.gz) = 988921 bytes
+SHA1 (patch-makefile) = 756eaeb7d11a013c0ebc81a47e7a1cf00b7d4fb8
diff -r 97d06a48c925 -r c1e1509d6584 security/monocypher/patches/patch-makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/monocypher/patches/patch-makefile        Sat Mar 16 09:17:09 2019 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-makefile,v 1.1 2019/03/16 09:17:09 maya Exp $
+
+Allow overriding CC, DESTDIR and PREFIX
+Use the more standard MANDIR (that we override)
+
+--- makefile.orig      2018-06-27 09:11:23.000000000 +0000
++++ makefile
+@@ -1,9 +1,9 @@
+-CC=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions
++CC?=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions
+ CFLAGS= -pedantic -Wall -Wextra -O3 -march=native
+-DESTDIR=
+-PREFIX=usr/local
++DESTDIR?=
++PREFIX?=usr/local
+ PKGCONFIG=$(DESTDIR)/$(PREFIX)/lib/pkgconfig
+-MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3
++MANDIR?=$(DESTDIR)/$(PREFIX)/share/man/man3
+ 
+ TARBALL_VERSION=$$(cat VERSION.md)
+ TARBALL_DIR=.



Home | Main Index | Thread Index | Old Index