]> git.pld-linux.org Git - packages/foremost.git/commitdiff
- path to use %{_sysconfdir}
authorundefine <undefine@pld-linux.org>
Wed, 6 Dec 2006 18:14:23 +0000 (18:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    foremost-sysconfdir.patch -> 1.1

foremost-sysconfdir.patch [new file with mode: 0644]

diff --git a/foremost-sysconfdir.patch b/foremost-sysconfdir.patch
new file mode 100644 (file)
index 0000000..2186360
--- /dev/null
@@ -0,0 +1,42 @@
+--- foremost-1.3/config.c.orig 2006-12-06 17:38:01.234697000 +0100
++++ foremost-1.3/config.c      2006-12-06 17:40:06.004697000 +0100
+@@ -285,11 +285,7 @@
+               /*Can't find  a conf in the current directory
+     * So lets try the /usr/local/etc*/
+-#ifdef __WIN32
+-              set_config_file(s, "/Program Files/foremost/foremost.conf");
+-#else
+-              set_config_file(s, "/usr/local/etc/foremost.conf");
+-#endif
++              set_config_file(s, DEFAULT_SYSTEM_CONFIG_FILE);
+               if ((f = fopen(get_config_file(s), "r")) == NULL)
+                       {
+                       print_error(s, get_config_file(s), strerror(errno));
+--- foremost-1.3/main.h.orig   2006-12-06 17:37:56.114697000 +0100
++++ foremost-1.3/main.h        2006-08-26 09:02:14.000000000 +0200
+@@ -216,6 +216,13 @@
\r
+ #define DEFAULT_MODE              mode_none\r
+ #define DEFAULT_CONFIG_FILE       "foremost.conf"\r
++#ifndef DEFAULT_SYSTEM_CONFIG_FILE\r
++#ifdef __WIN32\r
++#define DEFAULT_SYSTEM_CONFIG_FILE "/Program Files/foremost/foremost.conf"\r
++#else\r
++#define DEFAULT_SYSTEM_CONFIG_FILE       "/etc/foremost.conf"\r
++#endif\r
++#endif\r
+ #define DEFAULT_OUTPUT_DIRECTORY  "output"\r
+ #define AUDIT_FILE_NAME           "audit.txt"\r
+ #define FOREMOST_DIVIDER          "------------------------------------------------------------------"\r
+--- foremost-1.3/Makefile~     2006-08-26 09:02:14.000000000 +0200
++++ foremost-1.3/Makefile      2006-12-06 17:40:47.064697000 +0100
+@@ -26,7 +26,7 @@
+ # Where we get installed
+ BIN = /usr/local/bin
+ MAN = /usr/local/man/man1
+-CONF= /usr/local/etc
++CONF= /etc
+ # Setup for compiling and cross-compiling for Windows
+ # The CR_ prefix refers to cross compiling from OSX to Windows
+ CR_CC = $(CR_BASE)/gcc
This page took 0.098092 seconds and 4 git commands to generate.