head	1.3;
access;
symbols
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.2
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.2;
locks; strict;
comment	@# @;


1.3
date	2003.04.09.05.41.27;	author leeym;	state dead;
branches;
next	1.2;

1.2
date	2000.01.20.17.16.07;	author kris;	state Exp;
branches;
next	1.1;

1.1
date	99.12.25.16.10.59;	author steve;	state Exp;
branches;
next	;


desc
@@


1.3
log
@- Remove BROKEN: change temp dir from /tmp to /var/run/logcheck
  (it has to be mode 700) - now complies with hier(7)
- Psionic has been acquired by Cisco in late 2002 and now
  www.psionic.com is an alias to www.cisco.com. Unfortunately,
  the latter does not have any mention of LogSentry or other Abacus tools,
  so remove www.psionic.com from the MASTER_SITES and WWW: tag
- Reword pkg-descr to better reflect reality
- Dont use logcheck's Makefile - build/install completely from port's Makefile
- Make PREFIX-clean
- Install useful documentation
- Assign maintainership to submitter

Removed files:
- files/patch-aa
- pkg-message

PR:		50730
Submitted by:	Sergei Kolobov <sergei@@kolobov.com>
@
text
@--- Makefile.orig	Sun Oct 31 07:07:29 1999
+++ Makefile	Thu Jan 20 09:14:40 2000
@@@@ -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
 
@@@@ -35,19 +37,7 @@@@
 # 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
 		@@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:		
@


1.2
log
@Respect CC and CFLAGS
@
text
@@


1.1
log
@logcheck version 1.1.1
An auditing tools for system logs on Un*x boxes.

PR:		15360
Submitted by:	Dan Langille <dan@@freebsddiary.org>
@
text
@d1 3
a3 3
--- Makefile.orig	Sun Oct 31 09:07:29 1999
+++ Makefile	Fri Dec 24 16:37:46 1999
@@@@ -5,6 +5,8 @@@@
d10 2
a11 1
  CC = cc
d13 8
@

