summaryrefslogtreecommitdiff
path: root/chat/jabberd2/patches/patch-ag
blob: a559286f3d8e4be17b7073707500687d02e87838 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
$NetBSD: patch-ag,v 1.8 2009/08/21 02:28:13 schnoebe Exp $

--- etc/c2s.xml.in.orig	2009-07-05 16:54:18.000000000 -0500
+++ etc/c2s.xml.in
@@ -5,7 +5,7 @@
 
   <!-- The process ID file. Comment this out if you don't need to know
        the process ID from outside the process (eg for control scripts) -->
-  <pidfile>@localstatedir@/jabberd/pid/c2s.pid</pidfile>
+  <pidfile>@PIDDIR@/c2s.pid</pidfile>
 
   <!-- Router connection configuration -->
   <router>
@@ -27,7 +27,7 @@
          If this is commented out, or the file can't be read, no attempt
          will be made to establish an encrypted channel with the router. -->
     <!--
-    <pemfile>@sysconfdir@/server.pem</pemfile>
+    <pemfile>@SSLCERTS@/server.pem</pemfile>
     -->
 
     <!-- Router connection retry -->
@@ -60,7 +60,7 @@
 
     <!-- If logging to file, this is the filename of the logfile -->
     <!--
-    <file>@localstatedir@/jabberd/log/c2s.log</file>
+    <file>@LOGDIR@/c2s.log</file>
     -->
   </log>
 
@@ -125,7 +125,7 @@
     <id register-enable='true'>localhost.localdomain</id>
     <!-- or
     <id realm='company.int'
-        pemfile='@sysconfdir@/server.pem'
+        pemfile='@SSLCERTS@/server.pem'
         verify-mode='7'
         require-starttls='true'
         register-enable='true'
@@ -164,7 +164,7 @@
          use STARTTLS over the standard XMPP port 5222 then you
          MUST specify the pemfile in the 'id' tag above. -->
     <!--
-    <pemfile>@sysconfdir@/server.pem</pemfile>
+    <pemfile>@SSLCERTS@/server.pem</pemfile>
     -->
 
     <!-- SSL verify mode - see SSL_CTX_set_verify(3), mode parameter -->
@@ -312,7 +312,7 @@
   <stats>
     <!-- file containing count of packets that went through -->
     <!--
-    <packet>@localstatedir@/jabberd/stats/c2s.packets</packet>
+    <packet>@LOGDIR@/c2s.packets</packet>
     -->
   </stats>
 
@@ -382,7 +382,7 @@
     <!-- SQLite driver configuration -->
     <sqlite>
       <!-- Database name -->
-      <dbname>@localstatedir@/jabberd/db/sqlite.db</dbname>
+      <dbname>@DBDIR@/sqlite.db</dbname>
 
       <!-- Transacation support. If this is commented out, transactions
            will be disabled. This might make database accesses faster,
@@ -459,7 +459,7 @@
     <!-- Berkeley DB module configuration -->
     <db>
       <!-- Directory to store database files under -->
-      <path>@localstatedir@/jabberd/db</path>
+      <path>@DBDIR@</path>
 
       <!-- Synchronize the database to disk after each write. If you
            disable this, database accesses may be faster, but data may
@@ -587,7 +587,7 @@
     <!-- Pipe module configuration -->
     <pipe>
       <!-- Program to execute -->
-      <exec>@bindir@/pipe-auth.pl</exec>
+      <exec>@BINDIR@/pipe-auth.pl</exec>
     </pipe>
 
   </authreg>