$OpenBSD: patch-spooler_DAgent_cpp,v 1.21 2012/08/30 14:28:22 ajacoutot Exp $
--- spooler/DAgent.cpp.orig	Wed Aug  8 17:14:59 2012
+++ spooler/DAgent.cpp	Mon Aug 27 10:27:05 2012
@@ -97,6 +97,11 @@
 #include <sys/mman.h>
 #include <pwd.h>
 
+#ifdef __OpenBSD__
+#include <sys/resource.h>
+extern char **environ;
+#endif
+
 /*
   This is actually from sysexits.h
   but since those windows lamers don't have it ..
@@ -3375,7 +3380,7 @@ int main(int argc, char *argv[]) {
 
 	DeliveryArgs sDeliveryArgs;
 	sDeliveryArgs.strPath = "";
-	sDeliveryArgs.strAutorespond = "/usr/bin/zarafa-autorespond";
+	sDeliveryArgs.strAutorespond = "${PREFIX}/bin/zarafa-autorespond";
 	sDeliveryArgs.bCreateFolder = false;
 	sDeliveryArgs.strDeliveryFolder.clear();
 	sDeliveryArgs.szPathSeperator = '\\';
@@ -3437,10 +3442,10 @@ int main(int argc, char *argv[]) {
 		{ "log_raw_message", "no", CONFIGSETTING_RELOADABLE },
 		{ "log_raw_message_path", "/tmp", CONFIGSETTING_RELOADABLE },
 		{ "archive_on_delivery", "no", CONFIGSETTING_RELOADABLE },
-		{ "mr_autoaccepter", "/usr/bin/zarafa-mr-accept", CONFIGSETTING_RELOADABLE },
+		{ "mr_autoaccepter", "${PREFIX}/bin/zarafa-mr-accept", CONFIGSETTING_RELOADABLE },
 		{ "plugin_enabled", "yes" },
-		{ "plugin_path", "/var/lib/zarafa/dagent/plugins" },
-		{ "plugin_manager_path", "/usr/share/zarafa-dagent/python" },
+		{ "plugin_path", "/var/db/zarafa/dagent/plugins" },
+		{ "plugin_manager_path", "${PREFIX}/share/zarafa-dagent/python" },
 		{ "set_rule_headers", "yes", CONFIGSETTING_RELOADABLE },
 		{ NULL, NULL },
 	};
