$OpenBSD: patch-provider_server_ECServer_cpp,v 1.4 2018/03/16 15:35:02 robert Exp $

Index: provider/server/ECServer.cpp
--- provider/server/ECServer.cpp.orig
+++ provider/server/ECServer.cpp
@@ -67,6 +67,10 @@
 #include <kcoidc.h>
 #endif
 
+#ifdef __OpenBSD__
+#include <sys/resource.h>
+#endif
+
 // The following value is based on:
 // http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_thread_stack
 // Since the remote MySQL server can be 32 or 64 bit we'll just go with the value specified
@@ -878,10 +882,10 @@ static int running_server(char *szName, const char *sz
 		{"thread_stacksize", "512", CONFIGSETTING_UNUSED},
 		{ "allow_local_users",			"yes", CONFIGSETTING_RELOADABLE },			// allow any user connect through the Unix socket
 		{ "local_admin_users",			"root", CONFIGSETTING_RELOADABLE },			// this local user is admin
-		{ "run_as_user",			"kopano" }, // drop root privileges, and run as this user/group
-		{ "run_as_group",			"kopano" },
+		{ "run_as_user",			"_kopano" }, // drop root privileges, and run as this user/group
+		{ "run_as_group",			"_kopano" },
 		{ "pid_file",					"/var/run/kopano/server.pid" },
-		{ "running_path",			"/var/lib/kopano" },
+		{ "running_path",			"/var/empty" },
 		{"allocator_library", "libtcmalloc_minimal.so.4"},
 		{ "coredump_enabled",			"yes" },
 
@@ -925,7 +929,7 @@ static int running_server(char *szName, const char *sz
 		{"attachment_s3_bucketname", ""},
 		{"attachment_s3_region", ""},
 #endif
-		{"attachment_path", "/var/lib/kopano/attachments"},
+		{"attachment_path", "/var/db/kopano/attachments"},
 		{ "attachment_compression",		"6" },
 
 		// Log options
@@ -999,7 +1003,7 @@ static int running_server(char *szName, const char *sz
 
 		{"client_update_enabled", "no", CONFIGSETTING_UNUSED},
 		{"client_update_log_level", "1", CONFIGSETTING_UNUSED | CONFIGSETTING_RELOADABLE},
-		{"client_update_path", "/var/lib/kopano/client", CONFIGSETTING_UNUSED | CONFIGSETTING_RELOADABLE},
+		{"client_update_path", "/var/db/kopano/client", CONFIGSETTING_UNUSED | CONFIGSETTING_RELOADABLE},
 		{"client_update_log_path", "/var/log/kopano/autoupdate", CONFIGSETTING_UNUSED | CONFIGSETTING_RELOADABLE},
 		{ "index_services_enabled", "", CONFIGSETTING_UNUSED },
 		{ "index_services_path",    "", CONFIGSETTING_UNUSED },
