From 7b893e592cacaaaa66f157761aa904026625b4ce Mon Sep 17 00:00:00 2001 From: agc Date: Wed, 7 Aug 2013 04:54:06 +0000 Subject: Initial import of libcurvecpr-20130806 into the packages collection. libcurvecpr is a library implementation of Dan Bernstein's CurveCP libcurvecpr is a low-level, networking-independent implementation of Daniel J. Bernstein's CurveCP. libcurvecpr is based on a system of callbacks that must be implemented by library users. Like the reference CurveCP implementation, the client, server, and message-handling portions of libcurvecpr are entirely independent of each other. This means that while it's slightly more effort to build software based on libcurvecpr than other packages, it provides complete freedom to use any underlying mechanism for handling network traffic you want - whether it's an IPC connection to another program, standard poll(2)-type functionality, or libev. --- security/libcurvecpr/DESCR | 13 +++++++++++ security/libcurvecpr/Makefile | 29 +++++++++++++++++++++++++ security/libcurvecpr/PLIST | 13 +++++++++++ security/libcurvecpr/buildlink3.mk | 13 +++++++++++ security/libcurvecpr/distinfo | 6 +++++ security/libcurvecpr/patches/patch-configure.ac | 24 ++++++++++++++++++++ 6 files changed, 98 insertions(+) create mode 100644 security/libcurvecpr/DESCR create mode 100644 security/libcurvecpr/Makefile create mode 100644 security/libcurvecpr/PLIST create mode 100644 security/libcurvecpr/buildlink3.mk create mode 100644 security/libcurvecpr/distinfo create mode 100644 security/libcurvecpr/patches/patch-configure.ac (limited to 'security') diff --git a/security/libcurvecpr/DESCR b/security/libcurvecpr/DESCR new file mode 100644 index 00000000000..e02b9abd89f --- /dev/null +++ b/security/libcurvecpr/DESCR @@ -0,0 +1,13 @@ +libcurvecpr is a low-level, networking-independent implementation of +Daniel J. Bernstein's CurveCP. + +libcurvecpr is based on a system of callbacks that must be implemented +by library users. Like the reference CurveCP implementation, the +client, server, and message-handling portions of libcurvecpr are +entirely independent of each other. + +This means that while it's slightly more effort to build software +based on libcurvecpr than other packages, it provides complete freedom +to use any underlying mechanism for handling network traffic you want +- whether it's an IPC connection to another program, standard +poll(2)-type functionality, or libev. diff --git a/security/libcurvecpr/Makefile b/security/libcurvecpr/Makefile new file mode 100644 index 00000000000..f06176b157f --- /dev/null +++ b/security/libcurvecpr/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1.1.1 2013/08/07 04:54:06 agc Exp $ + +DISTNAME= master +PKGNAME= libcurvecpr-20130806 +CATEGORIES= security +MASTER_SITES= https://github.com/impl/libcurvecpr/archive/ +EXTRACT_SUFX= .zip + +MAINTAINER= agc@NetBSD.org +HOMEPAGE= http://cr.yp.to/ecdh.html +COMMENT= Uses elliptic-curve cryptography to encrypt and authenticate data +LICENSE= modified-bsd + +DIST_SUBDIR= ${PKGNAME_NOREV} + +WRKSRC= ${WRKDIR}/libcurvecpr-master + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config automake autoreconf + +AUTO_MKDIRS= yes + +pre-configure: + cd ${WRKSRC} && ./autogen.sh + +.include "../../security/libsodium/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/security/libcurvecpr/PLIST b/security/libcurvecpr/PLIST new file mode 100644 index 00000000000..aa0a5ee97e7 --- /dev/null +++ b/security/libcurvecpr/PLIST @@ -0,0 +1,13 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2013/08/07 04:54:06 agc Exp $ +include/curvecpr.h +include/curvecpr/block.h +include/curvecpr/bytes.h +include/curvecpr/chicago.h +include/curvecpr/client.h +include/curvecpr/messager.h +include/curvecpr/packet.h +include/curvecpr/server.h +include/curvecpr/session.h +include/curvecpr/util.h +lib/libcurvecpr.la +lib/pkgconfig/libcurvecpr.pc diff --git a/security/libcurvecpr/buildlink3.mk b/security/libcurvecpr/buildlink3.mk new file mode 100644 index 00000000000..0189f94c4ec --- /dev/null +++ b/security/libcurvecpr/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2013/08/07 04:54:06 agc Exp $ + +BUILDLINK_TREE+= libcurvecpr + +.if !defined(LIBCURVECPR_BUILDLINK3_MK) +LIBCURVECPR_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libcurvecpr+= libcurvecpr>=20130806 +BUILDLINK_PKGSRCDIR.libcurvecpr?= ../../security/libcurvecpr + +.endif # LIBCURVECPR_BUILDLINK3_MK + +BUILDLINK_TREE+= -libcurvecpr diff --git a/security/libcurvecpr/distinfo b/security/libcurvecpr/distinfo new file mode 100644 index 00000000000..55adf314e30 --- /dev/null +++ b/security/libcurvecpr/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2013/08/07 04:54:06 agc Exp $ + +SHA1 (libcurvecpr-20130806/master.zip) = 4083d5edaec792f68bfd91414ce5d4aedab8a688 +RMD160 (libcurvecpr-20130806/master.zip) = ae87ec907de18324c38e147b30c8cc7103380a48 +Size (libcurvecpr-20130806/master.zip) = 110182 bytes +SHA1 (patch-configure.ac) = ae60603706decaf38ad0b4b70aa98da6fee2a983 diff --git a/security/libcurvecpr/patches/patch-configure.ac b/security/libcurvecpr/patches/patch-configure.ac new file mode 100644 index 00000000000..4c83f0d0a02 --- /dev/null +++ b/security/libcurvecpr/patches/patch-configure.ac @@ -0,0 +1,24 @@ +$NetBSD: patch-configure.ac,v 1.1.1.1 2013/08/07 04:54:06 agc Exp $ + +New in autoconf-1.12 + +--- configure.ac 2013/08/07 04:25:57 1.1 ++++ configure.ac 2013/08/07 04:26:18 +@@ -11,7 +11,7 @@ + AC_SUBST(CURVECPR_LIBRARY_VERSION) + + # Checks for programs. +-AM_PROG_AR ++m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + + AC_PROG_CC + AC_PROG_CPP +@@ -25,7 +25,7 @@ + PKG_PROG_PKG_CONFIG + + # Checks for libraries. +-PKG_CHECK_MODULES([CHECK], [check >= 0.9.8]) ++#PKG_CHECK_MODULES([CHECK], [check >= 0.9.8]) + AC_SEARCH_LIBS([clock_gettime], [rt posix4]) + AC_CHECK_LIB([sodium], [sodium_init], [], [AC_MSG_ERROR([missing libsodium])]) + -- cgit v1.2.3