[BACK]Return to patch-aa CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / logcheck / patches

File: [cvs.NetBSD.org] / pkgsrc / security / logcheck / patches / patch-aa (download)

Revision 1.1.1.1 (vendor branch), Tue Jul 17 15:00:48 2001 UTC (22 years, 9 months ago) by nra
Branch: TNF
CVS Tags: pkgviews-base, pkgviews, pkgsrc-base, netbsd-1-6-RELEASE-base, netbsd-1-6-1-base, netbsd-1-6-1, netbsd-1-6, netbsd-1-5-PATCH003, buildlink2-base, buildlink2
Changes since 1.1: +0 -0 lines


Add logcheck-1.1.1.   PR #13271 by Martti Kuparinen.

Auditing tool for system logs on Unix boxes.

Logcheck helps spot problems and security violations in your logfiles 
automatically and will send the results to you in e-mail.

Logcheck is part of the Abacus Project of security tools. It is a program 
created to help in the processing of UNIX system logfiles generated by the 
various Abacus Project tools, system daemons, Wietse Venema's TCP Wrapper 
and Log Daemon packages, and the Firewall Toolkit(c) by Trusted Information 
Systems Inc.(TIS). Logcheck also works very well at reporting on other 
common operating system security violations and strange events.



$NetBSD: patch-aa,v 1.1.1.1 2001/07/17 15:00:48 nra Exp $

--- Makefile.orig	Sun Oct 31 16:07:29 1999
+++ Makefile	Thu Jun 21 09:19:45 2001
@@ -5,13 +5,15 @@
 # Thanks to rbulling@obscure.org for cleaning this Makefile up..
 #
 
+SYSTYPE=freebsd
+
 # Generic compiler
- CC = cc
+ CC ?= cc
 # GNU..
 # CC = gcc 
 
 # Normal systems flags
-CFLAGS = -O
+CFLAGS ?= -O
 # Braindead HPUX compiler flags
 #CFLAGS = -O -Aa
 
@@ -30,24 +32,12 @@
 INSTALLDIR_SH = /usr/local/etc
 
 # The scratch directory for logcheck files.
-TMPDIR = /usr/local/etc/tmp
+TMPDIR = /var/adm/tmp
 
 # Debug mode for logtail
 # CFLAGS = -g -DDEBUG
 
-all:
-		@echo "Usage: make <systype>"
-		@echo "<systype> is one of: "
-		@echo "  linux, bsdos, freebsd, sun, generic, hpux, digital"
-		@echo "" 
-		@echo "NOTE: This will make and install the package in these" 
-		@echo "      directories:" 
-		@echo "        logcheck configuration files : $(INSTALLDIR)" 
-		@echo "        logcheck.sh shell script     : $(INSTALLDIR_SH)" 
-		@echo "        logtail program              : $(INSTALLDIR_BIN)" 
-		@echo "" 
-		@echo "Edit the makefile if you wish to change these paths." 
-		@echo "Any existing files will be overwritten."
+all: build
 
 clean:		
 		/bin/rm ./src/logtail ./src/logtail.o
@@ -60,27 +50,29 @@
 		/bin/rm $(INSTALLDIR)/logcheck.violations.ignore
 		/bin/rm $(INSTALLDIR_BIN)/logtail
 
-install:	
+build:	
 		@echo "Making $(SYSTYPE)"
 		$(CC) $(CFLAGS) -o ./src/logtail ./src/logtail.c
+
+install:
 		@echo "Creating temp directory $(TMPDIR)"
-		@if [ ! -d $(TMPDIR) ]; then /bin/mkdir $(TMPDIR); fi
+		@if [ ! -d $(TMPDIR) ]; then /bin/mkdir -p $(TMPDIR); fi
 		@echo "Setting temp directory permissions"
 		chmod 700 $(TMPDIR)
 		@echo "Copying files"
-		cp ./systems/$(SYSTYPE)/logcheck.hacking $(INSTALLDIR)
-		cp ./systems/$(SYSTYPE)/logcheck.violations $(INSTALLDIR)
-		cp ./systems/$(SYSTYPE)/logcheck.violations.ignore $(INSTALLDIR)
-		cp ./systems/$(SYSTYPE)/logcheck.ignore $(INSTALLDIR)
-		cp ./systems/$(SYSTYPE)/logcheck.sh $(INSTALLDIR_SH)
+		cp ./systems/$(SYSTYPE)/logcheck.hacking $(INSTALLDIR)/logcheck.hacking.sample
+		cp ./systems/$(SYSTYPE)/logcheck.violations $(INSTALLDIR)/logcheck.violations.sample
+		cp ./systems/$(SYSTYPE)/logcheck.violations.ignore $(INSTALLDIR)/logcheck.violations.ignore.sample
+		cp ./systems/$(SYSTYPE)/logcheck.ignore $(INSTALLDIR)/logcheck.ignore.sample
+		cp ./systems/$(SYSTYPE)/logcheck.sh $(INSTALLDIR_SH)/logcheck.sh
 		cp ./src/logtail $(INSTALLDIR_BIN)
 		@echo "Setting permissions"
 		chmod 700 $(INSTALLDIR_SH)/logcheck.sh
 		chmod 700 $(INSTALLDIR_BIN)/logtail
-		chmod 600 $(INSTALLDIR)/logcheck.violations.ignore
-		chmod 600 $(INSTALLDIR)/logcheck.violations
-		chmod 600 $(INSTALLDIR)/logcheck.hacking
-		chmod 600 $(INSTALLDIR)/logcheck.ignore
+		chmod 600 $(INSTALLDIR)/logcheck.violations.ignore.sample
+		chmod 600 $(INSTALLDIR)/logcheck.violations.sample
+		chmod 600 $(INSTALLDIR)/logcheck.hacking.sample
+		chmod 600 $(INSTALLDIR)/logcheck.ignore.sample
 		@echo "Done. Don't forget to set your crontab."		
 
 generic: