pkgsrc-WIP-changes archive

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

libsignal-protocol-c: Update to 2.3.3



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryoon%NetBSD.org@localhost>
Pushed By:	ryoon
Date:		Thu Jun 11 22:38:03 2020 +0900
Changeset:	7e503dc369cd00877e528970bff6ccecd32fd633

Modified Files:
	libsignal-protocol-c/DESCR
	libsignal-protocol-c/Makefile
	libsignal-protocol-c/PLIST
	libsignal-protocol-c/buildlink3.mk
	libsignal-protocol-c/distinfo

Log Message:
libsignal-protocol-c: Update to 2.3.3

* Use upstream tarball filename and improve DESCR
* Build and install shared library
* Change category to chat

Changelog:
Add limits.h include to provide INT_MAX.
Introduce srand_deterministic to match OpenBSD
Test for endianness during CMake setup
Fix leaks in session_cipher get functions

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7e503dc369cd00877e528970bff6ccecd32fd633

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

diffstat:
 libsignal-protocol-c/DESCR         |  3 ++-
 libsignal-protocol-c/Makefile      | 12 ++++++------
 libsignal-protocol-c/PLIST         |  4 +++-
 libsignal-protocol-c/buildlink3.mk | 15 +++++++--------
 libsignal-protocol-c/distinfo      |  8 ++++----
 5 files changed, 22 insertions(+), 20 deletions(-)

diffs:
diff --git a/libsignal-protocol-c/DESCR b/libsignal-protocol-c/DESCR
index ef2d6883da..e07cf55425 100644
--- a/libsignal-protocol-c/DESCR
+++ b/libsignal-protocol-c/DESCR
@@ -1 +1,2 @@
-Signal Protocol C Library
+Signal Protocol C Library is a ratcheting forward secrecy protocol
+that works in synchronous and asynchronous messaging environments.
diff --git a/libsignal-protocol-c/Makefile b/libsignal-protocol-c/Makefile
index a525f642f2..565b442085 100644
--- a/libsignal-protocol-c/Makefile
+++ b/libsignal-protocol-c/Makefile
@@ -1,23 +1,23 @@
 # $NetBSD$
 
-GITHUB_PROJECT=	libsignal-protocol-c
-GITHUB_TAG=	v2.3.2
-DISTNAME=	v2.3.2
+DISTNAME=	libsignal-protocol-c-2.3.3
 PKGNAME=	${GITHUB_PROJECT}-${DISTNAME:S,^v,,}
-CATEGORIES=	security
+CATEGORIES=	chat
 MASTER_SITES=	${MASTER_SITE_GITHUB:=signalapp/}
-DIST_SUBDIR=	${GITHUB_PROJECT}
+GITHUB_PROJECT=	libsignal-protocol-c
+GITHUB_TAG=	v${PKGVERSION_NOREV}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/signalapp/libsignal-protocol-c/
 COMMENT=	Signal Protocol C Library
 LICENSE=	gnu-gpl-v3
 
-WRKSRC=		${WRKDIR}/libsignal-protocol-c-2.3.2
 USE_CMAKE=	yes
 USE_TOOLS+=	pkg-config
 USE_LANGUAGES=	c c++
 
+CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=true
+
 PKGCONFIG_OVERRIDE+=	src/libsignal-protocol-c.pc.in
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/libsignal-protocol-c/PLIST b/libsignal-protocol-c/PLIST
index 49d2c8b3c1..60c9989bc7 100644
--- a/libsignal-protocol-c/PLIST
+++ b/libsignal-protocol-c/PLIST
@@ -18,5 +18,7 @@ include/signal/session_record.h
 include/signal/session_state.h
 include/signal/signal_protocol.h
 include/signal/signal_protocol_types.h
-lib/libsignal-protocol-c.a
+lib/libsignal-protocol-c.so
+lib/libsignal-protocol-c.so.2
+lib/libsignal-protocol-c.so.${PKGVERSION}
 lib/pkgconfig/libsignal-protocol-c.pc
diff --git a/libsignal-protocol-c/buildlink3.mk b/libsignal-protocol-c/buildlink3.mk
index 4efd7ed3c7..1347b7230c 100644
--- a/libsignal-protocol-c/buildlink3.mk
+++ b/libsignal-protocol-c/buildlink3.mk
@@ -1,13 +1,12 @@
 # $NetBSD$
 
-BUILDLINK_TREE+=	libsignal-protocol-c
+BUILDLINK_TREE+=	libsignal-protocol-c-libsignal-protocol-c
 
-.if !defined(LIBSIGNAL_PROTOCOL_C_BUILDLINK3_MK)
-LIBSIGNAL_PROTOCOL_C_BUILDLINK3_MK:=
+.if !defined(LIBSIGNAL_PROTOCOL_C_LIBSIGNAL_PROTOCOL_C_BUILDLINK3_MK)
+LIBSIGNAL_PROTOCOL_C_LIBSIGNAL_PROTOCOL_C_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.libsignal-protocol-c+=	libsignal-protocol-c>=2.3.2
-BUILDLINK_PKGSRCDIR.libsignal-protocol-c?=	../../wip/libsignal-protocol-c
+BUILDLINK_API_DEPENDS.libsignal-protocol-c-libsignal-protocol-c+=	libsignal-protocol-c-libsignal-protocol-c>=2.3.3
+BUILDLINK_PKGSRCDIR.libsignal-protocol-c-libsignal-protocol-c?=		../../wip/libsignal-protocol-c
+.endif	# LIBSIGNAL_PROTOCOL_C_LIBSIGNAL_PROTOCOL_C_BUILDLINK3_MK
 
-.endif	# LIBSIGNAL_PROTOCOL_C_BUILDLINK3_MK
-
-BUILDLINK_TREE+=	-libsignal-protocol-c
+BUILDLINK_TREE+=	-libsignal-protocol-c-libsignal-protocol-c
diff --git a/libsignal-protocol-c/distinfo b/libsignal-protocol-c/distinfo
index 48ff6c0232..e98746757b 100644
--- a/libsignal-protocol-c/distinfo
+++ b/libsignal-protocol-c/distinfo
@@ -1,6 +1,6 @@
 $NetBSD$
 
-SHA1 (libsignal-protocol-c/v2.3.2.tar.gz) = 59f1544498776f6fc775865adb2af5a9a39898cb
-RMD160 (libsignal-protocol-c/v2.3.2.tar.gz) = 635bf1547c5a743f92a0969dfd8ec7daf0da848f
-SHA512 (libsignal-protocol-c/v2.3.2.tar.gz) = 7c63c42b9a590ed1a60a6f0094668d9948aa04e5965d052c22ae22b176df7c5582b8ec5c0e6c01ad582dfe2b04067380b9734ad08c64785242e90abcdabdfb8d
-Size (libsignal-protocol-c/v2.3.2.tar.gz) = 271930 bytes
+SHA1 (libsignal-protocol-c-2.3.3.tar.gz) = 3ea0332dbd8e4366facd8de5150ad3a6cdc68987
+RMD160 (libsignal-protocol-c-2.3.3.tar.gz) = 4938f87c0a0e0e9d16ef5738646372c89f86d2ac
+SHA512 (libsignal-protocol-c-2.3.3.tar.gz) = 19d892e13fac32022658de5eaf1db8cec3226f5f3f37a4c1c33bfa9653126ecbc6350a1ab5624025f909803c2277b86321dbea7f64e9932883cae57b65f58112
+Size (libsignal-protocol-c-2.3.3.tar.gz) = 272073 bytes


Home | Main Index | Thread Index | Old Index