pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[.joined/pkgsrc/trunk]: .joined/pkgsrc/security/nacl Fix building the curvecp...
details: https://anonhg.NetBSD.org/.joined/pkgsrc/rev/07f7b325bef7
branches: trunk
changeset: 371092:07f7b325bef7
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Tue Jan 04 20:53:20 2022 +0000
description:
Fix building the curvecp programs on at least FreeBSD and macOS. Install
them. Bump PKGREVISION.
diffstat:
security/nacl/Makefile | 21 ++++++++++++++-------
security/nacl/PLIST | 7 ++++++-
security/nacl/distinfo | 3 ++-
security/nacl/patches/patch-curvecp_socket__udp.c | 17 +++++++++++++++++
4 files changed, 39 insertions(+), 9 deletions(-)
diffs (85 lines):
diff -r 8e982c401826 -r 07f7b325bef7 security/nacl/Makefile
--- a/security/nacl/Makefile Tue Jan 04 20:52:30 2022 +0000
+++ b/security/nacl/Makefile Tue Jan 04 20:53:20 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2019/01/05 06:16:14 schmonz Exp $
+# $NetBSD: Makefile,v 1.5 2022/01/04 20:53:20 schmonz Exp $
DISTNAME= nacl-20110221
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= https://hyperelliptic.org/nacl/
EXTRACT_SUFX= .tar.bz2
@@ -21,10 +21,17 @@
${AR} -r build/*/lib/*/libnacl.a build/*/lib/*/randombytes.o
do-install:
- cd ${WRKSRC}/build/* && \
- ${INSTALL_PROGRAM} bin/nacl-sha256 ${DESTDIR}${PREFIX}/bin && \
- ${INSTALL_PROGRAM} bin/nacl-sha512 ${DESTDIR}${PREFIX}/bin && \
- ${INSTALL_LIB} lib/*/* ${DESTDIR}${PREFIX}/lib && \
- ${INSTALL_DATA} include/*/* ${DESTDIR}${PREFIX}/include
+ cd ${WRKSRC}/build/* && \
+ for i in nacl-sha256 nacl-sha512 \
+ curvecpclient curvecpserver \
+ curvecpmakekey curvecpprintkey curvecpmessage; do \
+ ${INSTALL_PROGRAM} bin/$${i} ${DESTDIR}${PREFIX}/bin; \
+ done && \
+ for i in lib/*/*; do \
+ ${INSTALL_LIB} $${i} ${DESTDIR}${PREFIX}/lib; \
+ done && \
+ for i in include/*/*; do \
+ ${INSTALL_DATA} $${i} ${DESTDIR}${PREFIX}/include; \
+ done
.include "../../mk/bsd.pkg.mk"
diff -r 8e982c401826 -r 07f7b325bef7 security/nacl/PLIST
--- a/security/nacl/PLIST Tue Jan 04 20:52:30 2022 +0000
+++ b/security/nacl/PLIST Tue Jan 04 20:53:20 2022 +0000
@@ -1,4 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2014/08/12 05:00:34 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/01/04 20:53:20 schmonz Exp $
+bin/curvecpclient
+bin/curvecpmakekey
+bin/curvecpmessage
+bin/curvecpprintkey
+bin/curvecpserver
bin/nacl-sha256
bin/nacl-sha512
include/cpucycles.h
diff -r 8e982c401826 -r 07f7b325bef7 security/nacl/distinfo
--- a/security/nacl/distinfo Tue Jan 04 20:52:30 2022 +0000
+++ b/security/nacl/distinfo Tue Jan 04 20:53:20 2022 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:17:20 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/01/04 20:53:20 schmonz Exp $
BLAKE2s (nacl-20110221.tar.bz2) = d8fccb5036297da7fe4f4d357cd326f10094ba709b9422ccd1571b13e3981f4d
SHA512 (nacl-20110221.tar.bz2) = 4c031ceffe6a28dc74b46ac003d485531f78de467c802df73c8b22ca53644dabb7d2e3080b7bdd6583f0d07ad76b6d95bc0ffdce319ca2f80ee041e6fe618656
Size (nacl-20110221.tar.bz2) = 163415 bytes
+SHA1 (patch-curvecp_socket__udp.c) = 77e98768d015cb16af1ffa8b57464a12620d8110
SHA1 (patch-do) = 590961a4b2daf5693a477b06d35c8ea92f8e3173
SHA1 (patch-okcompilers_c) = bdbc229671428738e0115551ef1c123f3224d3cf
SHA1 (patch-okcompilers_cpp) = bf5468ce0d0881cbf124cc5590746f685a2c74f5
diff -r 8e982c401826 -r 07f7b325bef7 security/nacl/patches/patch-curvecp_socket__udp.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/nacl/patches/patch-curvecp_socket__udp.c Tue Jan 04 20:53:20 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-curvecp_socket__udp.c,v 1.1 2022/01/04 20:53:20 schmonz Exp $
+
+Borrow patch from FreeBSD ports that also fixes macOS build.
+
+--- curvecp/socket_udp.c.orig 2011-02-21 01:49:34.000000000 +0000
++++ curvecp/socket_udp.c
+@@ -6,6 +6,10 @@
+ #include "socket.h"
+ #include "blocking.h"
+
++#ifndef SOL_IP
++#define SOL_IP IPPROTO_IP /* FreeBSD requires protocol number */
++#endif
++
+ static void enable_bsd_fragmentation(int fd)
+ {
+ #ifdef IP_DONTFRAG
Home |
Main Index |
Thread Index |
Old Index