summaryrefslogtreecommitdiff
path: root/repo/libotr
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
committerdavidovski <david@davidovski.xyz>2023-05-17 17:01:27 +0100
commit0d37a1ef234c38b27faba43bc3a22f985d311deb (patch)
treedde8df9f508e7323c3d7df599ceade7705c40acd /repo/libotr
parentf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (diff)
Remove all firmware
Diffstat (limited to 'repo/libotr')
-rw-r--r--repo/libotr/libotr.xibuild34
-rw-r--r--repo/libotr/socklen-t.patch12
2 files changed, 46 insertions, 0 deletions
diff --git a/repo/libotr/libotr.xibuild b/repo/libotr/libotr.xibuild
new file mode 100644
index 0000000..57d7e91
--- /dev/null
+++ b/repo/libotr/libotr.xibuild
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+NAME="libotr"
+DESC="Off The Record Messaging, an encryption library for secure IM conversations"
+
+MAKEDEPS="libgcrypt"
+
+PKG_VER=4.1.1
+SOURCE="https://www.cypherpunks.ca/otr/libotr-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+socklen-t.patch
+"
+
+prepare() {
+ apply_patches
+}
+
+build() {
+ ./configure \
+ --prefix=/usr
+ make
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+}
+
+tools() {
+ pkgdesc="libotr tools"
+ mkdir -p "$PKG_DEST"/usr/
+ mv "$PKG_DEST"/usr/bin "$PKG_DEST"/usr/
+}
+
diff --git a/repo/libotr/socklen-t.patch b/repo/libotr/socklen-t.patch
new file mode 100644
index 0000000..6d543ad
--- /dev/null
+++ b/repo/libotr/socklen-t.patch
@@ -0,0 +1,12 @@
+diff --git a/tests/regression/client/client.c b/tests/regression/client/client.c
+index e72b661..e0b3453 100644
+--- a/tests/regression/client/client.c
++++ b/tests/regression/client/client.c
+@@ -26,6 +26,7 @@
+ #include <stdlib.h>
+ #include <syscall.h>
+ #include <sys/epoll.h>
++#include <sys/socket.h>
+ #include <sys/types.h>
+ #include <sys/un.h>
+ #include <unistd.h>