summaryrefslogtreecommitdiff
path: root/security/tripwire/patches/patch-ab
blob: b4a6e764a6767a4b7a9f4100976ed4bb68b8ee01 (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
$NetBSD: patch-ab,v 1.5 2008/10/03 17:42:29 joerg Exp $

NetBSD and Solaris specific paths for tripwire.

--- include/config.h	1994/07/15 11:02:52	1.5
+++ include/config.h	1998/11/17 14:40:02
@@ -17,15 +17,11 @@
  ***	file that corresponds with your operating system.
  ***/
 
-#include "../configs/conf-svr4.h"
+#include "../configs/conf-@LOWER_OPSYS@.h"
 
-#ifdef TW_TYPE32
-typedef TW_TYPE32 int32;
-typedef unsigned TW_TYPE32 uint32;
-#else
-typedef long int32;
-typedef unsigned long uint32;
-#endif
+#include <inttypes.h>
+typedef int32_t int32;
+typedef uint32_t uint32;
 
 /***
  *** SYSTEM SPECIFIC Tripwire Configuration
@@ -102,9 +98,8 @@ typedef unsigned long uint32;
 # define DATABASE_PATH   "/usr/local/adm/tcheck/databases"
 #endif
 */
-
-#define CONFIG_PATH     "/tmp/genek"
-#define DATABASE_PATH   "/tmp/genek"
+# define CONFIG_PATH     "@PKG_SYSCONFDIR@"
+# define DATABASE_PATH   "@PKG_SYSCONFDIR@/databases"
 
 /******* name of Tripwire files **************************************
  *
@@ -121,7 +116,7 @@ typedef unsigned long uint32;
  *
  *********************************************************************/
 
-#define CONFIG_FILE 	"tw.config"
+#define CONFIG_FILE 	"tripwire.conf"
 #define DATABASE_FILE	"tw.db_@"
 
 /******* Default ignore mask ****************************************