summaryrefslogtreecommitdiff
path: root/net-voip/openmcu/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-voip/openmcu/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-voip/openmcu/files')
-rw-r--r--net-voip/openmcu/files/openmcu-2.2.1-path.patch48
-rw-r--r--net-voip/openmcu/files/openmcu.confd5
-rw-r--r--net-voip/openmcu/files/openmcu.ini13
-rw-r--r--net-voip/openmcu/files/openmcu.rc620
4 files changed, 86 insertions, 0 deletions
diff --git a/net-voip/openmcu/files/openmcu-2.2.1-path.patch b/net-voip/openmcu/files/openmcu-2.2.1-path.patch
new file mode 100644
index 000000000000..48ae0364a8c6
--- /dev/null
+++ b/net-voip/openmcu/files/openmcu-2.2.1-path.patch
@@ -0,0 +1,48 @@
+diff -u openmcu_v2_2_1.orig/main.cxx openmcu_v2_2_1/main.cxx
+--- openmcu_v2_2_1.orig/main.cxx 2006-06-09 00:39:59.000000000 -0400
++++ openmcu_v2_2_1/main.cxx 2009-02-10 23:09:49.000000000 -0500
+@@ -54,9 +54,9 @@
+ #include <ptlib.h>
+ #include "mcu.h"
+
+-static const char DefaultConnectingWAVFile[] = "connecting.wav";
+-static const char DefaultEnteringWAVFile[] = "entering.wav";
+-static const char DefaultLeavingWAVFile[] = "leaving.wav";
++static const char DefaultConnectingWAVFile[] = "/usr/share/openmcu/sounds/connecting.wav";
++static const char DefaultEnteringWAVFile[] = "/usr/share/openmcu/sounds/entering.wav";
++static const char DefaultLeavingWAVFile[] = "/usr/share/openmcu/sounds/leaving.wav";
+
+ static const char ConnectingWAVFileKey[] = "Connecting WAV File";
+ static const char EnteringWAVFileKey[] = "Entering WAV File";
+diff -u openmcu_v2_2_1.orig/mcu.cxx openmcu_v2_2_1/mcu.cxx
+--- openmcu_v2_2_1.orig/mcu.cxx 2006-07-14 01:28:01.000000000 -0400
++++ openmcu_v2_2_1/mcu.cxx 2009-02-10 23:11:43.000000000 -0500
+@@ -83,7 +83,7 @@
+ static const char DefaultRoomKey[] = "Default room";
+ static const char DefaultRoomTimeLimitKey[] = "Room time limit";
+
+-static const char DefaultCallLogFilename[] = "mcu_log.txt";
++static const char DefaultCallLogFilename[] = "/var/log/openmcu/openmcu.log";
+ static const char DefaultRoom[] = "room101";
+
+ #if OPENMCU_VIDEO
+@@ -154,8 +154,8 @@
+ #endif
+ exeDir.Change();
+
+- httpNameSpace.AddResource(new PHTTPDirectory("data", "data"));
+- httpNameSpace.AddResource(new PServiceHTTPDirectory("html", "html"));
++ httpNameSpace.AddResource(new PHTTPDirectory("data", "/usr/share/openmcu/data"));
++ httpNameSpace.AddResource(new PServiceHTTPDirectory("html", "/usr/share/openmcu/html"));
+
+ manager = CreateConferenceManager();
+ endpoint = CreateEndPoint(*manager);
+@@ -229,7 +229,7 @@
+
+ #if P_SSL
+ // SSL certificate file.
+- PString certificateFile = cfg.GetString(HTTPCertificateFileKey, "server.pem");
++ PString certificateFile = cfg.GetString(HTTPCertificateFileKey, "/etc/openmcu/server.pem");
+ rsrc->Add(new PHTTPStringField(HTTPCertificateFileKey, 25, certificateFile));
+ if (!SetServerCertificate(certificateFile, TRUE)) {
+ PSYSTEMLOG(Fatal, "MCU\tCould not load certificate \"" << certificateFile << '"');
diff --git a/net-voip/openmcu/files/openmcu.confd b/net-voip/openmcu/files/openmcu.confd
new file mode 100644
index 000000000000..59b42a260c91
--- /dev/null
+++ b/net-voip/openmcu/files/openmcu.confd
@@ -0,0 +1,5 @@
+#/etc/conf.d/openmcu.confd
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+OPTIONS="-u openmcu -g openmcu"
diff --git a/net-voip/openmcu/files/openmcu.ini b/net-voip/openmcu/files/openmcu.ini
new file mode 100644
index 000000000000..7dbdac551989
--- /dev/null
+++ b/net-voip/openmcu/files/openmcu.ini
@@ -0,0 +1,13 @@
+[Parameters]
+Password=i9Vp7LN+X5Y=
+Log Level=2
+HTTP Certificate=/etc/openmcu/server.pem
+HTTP Port=1420
+Gatekeeper Mode=No gatekeeper
+Interface Array Size=0
+Default room=room101
+Connecting WAV File=/usr/share/openmcu/sounds/connecting.wav
+Entering WAV File=/usr/share/openmcu/sounds/entering.wav
+Leaving WAV File=/usr/share/openmcu/sounds/leaving.wav
+Call log filename=/var/log/openmcu/mcu_log.txt
+
diff --git a/net-voip/openmcu/files/openmcu.rc6 b/net-voip/openmcu/files/openmcu.rc6
new file mode 100644
index 000000000000..a62d80994db5
--- /dev/null
+++ b/net-voip/openmcu/files/openmcu.rc6
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting H.323 Conferencing service"
+ start-stop-daemon --start --quiet --pidfile /var/run/openmcu/openmcu.pid \
+ --exec /usr/sbin/openmcu -- ${OPTIONS} -d -p /var/run/openmcu/openmcu.pid -i /etc/openmcu/openmcu.ini
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping H.323 Conferencing service"
+ start-stop-daemon --stop --quiet --pidfile /var/run/openmcu/openmcu.pid
+ eend $?
+}