source: trunk/dports/sysutils/slocate/files/patch-main.c @ 4170

Last change on this file since 4170 was 4170, checked in by fkr, 16 years ago

Bug: #1269
Submitted by: pguyot@…
Reviewed by:
Approved by:
Obtained from:

new port, slocate 2.7.

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1--- main.c      Sun Dec  7 02:14:30 2003
2+++ main.c      Sun Dec  7 02:20:06 2003
3@@ -125,23 +125,11 @@
4 char **SLOCATE_PATH = NULL;
5 
6 /* More fitting paths for FreeBSD -matt */
7-#if defined(__FreeBSD__)
8-char *SLOCATEDB = "/var/db/slocate/slocate.db";
9-char *TMPSLOCATEDB = "/var/db/slocate/slocate.db.tmp";
10-char *SLOCATEDB_DIR = "/var/db/slocate/";
11-#elif defined(__SunOS__)
12-char *SLOCATEDB = "/var/db/slocate/slocate.db";
13-char *TMPSLOCATEDB = "/var/db/slocate/slocate.db.tmp";
14-char *SLOCATEDB_DIR = "/var/db/slocate/";
15-#undef MTAB_FILE
16-#define MTAB_FILE "/etc/mnttab"
17-#else
18-char *SLOCATEDB = "/var/lib/slocate/slocate.db";
19-char *TMPSLOCATEDB = "/var/lib/slocate/slocate.db.tmp";
20-char *SLOCATEDB_DIR = "/var/lib/slocate/";
21-#endif
22+char *SLOCATEDB = "__PREFIX__/var/db/slocate/slocate.db";
23+char *TMPSLOCATEDB = "__PREFIX__/var/db/slocate/slocate.db.tmp";
24+char *SLOCATEDB_DIR = "__PREFIX__/var/db/slocate/";
25 
26-# define UPDATEDB_CONF "/etc/updatedb.conf"
27+# define UPDATEDB_CONF "__PREFIX__/etc/updatedb.conf"
28 char *EXCLUDE_DIR=NULL;
29 int EXCLUDE=0;
30 int VERBOSE=0;
Note: See TracBrowser for help on using the repository browser.