From 1ec256b26b6ebd4be88dfabc5e41afc81fdc5f40 Mon Sep 17 00:00:00 2001
From: Alain Takoudjou <alain.takoudjou@nexedi.com>
Date: Fri, 23 Aug 2019 15:30:42 +0200
Subject: [PATCH] Add coturn component

---
 component/coturn/buildout.cfg | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 component/coturn/buildout.cfg

diff --git a/component/coturn/buildout.cfg b/component/coturn/buildout.cfg
new file mode 100644
index 000000000..eafe7076e
--- /dev/null
+++ b/component/coturn/buildout.cfg
@@ -0,0 +1,16 @@
+[buildout]
+extends =
+  ../sqlite3/buildout.cfg
+  ../openssl/buildout.cfg
+  ../libevent/buildout.cfg
+parts = coturn
+
+[coturn]
+recipe = slapos.recipe.cmmi
+url = https://github.com/coturn/coturn/archive/4.5.1.1.tar.gz
+md5sum = ef20628b026d666be24df056f20a86ea
+environment =
+  PATH=${sqlite3:location}/bin:%(PATH)s
+  CPPFLAGS=-I${openssl:location}/include -I${sqlite3:location}/include -I${libevent2:location}/include
+  CFLAGS=-I${libevent2:location}/include
+  LDFLAGS=-L${openssl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${sqlite3:location}/lib -L${libevent2:location}/lib -Wl,-rpath -Wl,${libevent2:location}/lib
-- 
2.30.9