summaryrefslogtreecommitdiff
path: root/www/SOGo/files
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2011-10-16 05:36:32 +0000
committermanu <manu@pkgsrc.org>2011-10-16 05:36:32 +0000
commit0ebfa71a11bab334499823c897903ecce6ad4f3b (patch)
tree023bad28b432480c0047475525b03fdd3f3dae4e /www/SOGo/files
parent451bbae527f21a485880863e8f8c8ef9e00e38c1 (diff)
downloadpkgsrc-0ebfa71a11bab334499823c897903ecce6ad4f3b.tar.gz
Groupware server supporting CalDAV, CardDAV and GroupDAV
Diffstat (limited to 'www/SOGo/files')
-rw-r--r--www/SOGo/files/SOGo.conf5
-rwxr-xr-xwww/SOGo/files/sogod.sh44
2 files changed, 49 insertions, 0 deletions
diff --git a/www/SOGo/files/SOGo.conf b/www/SOGo/files/SOGo.conf
new file mode 100644
index 00000000000..0c635d6732f
--- /dev/null
+++ b/www/SOGo/files/SOGo.conf
@@ -0,0 +1,5 @@
+
+ <Directory "@PREFIX@/lib/GNUstep/SOGo/WebServerResources/">
+ Order allow,deny
+ Allow from all
+ </Directory>
diff --git a/www/SOGo/files/sogod.sh b/www/SOGo/files/sogod.sh
new file mode 100755
index 00000000000..864ade752c3
--- /dev/null
+++ b/www/SOGo/files/sogod.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+# $NetBSD: sogod.sh,v 1.1.1.1 2011/10/16 05:36:35 manu Exp $
+#
+
+# PROVIDE: sogod
+# REQUIRE: DAEMON
+# BEFORE: apache
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="sogod"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="@SOGORUNDIR@/${name}.pid"
+logfile="@SOGORUNDIR@/${name}.log"
+sogouser=@SOGOUSER@
+command_args="-WOPidFile ${pidfile} -WOLogFile ${logfile}"
+start_precmd="sogod_precmd"
+start_cmd="sogod_start"
+
+sogod_precmd()
+{
+ test -f @PREFIX@/etc/GNUstep.conf || {
+ echo "Cannot find @PREFIX@/etc/GNUstep.conf"
+ exit 1
+ }
+ . @PREFIX@/etc/GNUstep.conf
+
+ test -f @PREFIX@/share/GNUstep/Makefiles/GNUstep.sh || {
+ echo "Cannot find @PREFIX@/share/GNUstep/Makefiles/GNUstep.sh"
+ exit 1
+ }
+ . @PREFIX@/share/GNUstep/Makefiles/GNUstep.sh
+}
+
+sogod_start()
+{
+ echo "Starting $name: "
+ su -m ${sogouser} -c "${command} ${command_args}"
+}
+
+load_rc_config $name
+run_rc_command "$1"