Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 1999 22:40:03 -0800 (PST)
From:      "Dan Langille" <dan@freebsddiary.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/15360: new port = logcheck
Message-ID:  <199912150640.WAA64857@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/15360; it has been noted by GNATS.

From: "Dan Langille" <dan@freebsddiary.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: ports/15360: new port = logcheck
Date: Wed, 15 Dec 1999 19:34:30 +1300

 Please ignore my previous submission.  Use this one instead.  A few 
 errors have been pointed out to me off-list.  Thanks.
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #       logcheck
 #       logcheck/Makefile
 #       logcheck/files
 #       logcheck/files/md5
 #       logcheck/patches
 #       logcheck/patches/patch-aa
 #       logcheck/pkg
 #       logcheck/pkg/COMMENT
 #       logcheck/pkg/DESCR
 #       logcheck/pkg/PLIST
 #       logcheck/shar.txt
 #
 echo c - logcheck
 mkdir -p logcheck > /dev/null 2>&1
 echo x - logcheck/Makefile
 sed 's/^X//' >logcheck/Makefile << 'END-of-logcheck/Makefile'
 X# Ports collection makefile for:      logcheck
 X# Version required:                   1.1.1
 X# Date created:                       9 December 1999
 X# Whom:                               Dan Langille <dan@freebsddiary.org>
 X#
 X# $FreeBSD$
 X#
 X
 XDISTNAME=      logcheck-1.1.1
 XCATEGORIES=    security
 XMASTER_SITES=  http://www.psionic.com/tools/
 X
 XMAINTAINER=    ports@freebsddiary.org
 X
 Xpost-install:
 X       @${ECHO_MSG} " "
 X       @${ECHO_MSG} "---------------------------------------------------------------"
 X       @${ECHO_MSG} "   Remember to copy the sample files to the real file names."
 X       @${ECHO_MSG} "   here is an example what you need to do"
 X       @${ECHO_MSG} " "
 X       @${ECHO_MSG} "       cd ${PREFIX}/etc/"
 X       @${ECHO_MSG} "       cp logcheck.ignore.sample logcheck.ignore"
 X       @${ECHO_MSG} "       cp logcheck.violations.ignore.sample logcheck.violations.ignore"
 X       @${ECHO_MSG} "       cp logcheck.violations.sample logcheck.violations"
 X       @${ECHO_MSG} "       cp logcheck.hacking.sample logcheck.hacking"
 X       @${ECHO_MSG} " "
 X       @${ECHO_MSG} "   Note that logcheck is started with ./logcheck.sh"
 X       @${ECHO_MSG} "---------------------------------------------------------------"
 X
 X.include <bsd.port.mk>
 END-of-logcheck/Makefile
 echo c - logcheck/files
 mkdir -p logcheck/files > /dev/null 2>&1
 echo x - logcheck/files/md5
 sed 's/^X//' >logcheck/files/md5 << 'END-of-logcheck/files/md5'
 XMD5 (logcheck-1.1.1.tar.gz) = e97c2f096e219e20310c1b80e9e1bc29
 END-of-logcheck/files/md5
 echo c - logcheck/patches
 mkdir -p logcheck/patches > /dev/null 2>&1
 echo x - logcheck/patches/patch-aa
 sed 's/^X//' >logcheck/patches/patch-aa << 'END-of-logcheck/patches/patch-aa'
 X--- Makefile.orig      Mon Nov  1 04:07:29 1999
 X+++ Makefile   Wed Dec 15 18:41:13 1999
 X@@ -5,6 +5,8 @@
 X # Thanks to rbulling@obscure.org for cleaning this Makefile up..
 X #
 X 
 X+SYSTYPE=freebsd
 X+
 X # Generic compiler
 X  CC = cc
 X # GNU..
 X@@ -35,19 +37,19 @@
 X # Debug mode for logtail
 X # CFLAGS = -g -DDEBUG
 X 
 X-all:
 X-              @echo "Usage: make <systype>"
 X-              @echo "<systype> is one of: "
 X-              @echo "  linux, bsdos, freebsd, sun, generic, hpux, digital"
 X-              @echo "" 
 X-              @echo "NOTE: This will make and install the package in these" 
 X-              @echo "      directories:" 
 X-              @echo "        logcheck configuration files : $(INSTALLDIR)" 
 X-              @echo "        logcheck.sh shell script     : $(INSTALLDIR_SH)" 
 X-              @echo "        logtail program              : $(INSTALLDIR_BIN)" 
 X-              @echo "" 
 X-              @echo "Edit the makefile if you wish to change these paths." 
 X-              @echo "Any existing files will be overwritten."
 X+all:          build
 X+#             @echo "Usage: make <systype>"
 X+#             @echo "<systype> is one of: "
 X+#             @echo "  linux, bsdos, freebsd, sun, generic, hpux, digital"
 X+#             @echo "" 
 X+#             @echo "NOTE: This will make and install the package in these" 
 X+#             @echo "      directories:" 
 X+#             @echo "        logcheck configuration files : $(INSTALLDIR)" 
 X+#             @echo "        logcheck.sh shell script     : $(INSTALLDIR_SH)" 
 X+#             @echo "        logtail program              : $(INSTALLDIR_BIN)" 
 X+#             @echo "" 
 X+#             @echo "Edit the makefile if you wish to change these paths." 
 X+#             @echo "Any existing files will be overwritten."
 X 
 X clean:                
 X               /bin/rm ./src/logtail ./src/logtail.o
 X@@ -60,27 +62,29 @@
 X               /bin/rm $(INSTALLDIR)/logcheck.violations.ignore
 X               /bin/rm $(INSTALLDIR_BIN)/logtail
 X 
 X-install:      
 X+build:
 X               @echo "Making $(SYSTYPE)"
 X               $(CC) $(CFLAGS) -o ./src/logtail ./src/logtail.c
 X+
 X+install:
 X               @echo "Creating temp directory $(TMPDIR)"
 X               @if [ ! -d $(TMPDIR) ]; then /bin/mkdir $(TMPDIR); fi
 X               @echo "Setting temp directory permissions"
 X               chmod 700 $(TMPDIR)
 X               @echo "Copying files"
 X-              cp ./systems/$(SYSTYPE)/logcheck.hacking $(INSTALLDIR)
 X-              cp ./systems/$(SYSTYPE)/logcheck.violations $(INSTALLDIR)
 X-              cp ./systems/$(SYSTYPE)/logcheck.violations.ignore $(INSTALLDIR)
 X-              cp ./systems/$(SYSTYPE)/logcheck.ignore $(INSTALLDIR)
 X-              cp ./systems/$(SYSTYPE)/logcheck.sh $(INSTALLDIR_SH)
 X+              cp ./systems/$(SYSTYPE)/logcheck.hacking $(INSTALLDIR)/logcheck.hacking.sample
 X+              cp ./systems/$(SYSTYPE)/logcheck.violations $(INSTALLDIR)/logcheck.violations.sample
 X+              cp ./systems/$(SYSTYPE)/logcheck.violations.ignore $(INSTALLDIR)/logcheck.violations.ignore.samp
 le
 X+              cp ./systems/$(SYSTYPE)/logcheck.ignore $(INSTALLDIR)/logcheck.ignore.sample
 X+              cp ./systems/$(SYSTYPE)/logcheck.sh $(INSTALLDIR_SH)/logcheck.sh
 X               cp ./src/logtail $(INSTALLDIR_BIN)
 X               @echo "Setting permissions"
 X               chmod 700 $(INSTALLDIR_SH)/logcheck.sh
 X               chmod 700 $(INSTALLDIR_BIN)/logtail
 X-              chmod 600 $(INSTALLDIR)/logcheck.violations.ignore
 X-              chmod 600 $(INSTALLDIR)/logcheck.violations
 X-              chmod 600 $(INSTALLDIR)/logcheck.hacking
 X-              chmod 600 $(INSTALLDIR)/logcheck.ignore
 X+              chmod 600 $(INSTALLDIR)/logcheck.violations.ignore.sample
 X+              chmod 600 $(INSTALLDIR)/logcheck.violations.sample
 X+              chmod 600 $(INSTALLDIR)/logcheck.hacking.sample
 X+              chmod 600 $(INSTALLDIR)/logcheck.ignore.sample
 X               @echo "Done. Don't forget to set your crontab."         
 X 
 X generic:              
 END-of-logcheck/patches/patch-aa
 echo c - logcheck/pkg
 mkdir -p logcheck/pkg > /dev/null 2>&1
 echo x - logcheck/pkg/COMMENT
 sed 's/^X//' >logcheck/pkg/COMMENT << 'END-of-logcheck/pkg/COMMENT'
 XAuditing tool for system logs on Unix boxes.
 END-of-logcheck/pkg/COMMENT
 echo x - logcheck/pkg/DESCR
 sed 's/^X//' >logcheck/pkg/DESCR << 'END-of-logcheck/pkg/DESCR'
 XLogcheck helps spot problems and security violations in your logfiles 
 Xautomatically and will send the results to you in e-mail.
 X
 XLogcheck is part of the Abacus Project of security tools. It is a program 
 Xcreated to help in the processing of UNIX system logfiles generated by the 
 Xvarious Abacus Project tools, system daemons, Wietse Venema's TCP Wrapper 
 Xand Log Daemon packages, and the Firewall Toolkit(c) by Trusted Information 
 XSystems Inc.(TIS). Logcheck also works very well at reporting on other 
 Xcommon operating system security violations and strange events.
 X
 XWWW: http://www.psionic.com/
 X
 X- Dan Langille
 Xdan@freebsddiary.org
 END-of-logcheck/pkg/DESCR
 echo x - logcheck/pkg/PLIST
 sed 's/^X//' >logcheck/pkg/PLIST << 'END-of-logcheck/pkg/PLIST'
 Xetc/logcheck.hacking.sample
 Xetc/logcheck.violations.sample
 Xetc/logcheck.violations.ignore.sample
 Xetc/logcheck.ignore.sample
 Xetc/logcheck.sh
 Xbin/logtail
 END-of-logcheck/pkg/PLIST
 echo x - logcheck/shar.txt
 sed 's/^X//' >logcheck/shar.txt << 'END-of-logcheck/shar.txt'
 END-of-logcheck/shar.txt
 exit
 --
 Dan Langille - DVL Software Limited [I'm looking for more work]
 The FreeBSD Diary     - http://www.freebsddiary.org/freebsd/
 NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/
 The Racing System     - http://www.racingsystem.com/racingsystem.htm
 unix @ home           - http://www.unixathome.org/
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912150640.WAA64857>