head	1.42;
access;
symbols
	RELEASE_8_3_0:1.38
	RELEASE_9_0_0:1.37
	RELEASE_7_4_0:1.35
	RELEASE_8_2_0:1.35
	RELEASE_6_EOL:1.35
	RELEASE_8_1_0:1.33
	RELEASE_7_3_0:1.31
	RELEASE_8_0_0:1.26
	RELEASE_7_2_0:1.23
	RELEASE_7_1_0:1.23
	RELEASE_6_4_0:1.23
	RELEASE_5_EOL:1.19
	RELEASE_7_0_0:1.19
	RELEASE_6_3_0:1.19
	PRE_XORG_7:1.19
	RELEASE_4_EOL:1.19
	RELEASE_6_2_0:1.19
	RELEASE_6_1_0:1.18
	RELEASE_5_5_0:1.18
	RELEASE_6_0_0:1.18
	RELEASE_5_4_0:1.18
	RELEASE_4_11_0:1.18
	RELEASE_5_3_0:1.18
	RELEASE_4_10_0:1.18
	RELEASE_5_2_1:1.17
	RELEASE_5_2_0:1.17
	RELEASE_4_9_0:1.16
	RELEASE_5_1_0:1.15
	RELEASE_4_8_0:1.12
	RELEASE_5_0_0:1.10
	RELEASE_4_7_0:1.8
	RELEASE_4_6_2:1.5
	RELEASE_4_6_1:1.5
	RELEASE_4_6_0:1.5
	RELEASE_5_0_DP1:1.4
	RELEASE_4_5_0:1.4
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.4
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.1;
locks; strict;
comment	@# @;


1.42
date	2012.12.16.06.16.58;	author svnexp;	state Exp;
branches;
next	1.41;

1.41
date	2012.11.17.06.01.07;	author svnexp;	state Exp;
branches;
next	1.40;

1.40
date	2012.10.17.19.18.56;	author glarkin;	state Exp;
branches;
next	1.39;

1.39
date	2012.10.17.19.14.19;	author glarkin;	state Exp;
branches;
next	1.38;

1.38
date	2012.03.20.20.13.42;	author glarkin;	state Exp;
branches;
next	1.37;

1.37
date	2011.12.08.23.13.33;	author glarkin;	state Exp;
branches;
next	1.36;

1.36
date	2011.11.23.19.37.24;	author glarkin;	state Exp;
branches;
next	1.35;

1.35
date	2010.10.13.01.09.44;	author glarkin;	state Exp;
branches;
next	1.34;

1.34
date	2010.08.18.19.07.03;	author glarkin;	state Exp;
branches;
next	1.33;

1.33
date	2010.07.07.20.57.24;	author glarkin;	state Exp;
branches;
next	1.32;

1.32
date	2010.06.09.17.29.37;	author glarkin;	state Exp;
branches;
next	1.31;

1.31
date	2010.01.25.23.23.02;	author glarkin;	state Exp;
branches;
next	1.30;

1.30
date	2010.01.19.14.11.58;	author glarkin;	state Exp;
branches;
next	1.29;

1.29
date	2010.01.18.22.38.04;	author glarkin;	state Exp;
branches;
next	1.28;

1.28
date	2009.12.18.01.31.18;	author glarkin;	state Exp;
branches;
next	1.27;

1.27
date	2009.12.15.20.09.13;	author glarkin;	state Exp;
branches;
next	1.26;

1.26
date	2009.05.26.20.25.59;	author glarkin;	state Exp;
branches;
next	1.25;

1.25
date	2009.04.29.20.57.57;	author glarkin;	state Exp;
branches;
next	1.24;

1.24
date	2009.04.25.02.13.46;	author glarkin;	state Exp;
branches;
next	1.23;

1.23
date	2008.09.11.00.30.08;	author glarkin;	state Exp;
branches;
next	1.22;

1.22
date	2008.09.08.20.09.59;	author glarkin;	state Exp;
branches;
next	1.21;

1.21
date	2008.09.07.01.31.55;	author glarkin;	state Exp;
branches;
next	1.20;

1.20
date	2008.07.27.04.30.51;	author linimon;	state Exp;
branches;
next	1.19;

1.19
date	2006.05.13.04.15.06;	author edwin;	state Exp;
branches;
next	1.18;

1.18
date	2003.12.12.22.57.59;	author sergei;	state Exp;
branches;
next	1.17;

1.17
date	2003.10.23.05.42.47;	author sergei;	state Exp;
branches;
next	1.16;

1.16
date	2003.08.26.00.15.32;	author leeym;	state Exp;
branches;
next	1.15;

1.15
date	2003.04.14.15.25.30;	author leeym;	state Exp;
branches;
next	1.14;

1.14
date	2003.04.09.05.41.27;	author leeym;	state Exp;
branches;
next	1.13;

1.13
date	2003.03.23.15.15.56;	author foxfair;	state Exp;
branches;
next	1.12;

1.12
date	2003.02.21.17.35.15;	author kris;	state Exp;
branches;
next	1.11;

1.11
date	2003.02.20.18.59.06;	author knu;	state Exp;
branches;
next	1.10;

1.10
date	2002.11.10.16.47.52;	author lioux;	state Exp;
branches;
next	1.9;

1.9
date	2002.11.06.22.46.49;	author adamw;	state Exp;
branches;
next	1.8;

1.8
date	2002.09.10.14.53.23;	author roberto;	state Exp;
branches;
next	1.7;

1.7
date	2002.06.23.20.39.12;	author pat;	state Exp;
branches;
next	1.6;

1.6
date	2002.06.10.23.51.04;	author pat;	state Exp;
branches;
next	1.5;

1.5
date	2002.04.17.20.48.27;	author pat;	state Exp;
branches;
next	1.4;

1.4
date	2001.03.11.03.14.12;	author will;	state Exp;
branches;
next	1.3;

1.3
date	2000.10.08.10.22.51;	author asami;	state Exp;
branches;
next	1.2;

1.2
date	2000.04.09.18.29.57;	author cpiazza;	state Exp;
branches;
next	1.1;

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


desc
@@


1.42
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308985
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308985 | az | 2012-12-16 06:12:28 +0000 (Sun, 16 Dec 2012) | 5 lines
## SVN ##
## SVN ## - Set default perl version for ports which currently using
## SVN ##   (5.x+ and x < 12) scheme.
## SVN ##
## SVN ## Approved by: bapt@@ (portmgr@@)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Ports collection makefile for:	logcheck
# Date created:		9 December 1999
# Whom:			Dan Langille <dan@@freebsddiary.org>
#
# $FreeBSD: head/security/logcheck/Makefile 308985 2012-12-16 06:12:28Z az $
#

PORTNAME=	logcheck
PORTVERSION=	1.3.15
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_DEBIAN_POOL}
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	glarkin@@FreeBSD.org
COMMENT=	Auditing tool for system logs on Unix boxes

RUN_DEPENDS=	mime-construct:${PORTSDIR}/mail/mime-construct \
		lockfile:${PORTSDIR}/mail/procmail \
		bash:${PORTSDIR}/shells/bash

PORTSCOUT=	limit:^1\.2\.

LOGCHECK_USER=	logcheck
LOGCHECK_UID=	915
LOGCHECK_GROUP=	${LOGCHECK_USER}
LOGCHECK_GID=	${LOGCHECK_UID}

BASEDIR?=	# None. portlint compliance
DBDIR=		${BASEDIR}/var/db/${PORTNAME}
RUNDIR=		${BASEDIR}/var/run/${PORTNAME}

# Enable Perl dependency for logtail script
USE_PERL5=	yes

WRKSRC=		${WRKDIR}/${DISTNAME:S!_!-!}
BINMODE=	755
SHAREMODE=	640
SUB_LIST+=	LOGCHECK_USER=${LOGCHECK_USER} \
		LOGCHECK_UID=${LOGCHECK_UID} \
		LOGCHECK_GROUP=${LOGCHECK_GROUP} \
		LOGCHECK_GID=${LOGCHECK_GID} \
		PW=${PW}
SUB_FILES=	pkg-install pkg-deinstall pkg-message
PLIST_SUB+=	DBDIR=${DBDIR} RUNDIR=${RUNDIR}
CONFIG_DIRS=	cracking.d ignore.d.paranoid ignore.d.server \
		ignore.d.workstation violations.d violations.ignore.d
DOCS=		AUTHORS CHANGES CREDITS LICENSE TODO docs/README*
PORTDOCS=	${DOCS:T}
MAN8=		logcheck.8 logtail.8 logtail2.8

PATCH_LIST=	extra-patch-debian__logcheck.cron.d \
		extra-patch-docs__logcheck.8 \
		extra-patch-etc__logcheck.conf \
		extra-patch-src__logcheck \
		extra-patch-src__logtail2
EXTRA_PATCHES=	${PATCH_LIST:C|^|${WRKDIR}/|g}

.include <bsd.port.pre.mk>

pre-patch:
.for patch in ${PATCH_LIST}
	@@${SED} ${_SUB_LIST_TEMP} ${FILESDIR}/${patch}.in > ${WRKDIR}/${patch}
.endfor

post-patch:
	@@${FIND} ${WRKSRC}/rulefiles -type f -name \*.orig -delete

do-build:
	@@${REINPLACE_CMD} -e 's!/var/log/syslog!/var/log/messages!' \
		${WRKSRC}/etc/logcheck.logfiles
	@@${REINPLACE_CMD} -e "s|#!/usr/bin/perl|#!${PERL}|" \
		${WRKSRC}/src/logtail

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/src/logcheck ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/src/logtail ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/src/logtail2 ${PREFIX}/sbin
	@@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
	@@${INSTALL} -d -o ${LOGCHECK_USER} -g ${LOGCHECK_GROUP} \
		${DBDIR} ${RUNDIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${LOGCHECK_USER}:${LOGCHECK_GROUP} \
		${DBDIR} ${RUNDIR}' >> ${TMPPLIST}
	@@${INSTALL} -d -g ${LOGCHECK_GROUP} ${ETCDIR}
	@@${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/etc/logcheck.conf \
		${ETCDIR}/logcheck.conf.sample
	@@${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/etc/logcheck.logfiles \
		${ETCDIR}/logcheck.logfiles.sample
.for i in ${CONFIG_DIRS}
	@@${INSTALL} -d -g ${LOGCHECK_GROUP} ${ETCDIR}/${i}
	@@${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/rulefiles/linux/${i}/* \
		${ETCDIR}/${i}
.endfor
	@@${INSTALL} -d -g ${LOGCHECK_GROUP} ${DATADIR}/detectrotate
	@@${INSTALL_DATA} -g ${LOGCHECK_GROUP} ${WRKSRC}/src/detectrotate/*.dtr \
		${DATADIR}/detectrotate
.if ${PORT_OPTIONS:MEXAMPLES}
	@@${INSTALL} -d ${EXAMPLESDIR}
	@@${INSTALL_DATA} -m 0644 ${WRKSRC}/debian/logcheck.cron.d \
		${EXAMPLESDIR}/crontab.in
.endif
	@@${ECHO_CMD} '@@exec ${CHGRP} -R ${LOGCHECK_GROUP} \
		${ETCDIR:S|^${PREFIX}/|%D/|} \
		${DATADIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
	@@PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@@${INSTALL_MAN} ${WRKSRC}/docs/*.8 ${MAN8PREFIX}/man/man8

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${INSTALL} -d ${DOCSDIR}
	@@cd ${WRKSRC} && ${INSTALL_DATA} -m 0644 ${DOCS} ${DOCSDIR}
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.41
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/security/logcheck/Makefile 306035 2012-10-17 19:18:56Z glarkin $
d33 1
a33 1
USE_PERL5=	5.8.0+
@


1.40
log
@SVN rev 306035 on 2012-10-17 19:18:56Z by glarkin

- Converted a remaining conditional to OptionsNG

Feature safe:	yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.39
log
@SVN rev 306034 on 2012-10-17 19:14:19Z by glarkin

- Updated to 1.3.15

PR:		ports/172520
Submitted by:	Takefu <takefu@@airport.fm>
Feature safe:	yes
@
text
@d96 1
a96 1
.if !defined(NOPORTEXAMPLES)
@


1.38
log
@- Reset cwd in pkg-plist back to PREFIX before dynamically adding more
  directives to TMPPLIST. Otherwise %D is "/", and the chown commands
  fail during package installation.
- Bumped PORTREVISION

Feature safe:	yes
@
text
@d9 1
a9 2
PORTVERSION=	1.3.14
PORTREVISION=	1
d28 3
a30 2
DBDIR=		/var/db/${PORTNAME}
RUNDIR=		/var/run/${PORTNAME}
d35 1
a35 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
d58 2
d79 2
a80 6
	@@${INSTALL} -d ${DBDIR}
	@@${INSTALL} -d ${RUNDIR}
	${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} ${DBDIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${LOGCHECK_USER}:${LOGCHECK_GROUP} \
		${DBDIR}' >> ${TMPPLIST}
	${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} ${RUNDIR}
d82 3
a84 3
		${RUNDIR}' >> ${TMPPLIST}
	@@${INSTALL} -d ${ETCDIR}
	@@${INSTALL_DATA} ${WRKSRC}/etc/logcheck.conf \
d86 1
a86 1
	@@${INSTALL_DATA} ${WRKSRC}/etc/logcheck.logfiles \
d89 3
a91 2
	@@${INSTALL} -d ${ETCDIR}/${i}
	@@${INSTALL_DATA} ${WRKSRC}/rulefiles/linux/${i}/* ${ETCDIR}/${i}
d93 3
a95 2
	@@${INSTALL} -d ${DATADIR}/detectrotate
	@@${INSTALL_DATA} ${WRKSRC}/src/detectrotate/*.dtr ${DATADIR}/detectrotate
d98 1
a98 1
	@@${INSTALL_DATA} ${WRKSRC}/debian/logcheck.cron.d \
d101 2
a102 5
	${CHOWN} -R root:${LOGCHECK_GROUP} ${ETCDIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R root:${LOGCHECK_GROUP} \
		${ETCDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
	${CHOWN} -R root:${LOGCHECK_GROUP} ${DATADIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R root:${LOGCHECK_GROUP} \
d108 1
a108 1
.if !defined(NOPORTDOCS)
d110 1
a110 2
	@@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
	@@${CHMOD} 644 ${DOCSDIR}/*
d114 1
a114 1
.include <bsd.port.mk>
@


1.37
log
@- Updated to 1.3.14
  ChangeLog: http://packages.debian.org/changelogs/pool/main/l/logcheck/logcheck_1.3.14/changelog

PR:		ports/162810
Submitted by:	Takefu <takefu@@airport.fm>
Feature safe:	yes
@
text
@d10 1
@


1.36
log
@- Updated the PAM ssh rule file to match messages emitted on FreeBSD vs.
  the Linux messages contained in the distro rule file
- Bumped PORTREVISION

PR:		ports/162330
Submitted by:	Shuichi KITAGUCHI <ki@@hh.iij4u.or.jp>
Feature safe:	yes
@
text
@d9 1
a9 2
PORTVERSION=	1.3.13
PORTREVISION=	1
d28 3
d34 1
a34 1
WRKSRC=		${WRKDIR}/${PORTNAME}
d43 1
d76 3
a78 3
	@@${INSTALL} -d /var/db/logcheck
	@@${INSTALL} -d /var/run/logcheck
	${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} /var/db/logcheck
d80 2
a81 2
		/var/db/logcheck' >> ${TMPPLIST}
	${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} /var/run/logcheck
d83 1
a83 1
		/var/run/logcheck' >> ${TMPPLIST}
@


1.35
log
@- Updated to 1.3.13

  Changes:

  logcheck (1.3.13) unstable; urgency=low
    * ignore.d.server/pure-ftpd:
      - fixed user name pattern in logout message, thanks to Simon Breuss
        (LP: #619119)
    * violations.ignore.d/logcheck-sudo:
      - match COMMAND=list and TTY=console, thanks to Michel Messerschmidt
        for the patch (closes: #593482)
    * ignore.d.server/amavisd-new:
      - applied changes by Christian Drage (closes: #594605):
        - IPv6 support for IP addresses
        - allow PASSED SPAM in log
        - optional minus sign after "Hits:"
        - optional quarantine in log line
        - optional Message-ID

PR:		ports/151033
Submitted by:	Anton Yuzhaninov <citrin at citrin dot ru>
@
text
@d10 1
d59 3
@


1.34
log
@- Updated to 1.3.12

PR:		ports/149770
Submitted by:	NAKAJI Hiroyuki <nakaji at jp dot freebsd dot org>
Approved by:	glarkin (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	1.3.12
@


1.33
log
@- Updated to 1.3.10

PR:		ports/146537
Submitted by:	Takefu <takefu at airport dot fm>
Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	1.3.10
@


1.32
log
@- Parameterized more command names and paths to ensure that installation
  works with non-standard build settings.
@
text
@d9 1
a9 2
PORTVERSION=	1.2.69
PORTREVISION=	2
d17 2
a18 1
RUN_DEPENDS=	lockfile:${PORTSDIR}/mail/procmail \
d31 1
a31 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
@


1.31
log
@- Fix permissions on DATADIR so code snippets can be compiled on the
  fly by logtail2.
- Bumped PORTREVISION

PR:		ports/143077, ports/143099
Submitted by:	Berend de Boer <berend@@pobox.com>, Yasuhiro KIMURA <yasu@@utahime.org>
@
text
@d37 2
a38 1
		LOGCHECK_GID=${LOGCHECK_GID}
d106 1
a106 1
	${CHMOD} 644 ${DOCSDIR}/*
@


1.30
log
@- Fix quoting problem created in previous commit
- Bump PORTREVISION

PR:		ports/142966
Submitted by:	Yasuhiro KIMURA <yasu@@utahime.org>
@
text
@d10 1
a10 1
PORTREVISION=	1
d95 3
@


1.29
log
@- Updated to 1.2.69 [1]
- Added PORTSCOUT variable
- Added patches to clean up some paths that violate hier(7)
- Switched from using logtail to logtail2 (supports rotated log files)

PR:		ports/142017
Submitted by:	bsam [1]
@
text
@d10 1
@


1.28
log
@- Parameterized all non-hier(7)-compliant paths in the logcheck script,
  man page and config files, adding support for a custom PREFIX setting.
- Parameterized the shebang line in the logtail script
- Bumped PORTREVISION

PR:		ports/140981
Submitted by:	Dan Langille <dan@@langille.org>
@
text
@d9 1
a9 2
PORTVERSION=	1.2.54
PORTREVISION=	5
d20 2
d42 1
a42 1
MAN8=		logcheck.8 logtail.8
d47 2
a48 1
		extra-patch-src__logcheck
d65 1
d84 2
@


1.27
log
@- Preprocess the single SGML doc file into a man page instead of
  requiring docbook2man as a dependency. Some docbook ports conflict
  with others, and since there's only one file to convert, preprocessing
  is fine.

Reported by:	dan@@langille.org and others
@
text
@d10 1
a10 1
PORTREVISION=	4
d43 11
d57 2
a58 3
	@@${REINPLACE_CMD} -e 's!/etc/logcheck!${ETCDIR}!' \
		-e 's!/usr/share/doc/logcheck-database/README.logcheck-database.gz!${DOCSDIR}/README.logcheck-database!' \
		${WRKSRC}/docs/logcheck.sgml
@


1.26
log
@- Fixed the "Error 255" installation problem when docbook-to-man
  is already installed.  If it's there, use it instead of installing
  docbook2X.
@
text
@d10 1
a10 1
PORTREVISION=	3
a17 8
# If docbook-to-man is present, use it.  Otherwise, install
# docbook2X (docbook2man) because it's much lighter weight.
# If docbook-to-man is present and docbook2X is installed,
# the man page conversion will fail. docbook2X and docbook-4.1
# conflict with each other.
.if !exists(/usr/local/bin/docbook-to-man)
BUILD_DEPENDS=	docbook2man:${PORTSDIR}/textproc/docbook2X
.endif
a48 9
.if exists(/usr/local/bin/docbook-to-man)
	@@docbook-to-man ${WRKSRC}/docs/logcheck.sgml > \
		${WRKSRC}/docs/logcheck.8 2> /dev/null
.else
	@@cd ${WRKSRC}/docs && docbook2man -s \
		${LOCALBASE}/share/docbook2X/xslt/man/docbook.xsl \
		--sgml logcheck.sgml 2> /dev/null \
		&& ${MV} Logcheck.8 logcheck.8
.endif
@


1.25
log
@- Suppress stderr from docbook2man

Reported by:	Various members of freebsd-ports@@
@
text
@d18 6
d25 1
d57 4
d62 1
a62 1
		/usr/local/share/docbook2X/xslt/man/docbook.xsl \
d65 1
@


1.24
log
@- Switched BUILD_DEPENDS from textproc/docbook-to-man to
  textproc/docbook2X and saved building about 100 extra ports just
  to convert an SGML file to a man page
- Bumped PORTREVISION

Reported by:	n j <nino80 at gmail dot com>
@
text
@d52 2
a53 1
		--sgml logcheck.sgml && ${MV} Logcheck.8 logcheck.8
@


1.23
log
@- Fixed logcheck script silent failure in previous commit
- Added handling for crontab installation problems
- Incorported security fixes from PR opened after previous commit
- Added UPDATING entry since configuration options have changed
  fairly significantly

PR:		ports/122842
Submitted by:	Cezary Morga <cm@@therek.net>
PR:		ports/127255
Submitted by:	Yasuhiro KIMURA <yasu at utahime dot org>
Reviewed by:	glarkin
Approved by:	beech (mentor, implicit)
Approved by:	portmgr (marcus)
Security:	Incorrect addition of logcheck user to wheel group
@
text
@d10 1
a10 1
PORTREVISION=	2
d18 1
a18 1
BUILD_DEPENDS=	docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
d45 1
a45 1
	${REINPLACE_CMD} -e 's!/var/log/syslog!/var/log/messages!' \
d47 1
a47 1
	${REINPLACE_CMD} -e 's!/etc/logcheck!${ETCDIR}!' \
d50 3
a52 1
	docbook-to-man ${WRKSRC}/docs/logcheck.sgml > ${WRKSRC}/docs/logcheck.8
@


1.22
log
@- Fixed left-over directory problem
- Added entries for logcheck user in UIDs and GIDs
- Fixed package building problems (perms and empty dir creation)

Reported by:	QA Tindy
Approved by:	portmgr (erwin)
@
text
@d10 1
a10 1
PORTREVISION=	1
d12 1
a12 2
MASTER_SITES=	ftp://ftp.debian.org/debian/pool/main/l/logcheck/ \
		http://ftp.de.debian.org/debian/pool/main/l/logcheck/
d20 9
a28 2
		bash:${PORTSDIR}/shells/bash \
		perl:${PORTSDIR}/lang/perl5
d33 4
a43 3
LOGCHECK_USER=	logcheck
LOGCHECK_GROUP=	${LOGCHECK_USER}

d46 4
a49 4
	${WRKSRC}/etc/logcheck.logfiles
	${REINPLACE_CMD} -e 's!/etc/logcheck!/usr/local/etc/logcheck!' \
	-e 's!/usr/share/doc/logcheck-database/README.logcheck-database.gz!${DOCSDIR}/README.logcheck-database!' \
	${WRKSRC}/docs/logcheck.sgml
d56 1
a56 1
	@@${INSTALL} -d /var/lib/logcheck
d58 1
a58 1
	${CHOWN} ${LOGCHECK_USER}:${LOGCHECK_GROUP} /var/lib/logcheck
d60 1
a60 1
		/var/lib/logcheck' >> ${TMPPLIST}
d65 4
a68 2
	@@${INSTALL_DATA} ${WRKSRC}/etc/logcheck.conf ${ETCDIR}/logcheck.conf.sample
	@@${INSTALL_DATA} ${WRKSRC}/etc/logcheck.logfiles ${ETCDIR}/logcheck.logfiles.sample
d75 2
a76 1
	@@${INSTALL_DATA} ${WRKSRC}/debian/logcheck.cron.d ${EXAMPLESDIR}/crontab.in
@


1.21
log
@- Updated to 1.2.54
- Replaced hard-coded paths in pkg-plist with variables
- Cleaned up installation commands
- Moved crontab file to EXAMPLESDIR and updated pkg-install.in
  to handle port knob NOPORTEXAMPLES
- Regenerated patch files with "make makepatch"

PR:		ports/122842
Submitted by:	Cezary Morga <cm at therek dot net>
Approved by:	beech (mentor, implicit)
@
text
@d10 1
d34 3
d51 6
a56 2
	${CHOWN} logcheck:logcheck /var/lib/logcheck
	${CHOWN} logcheck:logcheck /var/run/logcheck
a63 1
	@@${INSTALL} -d ${DOCSDIR}
d68 3
a70 1
	${CHOWN} -R root:logcheck ${ETCDIR}
@


1.20
log
@Reset sergei@@ due to maintainer-timeouts and no response to email.

Hat:		portmgr
@
text
@d9 1
a9 2
PORTVERSION=	1.1.1
PORTREVISION=	4
d11 3
a13 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	sentrytools
d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
d18 14
a31 10
# Install binaries and config files readable to root only
BINMODE=	700
SHAREMODE=	600

LOGCHECK_TMP?=	/var/run/logcheck
PLIST_SUB+=	LOGCHECK_TMP=${LOGCHECK_TMP}

CONFIG_FILES=	logcheck.hacking logcheck.ignore \
		logcheck.violations logcheck.violations.ignore
DOCS=		CREDITS INSTALL README README.how.to.interpret README.keywords
d34 6
a39 5
	cd ${WRKSRC}/src && ${CC} ${CFLAGS} -o logtail logtail.c
	${REINPLACE_CMD} -e 's!/usr/local/bin/logtail!${PREFIX}/bin/logtail!' \
		-e 's!/usr/local/etc/tmp!${LOGCHECK_TMP}!' \
		-e 's!/usr/local/etc/logcheck!${PREFIX}/etc/logcheck!' \
		${WRKSRC}/systems/freebsd/logcheck.sh
d42 13
a54 5
	${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${PREFIX}/etc
	@@${MKDIR} ${EXAMPLESDIR}
.for f in ${CONFIG_FILES}
	@@${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${f} ${PREFIX}/etc/${f}.sample
d56 10
a65 2
	${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${LOGCHECK_TMP}
	${CHOWN} root:wheel ${LOGCHECK_TMP}
d67 3
a69 2
	@@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
d71 1
@


1.19
log
@Remove USE_REINPLACE from all categories starting with S
@
text
@d15 1
a15 1
MAINTAINER=	sergei@@FreeBSD.org
@


1.18
log
@- Add /var/log/security to the default list of input files
- Bump PORTREVISION

PR:		56578
Submitted by:	KIMURA Yasuhiro <yasu@@utahime.org>
@
text
@a17 2
USE_REINPLACE=	yes

@


1.17
log
@Change to my @@FreeBSD.org address.

Approved by:	krion
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.16
log
@- Change MASTER_SITES: the project finally found a new home
(thanks Paulius Bulotas for reporting)
- Avoid ever touching existing configs by installing example files
  with .sample suffix into ${PREFIX}/etc; do not install duplicates
  in ${EXAMPLESDIR}
- Removed unneeded @@cwd in pkg-plist
- Bump PORTREVISION due to changed package

PR:		55971
Submitted by:	Sergei Kolobov <sergei@@kolobov.com>
@
text
@d15 1
a15 1
MAINTAINER=	sergei@@kolobov.com
@


1.15
log
@- Do not overwrite the existing config files when installing as a port or
as a package
- Bump PORTREVISION

Reported by:	Forrest Aldrich <forrie@@forrie.com>
PR:		50915
Submitted by:	Sergei Kolobov <sergei@@kolobov.com>
@
text
@d10 1
a10 1
PORTREVISION=	2
d12 2
a13 4
MASTER_SITES=	ftp://sensimilia.eu.org/pub/software/sys/ \
		http://www.ukc.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \
		http://people.FreeBSD.org/~foxfair/distfiles/
DISTNAME=	logsentry-${PORTVERSION}
a19 2
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

d42 2
a43 4
.for file in ${CONFIG_FILES}
	@@${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${EXAMPLESDIR}
	@@${TEST} -f ${PREFIX}/etc/${file} || \
	  ${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${PREFIX}/etc
@


1.14
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
@d10 1
a10 1
PORTREVISION=	1
d45 6
a50 4
	${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/systems/freebsd && \
		${INSTALL_DATA} ${CONFIG_FILES} ${EXAMPLESDIR} && \
		${INSTALL_DATA} ${CONFIG_FILES} ${PREFIX}/etc
d54 1
a54 1
	${MKDIR} ${DOCSDIR}
@


1.13
log
@PR:		49064
Submitted by:	Yonatan@@xpert.com <Yonatan@@xpert.com>
Switch MASTER_SITE to make this port fetchable.
@
text
@d10 1
a13 1
		http://www.psionic.com/downloads/ \
d17 1
a17 1
MAINTAINER=	ports@@FreeBSD.org
d20 1
a20 1
BROKEN=		"Changes permissions on /tmp to mode 0700"
a21 1
USE_REINPLACE=	yes
a22 1
PKGMESSAGE=	${WRKDIR}/MESSAGE
d24 16
a39 3
pre-configure:
	${REINPLACE_CMD} -e "s@@/usr/local/etc/tmp@@/tmp@@g; \
		s@@/usr/local@@${PREFIX}@@" ${WRKSRC}/Makefile \
a40 4
	${REINPLACE_CMD} -e "s@@/bin/mkdir@@${MKDIR}@@g" ${WRKSRC}/Makefile

post-build:
	@@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
d42 13
a54 2
post-install:
	@@${CAT} ${PKGMESSAGE}
@


1.12
log
@Mark BROKEN: changes permissions on /tmp to 0700
@
text
@d11 4
a14 1
MASTER_SITES=	http://www.psionic.com/downloads/
@


1.11
log
@De-pkg-comment.
@
text
@d17 2
@


1.10
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@d15 1
@


1.9
log
@Use PORTCOMMENT in the Makefile, and whack the pkg-comment.

Approved by:	pat
@
text
@a15 2
PORTCOMMENT=	Auditing tool for system logs on Unix boxes

@


1.8
log
@${PREFIX}/var/tmp is obviously wrong. Use /tmp instead.

PR:		ports/41815
Submitted by:	Dan Langille <danl@@freebsddiary.org> (fix by me)
@
text
@d16 2
@


1.7
log
@PERL -> REINPLACE_CMD

PR:		ports/39729, ports/39727, ports/39726, ports/39724
PR:		ports/39722, ports/39721, ports/39720, ports/39719, ports/39718
Submitted by:	Scott Flatman <sf@@dsinw.com>
@
text
@d21 1
a21 1
	${REINPLACE_CMD} -e "s@@/usr/local/etc/tmp@@${PREFIX}/var/tmp@@g; \
@


1.6
log
@- chase distfile naming
- whitespace nit
- remove a directory from pkg-plist which is not actually created
- make prefix safe

PR:		ports/39111
Submitted by:	Erwin Lansing <erwin@@lansing.dk>
@
text
@d16 1
d21 1
a21 1
	${PERL} -pi -e "s@@/usr/local/etc/tmp@@${PREFIX}/var/tmp@@g; \
d24 1
a24 1
	${PERL} -pi -e "s@@/bin/mkdir@@${MKDIR}@@g" ${WRKSRC}/Makefile
@


1.5
log
@Give maintainership back to ports@@

PR:		37191
Submitted by:	maintainer
@
text
@d11 2
a12 1
MASTER_SITES=	http://www.psionic.com/tools/
d16 1
d19 4
a22 2
pre-configure:                                        
	${PERL} -pi -e "s@@/usr/local/etc/tmp@@${PREFIX}/var/tmp@@g" ${WRKSRC}/Makefile ${WRKSRC}/systems/freebsd/logcheck.sh
@


1.4
log
@Eww.  Cull etc/tmp in favor of var/tmp (even though this is not what
hier(7) specifically states, it's still better than screwing around with
stuff outside of ${PREFIX}).

PR:		25672
Submitted by:	Dan Langille <dan@@langille.org>
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/logcheck/Makefile,v 1.3 2000/10/08 10:22:51 asami Exp $
d13 1
a13 1
MAINTAINER=	ports@@freebsddiary.org
@


1.3
log
@Change PKGDIR from pkg/ to .  Also fix places where ${PKGDIR} is
spelled out (many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type
fixes that shouldn't have been necessary) and the string "/pkg/"
appear.
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/logcheck/Makefile,v 1.2 2000/04/09 18:29:57 cpiazza Exp $
d16 4
@


1.2
log
@Update with the new PORTNAME/PORTVERSION variables
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/logcheck/Makefile,v 1.1 1999/12/25 16:10:58 steve Exp $
d18 1
a18 1
	@@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGDIR}/MESSAGE > ${PKGMESSAGE}
@


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
@a1 1
# Version required:	1.1.1
d5 1
a5 1
# $FreeBSD$
d8 2
a9 1
DISTNAME=	logcheck-1.1.1
@

