summaryrefslogtreecommitdiff
path: root/chat/ejabberd/patches/patch-ae
blob: bf6f4fbbcdac4baf85aca5b3a2113dc28d654500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ae,v 1.4 2009/12/15 13:30:54 fhajny Exp $

--- src/ejabberdctl.template.orig	2009-11-16 20:25:51.344260518 +0000
+++ src/ejabberdctl.template
@@ -43,10 +43,10 @@ if [ "$EJABBERDCTL_CONFIG_PATH" = "" ] ;
 fi
 [ -f "$EJABBERDCTL_CONFIG_PATH" ] && . "$EJABBERDCTL_CONFIG_PATH"
 if [ "$LOGS_DIR" = "" ] ; then
-    LOGS_DIR=@LOCALSTATEDIR@/log/ejabberd
+    LOGS_DIR=@EJABBERD_LOGDIR@
 fi
 if [ "$SPOOLDIR" = "" ] ; then
-    SPOOLDIR=@LOCALSTATEDIR@/lib/ejabberd
+    SPOOLDIR=@EJABBERD_DB@
 fi
 if [ "$EJABBERD_DOC_PATH" = "" ] ; then
     EJABBERD_DOC_PATH=@DOCDIR@
@@ -83,7 +83,7 @@ ERLANG_OPTS="+K $POLL -smp $SMP +P $ERL_
 
 # define additional environment variables
 if [ "$EJABBERDDIR" = "" ]; then
-    EJABBERDDIR=@LIBDIR@/ejabberd
+    EJABBERDDIR=@LIBDIR@/erlang/lib/@DISTNAME@
 fi
 if [ "$EJABBERD_EBIN_PATH" = "" ]; then
     EJABBERD_EBIN_PATH=$EJABBERDDIR/ebin