summaryrefslogtreecommitdiff
path: root/security/tripwire/patches
diff options
context:
space:
mode:
authoragc <agc>1998-11-17 16:27:25 +0000
committeragc <agc>1998-11-17 16:27:25 +0000
commitb34b31db42b282f83baf0971e9ee7990bb697ae9 (patch)
treea058cdb593c72939aa1077ce1fcaca4dfa1f7503 /security/tripwire/patches
parent3a4137f0293443560a4bbdc92cb007506032332f (diff)
downloadpkgsrc-b34b31db42b282f83baf0971e9ee7990bb697ae9.tar.gz
Initial import of tripwire-1.2, a file and directory integrity checker,
into the NetBSD Packages Collection.
Diffstat (limited to 'security/tripwire/patches')
-rw-r--r--security/tripwire/patches/patch-aa28
-rw-r--r--security/tripwire/patches/patch-ab36
-rw-r--r--security/tripwire/patches/patch-ac65
3 files changed, 129 insertions, 0 deletions
diff --git a/security/tripwire/patches/patch-aa b/security/tripwire/patches/patch-aa
new file mode 100644
index 00000000000..0c7d6cb78ad
--- /dev/null
+++ b/security/tripwire/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 1998/11/17 16:27:25 agc Exp $
+
+Miscellaneous Makefile settings.
+
+--- Makefile 1994/07/25 15:59:41 1.16
++++ Makefile 1998/11/17 13:44:39
+@@ -12,10 +12,10 @@
+ ###
+
+ # destination directory for final executables
+-DESTDIR = /secureplace/bin
++DESTDIR = ${PREFIX}/sbin
+
+ # destination for man pages
+-MANDIR = /usr/man
++MANDIR = ${PREFIX}/man
+
+ # system utilities
+ LEX = lex
+@@ -48,7 +48,7 @@
+ #CFLAGS = -systype bsd43 # ETA/10 (SVR3)
+ #CFLAGS = -systype bsd43 # MIPS RISC/OS 4.5x
+ #CFLAGS = -O -ansi # gnu CC
+-#CFLAGS = -O -ansi -W -Wreturn-type -Wswitch -Wshadow # gnu CC w/all warnings
++CFLAGS = -O -ansi -W -Wreturn-type -Wswitch -Wshadow # gnu CC w/all warnings
+ #CFLAGS = -OG # Pyramid OSx
+ #CFLAGS = -O -Kold # Pyramid DC/OSx (SVR4)
+ #CFLAGS = -DTW_TYPE32='int' # DEC OSF/1 Alpha (or any other architecture
diff --git a/security/tripwire/patches/patch-ab b/security/tripwire/patches/patch-ab
new file mode 100644
index 00000000000..bd6b33c4151
--- /dev/null
+++ b/security/tripwire/patches/patch-ab
@@ -0,0 +1,36 @@
+$NetBSD: patch-ab,v 1.1.1.1 1998/11/17 16:27:25 agc Exp $
+
+NetBSD-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,7 +17,7 @@
+ *** file that corresponds with your operating system.
+ ***/
+
+-#include "../configs/conf-svr4.h"
++#include "../configs/conf-netbsd.h"
+
+ #ifdef TW_TYPE32
+ typedef TW_TYPE32 int32;
+@@ -102,9 +102,8 @@
+ # define DATABASE_PATH "/usr/local/adm/tcheck/databases"
+ #endif
+ */
+-
+-#define CONFIG_PATH "/tmp/genek"
+-#define DATABASE_PATH "/tmp/genek"
++# define CONFIG_PATH "@localbase@/etc/tripwire"
++# define DATABASE_PATH "@localbase@/etc/tripwire/databases"
+
+ /******* name of Tripwire files **************************************
+ *
+@@ -121,7 +120,7 @@
+ *
+ *********************************************************************/
+
+-#define CONFIG_FILE "tw.config"
++#define CONFIG_FILE "tripwire.conf"
+ #define DATABASE_FILE "tw.db_@"
+
+ /******* Default ignore mask ****************************************
diff --git a/security/tripwire/patches/patch-ac b/security/tripwire/patches/patch-ac
new file mode 100644
index 00000000000..a44ea8eb979
--- /dev/null
+++ b/security/tripwire/patches/patch-ac
@@ -0,0 +1,65 @@
+$NetBSD: patch-ac,v 1.1.1.1 1998/11/17 16:27:25 agc Exp $
+
+NetBSD defines both LITTLE_ENDIAN and BIG_ENDIAN, and sets the
+definition of BYTE_ORDER accordingly. So check the value of
+BYTE_ORDER in this file.
+
+--- sigs/sha/sha.c 1994/07/25 15:46:45 1.5
++++ sigs/sha/sha.c 1998/11/17 15:59:20
+@@ -46,10 +46,7 @@
+
+ #include "sha.h"
+
+-#if BYTEORDER == 0x1234
+-#define LITTLE_ENDIAN
+-#endif
+-
++#include <machine/endian.h>
+
+ /* The SHS f()-functions */
+
+@@ -214,7 +211,7 @@
+ shsInfo->digest[ 4 ] += E;
+ }
+
+-#ifdef LITTLE_ENDIAN
++#if BYTE_ORDER == LITTLE_ENDIAN
+
+ /* When run on a little-endian CPU we need to perform byte reversal on an
+ array of longwords. It is possible to make the code endianness-
+@@ -258,7 +255,7 @@
+ while( count >= SHS_BLOCKSIZE )
+ {
+ memcpy( (char *) shsInfo->data, (char *) buffer, SHS_BLOCKSIZE );
+-#ifdef LITTLE_ENDIAN
++#if BYTE_ORDER == LITTLE_ENDIAN
+ byteReverse( shsInfo->data, SHS_BLOCKSIZE );
+ #endif /* LITTLE_ENDIAN */
+ shsTransform( shsInfo );
+@@ -289,7 +286,7 @@
+ {
+ /* Two lots of padding: Pad the first block to 64 bytes */
+ memset( ( char * ) shsInfo->data + count, 0, 64 - count );
+-#ifdef LITTLE_ENDIAN
++#if BYTE_ORDER == LITTLE_ENDIAN
+ byteReverse( shsInfo->data, SHS_BLOCKSIZE );
+ #endif /* LITTLE_ENDIAN */
+ shsTransform( shsInfo );
+@@ -300,7 +297,7 @@
+ else
+ /* Pad block to 56 bytes */
+ memset( ( char * ) shsInfo->data + count, 0, 56 - count );
+-#ifdef LITTLE_ENDIAN
++#if BYTE_ORDER == LITTLE_ENDIAN
+ byteReverse( shsInfo->data, SHS_BLOCKSIZE );
+ #endif /* LITTLE_ENDIAN */
+
+@@ -309,7 +306,7 @@
+ shsInfo->data[ 15 ] = lowBitcount;
+
+ shsTransform( shsInfo );
+-#ifdef LITTLE_ENDIAN
++#if BYTE_ORDER == LITTLE_ENDIAN
+ byteReverse( shsInfo->data, SHS_DIGESTSIZE );
+ #endif /* LITTLE_ENDIAN */
+ }