pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/monocypher



Module Name:    pkgsrc
Committed By:   maya
Date:           Sat Mar 16 09:17:09 UTC 2019

Added Files:
        pkgsrc/security/monocypher: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/security/monocypher/patches: patch-makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/security/monocypher/DESCR \
    pkgsrc/security/monocypher/Makefile pkgsrc/security/monocypher/PLIST \
    pkgsrc/security/monocypher/buildlink3.mk \
    pkgsrc/security/monocypher/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/monocypher/patches/patch-makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/security/monocypher/DESCR
diff -u /dev/null pkgsrc/security/monocypher/DESCR:1.1
--- /dev/null   Sat Mar 16 09:17:09 2019
+++ pkgsrc/security/monocypher/DESCR    Sat Mar 16 09:17:09 2019
@@ -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.
Index: pkgsrc/security/monocypher/Makefile
diff -u /dev/null pkgsrc/security/monocypher/Makefile:1.1
--- /dev/null   Sat Mar 16 09:17:09 2019
+++ pkgsrc/security/monocypher/Makefile Sat Mar 16 09:17:09 2019
@@ -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"
Index: pkgsrc/security/monocypher/PLIST
diff -u /dev/null pkgsrc/security/monocypher/PLIST:1.1
--- /dev/null   Sat Mar 16 09:17:09 2019
+++ pkgsrc/security/monocypher/PLIST    Sat Mar 16 09:17:09 2019
@@ -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
Index: pkgsrc/security/monocypher/buildlink3.mk
diff -u /dev/null pkgsrc/security/monocypher/buildlink3.mk:1.1
--- /dev/null   Sat Mar 16 09:17:09 2019
+++ pkgsrc/security/monocypher/buildlink3.mk    Sat Mar 16 09:17:09 2019
@@ -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
Index: pkgsrc/security/monocypher/distinfo
diff -u /dev/null pkgsrc/security/monocypher/distinfo:1.1
--- /dev/null   Sat Mar 16 09:17:09 2019
+++ pkgsrc/security/monocypher/distinfo Sat Mar 16 09:17:09 2019
@@ -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

Index: pkgsrc/security/monocypher/patches/patch-makefile
diff -u /dev/null pkgsrc/security/monocypher/patches/patch-makefile:1.1
--- /dev/null   Sat Mar 16 09:17:09 2019
+++ pkgsrc/security/monocypher/patches/patch-makefile   Sat Mar 16 09:17:09 2019
@@ -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