Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
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.
+49
View File
@@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.19 2012/10/23 18:16:35 asau Exp $
DISTNAME= logcheck-1.1.1
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sentrytools/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/sentrytools/
COMMENT= Auditing tool for system logs on Unix boxes
LICENSE= gnu-gpl-v2
NOT_FOR_UNPRIVILEGED= yes
PKG_SYSCONFSUBDIR= logcheck
EGDIR= ${PREFIX}/share/examples/logcheck
TEMPDIR= ${VARBASE}/adm/tmp
.for f in hacking ignore violations violations.ignore
CONF_FILES_PERMS+= ${EGDIR}/logcheck.${f} ${PKG_SYSCONFDIR}/logcheck.${f}\
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0600
.endfor
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Fixing hard-coded paths.
SUBST_FILES.prefix= Makefile systems/freebsd/logcheck.sh
SUBST_SED.prefix= -e "s+/usr/local+${PREFIX}+g"
SUBST_SED.prefix+= -e "s+@PKG_SYSCONFDIR@+${PKG_SYSCONFDIR}+g"
SUBST_SED.prefix+= -e "s+@TEMPDIR@+${TEMPDIR}+g"
INSTALLATION_DIRS+= bin ${EGDIR}
OWN_DIRS_PERMS+= ${TEMPDIR} ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
SPECIAL_PERMS+= ${PREFIX}/bin/logcheck.sh ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
SPECIAL_PERMS+= ${PREFIX}/bin/logtail ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0700
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh \
${DESTDIR}${PREFIX}/bin
.for f in hacking ignore violations violations.ignore
${INSTALL_DATA} ${WRKSRC}/systems/freebsd/logcheck.${f} \
${DESTDIR}${EGDIR}
.endfor
.include "../../devel/sysexits/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+7
View File
@@ -0,0 +1,7 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:13:32 joerg Exp $
bin/logcheck.sh
bin/logtail
share/examples/logcheck/logcheck.hacking
share/examples/logcheck/logcheck.ignore
share/examples/logcheck/logcheck.violations
share/examples/logcheck/logcheck.violations.ignore
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2009/12/11 19:48:21 heinz Exp $
SHA1 (logcheck-1.1.1.tar.gz) = 18f89f0dacfe9ff31076c006d58e1bcfedaa7f22
RMD160 (logcheck-1.1.1.tar.gz) = 1865f598b4bf32af466d4aec5e0803249a61c442
Size (logcheck-1.1.1.tar.gz) = 30267 bytes
SHA1 (patch-aa) = 692e07b102925cad20e4e3e1ccea498d1aac72d5
SHA1 (patch-ab) = 768a1193e38513bc848a0b622ab06a1d47f54ff3
+91
View File
@@ -0,0 +1,91 @@
$NetBSD: patch-aa,v 1.2 2003/05/01 20:43:41 jmmv Exp $
--- Makefile.orig 1999-10-31 16:07:29.000000000 +0100
+++ Makefile
@@ -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
@@ -19,35 +21,22 @@ CFLAGS = -O
# the new paths!!
# This is where keyword files go.
-INSTALLDIR = /usr/local/etc
+INSTALLDIR = /usr/local/share/examples/logcheck
# This is where logtail will go
INSTALLDIR_BIN = /usr/local/bin
# Some people want the logcheck.sh in /usr/local/bin. Uncomment this
# if you want this. /usr/local/etc was kept for compatibility reasons.
-#INSTALLDIR_SH = /usr/local/bin
-INSTALLDIR_SH = /usr/local/etc
+INSTALLDIR_SH = /usr/local/bin
# 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,19 +49,21 @@ uninstall:
/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
+ cp ./systems/$(SYSTYPE)/logcheck.violations $(INSTALLDIR)/logcheck.violations
+ cp ./systems/$(SYSTYPE)/logcheck.violations.ignore $(INSTALLDIR)/logcheck.violations.ignore
+ cp ./systems/$(SYSTYPE)/logcheck.ignore $(INSTALLDIR)/logcheck.ignore
+ cp ./systems/$(SYSTYPE)/logcheck.sh $(INSTALLDIR_SH)/logcheck.sh
cp ./src/logtail $(INSTALLDIR_BIN)
@echo "Setting permissions"
chmod 700 $(INSTALLDIR_SH)/logcheck.sh
+60
View File
@@ -0,0 +1,60 @@
$NetBSD: patch-ab,v 1.4 2009/12/11 19:48:21 heinz Exp $
--- systems/freebsd/logcheck.sh.orig 1999-10-31 16:07:29.000000000 +0100
+++ systems/freebsd/logcheck.sh
@@ -52,7 +52,7 @@ LOGTAIL=/usr/local/bin/logtail
# You would also be well advised to make sure all your system/cron scripts
# use this directory for their "scratch" area.
-TMPDIR=/usr/local/etc/tmp
+TMPDIR=@TEMPDIR@
# The 'grep' command. This command MUST support the
# '-i' '-v' and '-f' flags!! The GNU grep does this by default (that's
@@ -89,7 +89,7 @@ MAIL=mail
# look for generic ISS probes (who the hell else looks for
# "WIZ" besides ISS?), and obvious sendmail attacks/probes.
-HACKING_FILE=/usr/local/etc/logcheck.hacking
+HACKING_FILE=@PKG_SYSCONFDIR@/logcheck.hacking
# File of security violation patterns to specifically look for.
# This file should contain keywords of information administrators should
@@ -98,7 +98,7 @@ HACKING_FILE=/usr/local/etc/logcheck.hac
# some items, but these will be caught by the next check. Move suspicious
# items into this file to have them reported regularly.
-VIOLATIONS_FILE=/usr/local/etc/logcheck.violations
+VIOLATIONS_FILE=@PKG_SYSCONFDIR@/logcheck.violations
# File that contains more complete sentences that have keywords from
# the violations file. These keywords are normal and are not cause for
@@ -115,14 +115,14 @@ VIOLATIONS_FILE=/usr/local/etc/logcheck.
#
# Again, be careful what you put in here and DO NOT LEAVE IT EMPTY!
-VIOLATIONS_IGNORE_FILE=/usr/local/etc/logcheck.violations.ignore
+VIOLATIONS_IGNORE_FILE=@PKG_SYSCONFDIR@/logcheck.violations.ignore
# This is the name of a file that contains patterns that we should
# ignore if found in a log file. If you have repeated false alarms
# or want specific errors ignored, you should put them in here.
# Once again, be as specific as possible, and go easy on the wildcards
-IGNORE_FILE=/usr/local/etc/logcheck.ignore
+IGNORE_FILE=@PKG_SYSCONFDIR@/logcheck.ignore
# The files are reported in the order of hacking, security
# violations, and unusual system events. Notice that this
@@ -170,9 +170,10 @@ fi
#$LOGTAIL /var/log/secure >> $TMPDIR/check.$$
#$LOGTAIL /var/log/maillog >> $TMPDIR/check.$$
-# FreeBSD 2.x
+# NetBSD
$LOGTAIL /var/log/messages > $TMPDIR/check.$$
$LOGTAIL /var/log/maillog >> $TMPDIR/check.$$
+$LOGTAIL /var/log/authlog >> $TMPDIR/check.$$
# BSDI 2.x
#$LOGTAIL /var/log/messages > $TMPDIR/check.$$