summaryrefslogtreecommitdiff
path: root/security/olm
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2021-05-23 07:15:24 +0000
committerryoon <ryoon@pkgsrc.org>2021-05-23 07:15:24 +0000
commit4f9c74e97a5ccebd33bbe511fcd08f3478c17e45 (patch)
tree129de3790655db9306d050e490626abb3c820385 /security/olm
parent3628e8d3b856d98cc6757e4d539902163bed2d64 (diff)
downloadpkgsrc-4f9c74e97a5ccebd33bbe511fcd08f3478c17e45.tar.gz
security/olm: import olm-3.2.2 from wip/olm
An implementation of the Double Ratchet cryptographic ratchet described by https://whispersystems.org/docs/specifications/doubleratchet/, written in C and C++11 and exposed as a C API. This library also includes an implementation of the Megolm cryptographic ratchet.
Diffstat (limited to 'security/olm')
-rw-r--r--security/olm/DESCR6
-rw-r--r--security/olm/Makefile20
-rw-r--r--security/olm/PLIST14
-rw-r--r--security/olm/buildlink3.mk12
-rw-r--r--security/olm/distinfo6
5 files changed, 58 insertions, 0 deletions
diff --git a/security/olm/DESCR b/security/olm/DESCR
new file mode 100644
index 00000000000..9215996d9e1
--- /dev/null
+++ b/security/olm/DESCR
@@ -0,0 +1,6 @@
+An implementation of the Double Ratchet cryptographic ratchet described by
+https://whispersystems.org/docs/specifications/doubleratchet/, written in C and
+C++11 and exposed as a C API.
+
+This library also includes an implementation of the Megolm cryptographic
+ratchet.
diff --git a/security/olm/Makefile b/security/olm/Makefile
new file mode 100644
index 00000000000..974fad13b97
--- /dev/null
+++ b/security/olm/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2021/05/23 07:15:24 ryoon Exp $
+
+DISTNAME= olm-3.2.2
+CATEGORIES= security
+MASTER_SITES= https://gitlab.matrix.org/matrix-org/olm/-/archive/3.2.2/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://gitlab.matrix.org/matrix-org/olm
+COMMENT= Implementation of the Double Ratchet cryptographic ratchet
+LICENSE= apache-2.0
+
+USE_CMAKE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake
+
+PKGCONFIG_OVERRIDE+= olm.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/olm/PLIST b/security/olm/PLIST
new file mode 100644
index 00000000000..aac78e8d7f6
--- /dev/null
+++ b/security/olm/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/23 07:15:24 ryoon Exp $
+include/olm/inbound_group_session.h
+include/olm/olm.h
+include/olm/outbound_group_session.h
+include/olm/pk.h
+include/olm/sas.h
+lib/cmake/Olm/OlmConfig.cmake
+lib/cmake/Olm/OlmConfigVersion.cmake
+lib/cmake/Olm/OlmTargets-release.cmake
+lib/cmake/Olm/OlmTargets.cmake
+lib/libolm.so
+lib/libolm.so.3
+lib/libolm.so.${PKGVERSION}
+lib/pkgconfig/olm.pc
diff --git a/security/olm/buildlink3.mk b/security/olm/buildlink3.mk
new file mode 100644
index 00000000000..a9b06dd1f25
--- /dev/null
+++ b/security/olm/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/05/23 07:15:24 ryoon Exp $
+
+BUILDLINK_TREE+= olm
+
+.if !defined(OLM_BUILDLINK3_MK)
+OLM_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.olm+= olm>=3.2.2
+BUILDLINK_PKGSRCDIR.olm?= ../../security/olm
+.endif # OLM_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -olm
diff --git a/security/olm/distinfo b/security/olm/distinfo
new file mode 100644
index 00000000000..4461894b369
--- /dev/null
+++ b/security/olm/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/05/23 07:15:24 ryoon Exp $
+
+SHA1 (olm-3.2.2.tar.bz2) = 34469f03511c08494fa0eb6230f2f8344026901b
+RMD160 (olm-3.2.2.tar.bz2) = dcf8d0e458654c25926fee897e111652b126c034
+SHA512 (olm-3.2.2.tar.bz2) = a541299f2fbdaa2be5698a690cd753142311a3206011d70186e1122d575478f91e7feba207fe5d09ce506330dd1f9fbb71dccb3de7014c5333427fdd3b77b668
+Size (olm-3.2.2.tar.bz2) = 475682 bytes