SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
31
net/libsignal-protocol-c/Makefile
Normal file
31
net/libsignal-protocol-c/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
COMMENT = ratcheting forward secrecy protocol
|
||||
|
||||
GH_ACCOUNT = signalapp
|
||||
GH_PROJECT = libsignal-protocol-c
|
||||
GH_TAGNAME = v2.3.3
|
||||
|
||||
SHARED_LIBS += signal-protocol-c 0.0 # 2.3
|
||||
|
||||
CATEGORIES = net
|
||||
HOMEPAGE = https://signal.org/
|
||||
|
||||
MAINTAINER = Alex Holst <a@mongers.org>
|
||||
|
||||
# GPLv3 only
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += m
|
||||
|
||||
MODULES = devel/cmake
|
||||
BUILD_DEPENDS = devel/check
|
||||
RUN_DEPENDS = devel/protobuf-c
|
||||
|
||||
CONFIGURE_ARGS = -DBUILD_TESTING=ON \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
post-extract:
|
||||
mv ${WRKSRC}/src/utarray.h ${WRKSRC}/src/utarray_local.h
|
||||
mv ${WRKSRC}/src/uthash.h ${WRKSRC}/src/uthash_local.h
|
||||
mv ${WRKSRC}/src/utlist.h ${WRKSRC}/src/utlist_local.h
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/libsignal-protocol-c/distinfo
Normal file
2
net/libsignal-protocol-c/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (libsignal-protocol-c-2.3.3.tar.gz) = wi52kFRuJNRiEMqS3YCPF8MQLhNEzS+aNwE2qW0iMZ0=
|
||||
SIZE (libsignal-protocol-c-2.3.3.tar.gz) = 272073
|
12
net/libsignal-protocol-c/patches/patch-src_key_helper_c
Normal file
12
net/libsignal-protocol-c/patches/patch-src_key_helper_c
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: src/key_helper.c
|
||||
--- src/key_helper.c.orig
|
||||
+++ src/key_helper.c
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "ratchet.h"
|
||||
#include "curve.h"
|
||||
#include "signal_protocol_internal.h"
|
||||
-#include "utlist.h"
|
||||
+#include "utlist_local.h"
|
||||
|
||||
struct signal_protocol_key_helper_pre_key_list_node
|
||||
{
|
|
@ -0,0 +1,12 @@
|
|||
Index: src/sender_key_record.c
|
||||
--- src/sender_key_record.c.orig
|
||||
+++ src/sender_key_record.c
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "sender_key_state.h"
|
||||
#include "sender_key.h"
|
||||
-#include "utlist.h"
|
||||
+#include "utlist_local.h"
|
||||
#include "LocalStorageProtocol.pb-c.h"
|
||||
#include "signal_protocol_internal.h"
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
Index: src/sender_key_state.c
|
||||
--- src/sender_key_state.c.orig
|
||||
+++ src/sender_key_state.c
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include "sender_key.h"
|
||||
-#include "utlist.h"
|
||||
+#include "utlist_local.h"
|
||||
#include "LocalStorageProtocol.pb-c.h"
|
||||
#include "signal_protocol_internal.h"
|
||||
|
12
net/libsignal-protocol-c/patches/patch-src_session_record_c
Normal file
12
net/libsignal-protocol-c/patches/patch-src_session_record_c
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: src/session_record.c
|
||||
--- src/session_record.c.orig
|
||||
+++ src/session_record.c
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <assert.h>
|
||||
|
||||
#include "session_state.h"
|
||||
-#include "utlist.h"
|
||||
+#include "utlist_local.h"
|
||||
#include "LocalStorageProtocol.pb-c.h"
|
||||
#include "signal_protocol_internal.h"
|
||||
|
12
net/libsignal-protocol-c/patches/patch-src_session_state_c
Normal file
12
net/libsignal-protocol-c/patches/patch-src_session_state_c
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: src/session_state.c
|
||||
--- src/session_state.c.orig
|
||||
+++ src/session_state.c
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "LocalStorageProtocol.pb-c.h"
|
||||
#include "signal_protocol_internal.h"
|
||||
|
||||
-#include "utlist.h"
|
||||
+#include "utlist_local.h"
|
||||
|
||||
#define MAX_MESSAGE_KEYS 2000
|
||||
|
11
net/libsignal-protocol-c/patches/patch-src_signal_utarray_h
Normal file
11
net/libsignal-protocol-c/patches/patch-src_signal_utarray_h
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: src/signal_utarray.h
|
||||
--- src/signal_utarray.h.orig
|
||||
+++ src/signal_utarray.h
|
||||
@@ -8,6 +8,6 @@
|
||||
goto complete; \
|
||||
} while(0)
|
||||
|
||||
-#include "utarray.h"
|
||||
+#include "utarray_local.h"
|
||||
|
||||
#endif /* SIGNAL_UTARRAY_H */
|
12
net/libsignal-protocol-c/patches/patch-tests_test_common_c
Normal file
12
net/libsignal-protocol-c/patches/patch-tests_test_common_c
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: tests/test_common.c
|
||||
--- tests/test_common.c.orig
|
||||
+++ tests/test_common.c
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "../src/signal_protocol.h"
|
||||
#include "curve.h"
|
||||
-#include "uthash.h"
|
||||
+#include "uthash_local.h"
|
||||
|
||||
/*
|
||||
* This is an implementation of Jenkin's "One-at-a-Time" hash.
|
11
net/libsignal-protocol-c/patches/patch-tests_test_utarray_h
Normal file
11
net/libsignal-protocol-c/patches/patch-tests_test_utarray_h
Normal file
|
@ -0,0 +1,11 @@
|
|||
Index: tests/test_utarray.h
|
||||
--- tests/test_utarray.h.orig
|
||||
+++ tests/test_utarray.h
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
#define oom() ck_abort()
|
||||
|
||||
-#include "utarray.h"
|
||||
+#include "utarray_local.h"
|
||||
|
||||
#endif /* TEST_UTARRAY_H */
|
2
net/libsignal-protocol-c/pkg/DESCR
Normal file
2
net/libsignal-protocol-c/pkg/DESCR
Normal file
|
@ -0,0 +1,2 @@
|
|||
The Signal Protocol is a ratcheting forward secrecy protocol that works in
|
||||
synchronous and asynchronous messaging environments.
|
22
net/libsignal-protocol-c/pkg/PLIST
Normal file
22
net/libsignal-protocol-c/pkg/PLIST
Normal file
|
@ -0,0 +1,22 @@
|
|||
include/signal/
|
||||
include/signal/curve.h
|
||||
include/signal/device_consistency.h
|
||||
include/signal/fingerprint.h
|
||||
include/signal/group_cipher.h
|
||||
include/signal/group_session_builder.h
|
||||
include/signal/hkdf.h
|
||||
include/signal/key_helper.h
|
||||
include/signal/protocol.h
|
||||
include/signal/ratchet.h
|
||||
include/signal/sender_key.h
|
||||
include/signal/sender_key_record.h
|
||||
include/signal/sender_key_state.h
|
||||
include/signal/session_builder.h
|
||||
include/signal/session_cipher.h
|
||||
include/signal/session_pre_key.h
|
||||
include/signal/session_record.h
|
||||
include/signal/session_state.h
|
||||
include/signal/signal_protocol.h
|
||||
include/signal/signal_protocol_types.h
|
||||
@lib lib/libsignal-protocol-c.so.${LIBsignal-protocol-c_VERSION}
|
||||
lib/pkgconfig/libsignal-protocol-c.pc
|
Loading…
Add table
Add a link
Reference in a new issue