fix detecting shared libpython
[packages/crossfire.git] / crossfire-directories.patch
CommitLineData
4a1c5fe8
JK
1diff -durN crossfire-0.98.0.orig/include/config.h crossfire-0.98.0/include/config.h
2--- crossfire-0.98.0.orig/include/config.h Sun Apr 8 07:49:34 2001
6dcb1478 3+++ crossfire-0.98.0/include/config.h Tue Apr 17 17:10:55 2001
4a1c5fe8
JK
4@@ -680,7 +680,7 @@
5 #ifdef WIN32 /* change define path */
6 #define LOGFILE "tmp\\cross.log"
7 #else
49deffe3
JK
8-#define LOGFILE "/tmp/cross.log"
9+#define LOGFILE "/var/log/crossfire"
10 #endif
4a1c5fe8 11 #endif
49deffe3 12
4a1c5fe8
JK
13@@ -830,7 +830,7 @@
14 #ifdef WIN32 /* change define path tmp */
15 #define TMPDIR "tmp"
16 #else
49deffe3
JK
17-#define TMPDIR "/tmp"
18+#define TMPDIR "/var/lib/crossfire/tmp"
4a1c5fe8 19 #endif
49deffe3
JK
20
21
6dcb1478
JK
22diff -durN crossfire-0.98.0.orig/server/ban.c crossfire-0.98.0/server/ban.c
23--- crossfire-0.98.0.orig/server/ban.c Sun Apr 8 07:49:34 2001
24+++ crossfire-0.98.0/server/ban.c Tue Apr 17 17:12:17 2001
25@@ -33,7 +33,7 @@
26 int num1;
27 int Hits=0; /* Hits==2 means we're banned */
28
29- sprintf (buf, "%s/%s", settings.datadir, BANFILE);
30+ sprintf (buf, "%s/%s", "/etc/crossfire", BANFILE);
31 if ((bannedfile = fopen(buf, "r")) == NULL) {
32 LOG (llevDebug, "Could not find file Banned file.\n");
33 return(0);
34diff -durN crossfire-0.98.0.orig/server/c_wiz.c crossfire-0.98.0/server/c_wiz.c
35--- crossfire-0.98.0.orig/server/c_wiz.c Sun Apr 8 07:49:34 2001
36+++ crossfire-0.98.0/server/c_wiz.c Tue Apr 17 17:12:50 2001
37@@ -712,7 +712,7 @@
38 *pl_name=op->name?op->name:"*";
39 #endif
40
41- sprintf (buf, "%s/%s", settings.datadir, DMFILE);
42+ sprintf (buf, "%s/%s", "/etc/crossfire", DMFILE);
43 if ((dmfile = fopen(buf, "r")) == NULL) {
44 LOG (llevDebug, "Could not find DM file.\n");
45 return(0);
46diff -durN crossfire-0.98.0.orig/server/init.c crossfire-0.98.0/server/init.c
47--- crossfire-0.98.0.orig/server/init.c Sun Apr 8 07:49:34 2001
48+++ crossfire-0.98.0/server/init.c Tue Apr 17 17:15:20 2001
49@@ -222,7 +222,7 @@
50 int has_val,comp;
51 FILE *fp;
52
53- sprintf(buf,"%s/settings",settings.datadir);
54+ sprintf(buf,"%s/settings","/etc/crossfire");
55 /* We don't require a settings file at current time, but down the road,
56 * there will probably be so many values that not having a settings file
57 * will not be a good thing.
58@@ -445,7 +445,7 @@
59 int comp;
60
61 #ifdef SHUTDOWN_FILE
62- sprintf(buf,"%s/%s",settings.datadir,SHUTDOWN_FILE);
63+ sprintf(buf,"%s/%s","/etc/crossfire",SHUTDOWN_FILE);
64 if ((fp = open_and_uncompress(buf, 0, &comp)) != NULL) {
65 while (fgets(buf, MAX_BUF-1, fp) != NULL)
66 printf("%s", buf);
67@@ -499,10 +499,10 @@
68 printf("Datadir:\t\t%s\n",settings.datadir);
69 printf("Localdir:\t\t%s\n",settings.localdir);
70 #ifdef PERM_FILE
71- printf("Perm file:\t<LIB>/%s\n",PERM_FILE);
72+ printf("Perm file:\t/etc/crossfire/%s\n",PERM_FILE);
73 #endif
74 #ifdef SHUTDOWN_FILE
75- printf("Shutdown file:\t<LIB>/%s\n",SHUTDOWN_FILE);
76+ printf("Shutdown file:\t/etc/crossfire/%s\n",SHUTDOWN_FILE);
77 #endif
78 printf("Save player:\t<true>\n");
79 printf("Save mode:\t%4.4o\n",SAVE_MODE);
4a1c5fe8
JK
80diff -durN crossfire-0.98.0.orig/server/main.c crossfire-0.98.0/server/main.c
81--- crossfire-0.98.0.orig/server/main.c Sun Apr 8 07:49:34 2001
6dcb1478 82+++ crossfire-0.98.0/server/main.c Tue Apr 17 17:14:36 2001
49deffe3
JK
83@@ -29,6 +29,7 @@
84 #include <version.h>
85 #include <global.h>
86 #include <object.h>
87+#include <config.h>
88
89 #ifdef HAVE_DES_H
90 #include <des.h>
6dcb1478
JK
91@@ -961,7 +962,7 @@
92 clock = time (NULL);
93 tm = (struct tm *) localtime (&clock);
94
95- sprintf (buf, "%s/%s", settings.datadir, PERM_FILE);
96+ sprintf (buf, "%s/%s", "/etc/crossfire", PERM_FILE);
97 if ((fp = open_and_uncompress(buf, 0, &comp)) == NULL)
98 return 0;
99
100diff -durN crossfire-0.98.0.orig/server/player.c crossfire-0.98.0/server/player.c
101--- crossfire-0.98.0.orig/server/player.c Sun Apr 8 07:49:34 2001
102+++ crossfire-0.98.0/server/player.c Tue Apr 17 17:13:33 2001
103@@ -46,7 +46,7 @@
104 FILE *fp;
105 int comp;
106
107- sprintf(buf,"%s/%s",settings.datadir,MOTD);
108+ sprintf(buf,"%s/%s","/etc/crossfire",MOTD);
109 if((fp=open_and_uncompress(buf,0,&comp))==NULL) {
110 return;
111 }
This page took 0.182657 seconds and 4 git commands to generate.