head	1.33;
access;
symbols
	RELEASE_8_3_0:1.32
	RELEASE_9_0_0:1.32
	RELEASE_7_4_0:1.32
	RELEASE_8_2_0:1.32
	RELEASE_6_EOL:1.32
	RELEASE_8_1_0:1.32
	RELEASE_7_3_0:1.31
	RELEASE_8_0_0:1.31
	RELEASE_7_2_0:1.30
	RELEASE_7_1_0:1.30
	RELEASE_6_4_0:1.30
	RELEASE_5_EOL:1.29
	RELEASE_7_0_0:1.27
	RELEASE_6_3_0:1.27
	PRE_XORG_7:1.27
	RELEASE_4_EOL:1.27
	RELEASE_6_2_0:1.26
	RELEASE_6_1_0:1.25
	RELEASE_5_5_0:1.25
	RELEASE_6_0_0:1.22
	RELEASE_5_4_0:1.21
	RELEASE_4_11_0:1.21
	RELEASE_5_3_0:1.21
	RELEASE_4_10_0:1.19
	RELEASE_5_2_1:1.18
	RELEASE_5_2_0:1.18
	RELEASE_4_9_0:1.16
	RELEASE_5_1_0:1.13
	RELEASE_4_8_0:1.12
	RELEASE_5_0_0:1.9
	RELEASE_4_7_0:1.7
	RELEASE_4_6_2:1.6
	RELEASE_4_6_1:1.6
	RELEASE_4_6_0:1.6
	RELEASE_5_0_DP1:1.6
	RELEASE_4_5_0:1.5
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.3;
locks; strict;
comment	@# @;


1.33
date	2012.11.17.06.01.01;	author svnexp;	state Exp;
branches;
next	1.32;

1.32
date	2010.03.20.14.06.20;	author miwi;	state Exp;
branches;
next	1.31;

1.31
date	2009.08.19.00.33.23;	author araujo;	state Exp;
branches;
next	1.30;

1.30
date	2008.07.24.12.00.10;	author garga;	state Exp;
branches;
next	1.29;

1.29
date	2008.04.25.19.04.08;	author miwi;	state Exp;
branches;
next	1.28;

1.28
date	2007.12.27.17.19.22;	author tabthorpe;	state Exp;
branches;
next	1.27;

1.27
date	2006.11.24.22.58.31;	author miwi;	state Exp;
branches;
next	1.26;

1.26
date	2006.05.13.04.15.00;	author edwin;	state Exp;
branches;
next	1.25;

1.25
date	2005.10.28.16.50.11;	author garga;	state Exp;
branches;
next	1.24;

1.24
date	2005.10.28.12.07.35;	author garga;	state Exp;
branches;
next	1.23;

1.23
date	2005.10.27.14.30.29;	author garga;	state Exp;
branches;
next	1.22;

1.22
date	2005.04.14.18.42.15;	author leeym;	state Exp;
branches;
next	1.21;

1.21
date	2004.09.02.11.42.23;	author pav;	state Exp;
branches;
next	1.20;

1.20
date	2004.07.06.15.27.51;	author pav;	state Exp;
branches;
next	1.19;

1.19
date	2004.02.10.21.35.03;	author linimon;	state Exp;
branches;
next	1.18;

1.18
date	2003.10.01.21.08.48;	author krion;	state Exp;
branches;
next	1.17;

1.17
date	2003.09.26.22.08.33;	author edwin;	state Exp;
branches;
next	1.16;

1.16
date	2003.09.04.13.03.05;	author edwin;	state Exp;
branches;
next	1.15;

1.15
date	2003.08.15.06.17.16;	author kris;	state Exp;
branches;
next	1.14;

1.14
date	2003.06.25.16.40.08;	author mich;	state Exp;
branches;
next	1.13;

1.13
date	2003.04.09.08.22.12;	author kevlo;	state Exp;
branches;
next	1.12;

1.12
date	2003.02.21.13.26.42;	author knu;	state Exp;
branches;
next	1.11;

1.11
date	2003.02.02.13.40.13;	author nork;	state Exp;
branches;
next	1.10;

1.10
date	2003.01.11.03.18.51;	author pat;	state Exp;
branches;
next	1.9;

1.9
date	2002.11.04.02.15.26;	author edwin;	state Exp;
branches;
next	1.8;

1.8
date	2002.10.25.20.48.02;	author obraun;	state Exp;
branches;
next	1.7;

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

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

1.5
date	2001.09.22.06.44.04;	author sf;	state Exp;
branches;
next	1.4;

1.4
date	2001.05.11.14.34.07;	author kevlo;	state Exp;
branches;
next	1.3;

1.3
date	2001.04.17.12.13.08;	author roam;	state Exp;
branches;
next	1.2;

1.2
date	2001.04.17.05.56.57;	author will;	state Exp;
branches;
next	1.1;

1.1
date	2001.04.07.00.48.49;	author will;	state Exp;
branches;
next	;


desc
@@


1.33
log
@Switch exporter over
@
text
@# Ports collection makefile for:	chkrootkit
# Date created:				13 Mar 2001
# Whom:					Luiz Eduardo R. Cordeiro
#
# $FreeBSD: head/security/chkrootkit/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	chkrootkit
PORTVERSION=	0.49
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.pangeia.com.br/pub/seg/pac/ \
		ftp://gd.tuwien.ac.at/infosys/security/chkrootkit/ \
		ftp://ftp.digitalvoodoo.org/pub/mirrors/chkrootkit/ \
		http://www.spenneberg.org/chkrootkit-mirror/files/ \
		http://www.mirrors.wiretapped.net/security/host-security/chkrootkit/ \
		http://ftp.uni-stuttgart.de/pub/security/unix/forensics/chkrootkit/ \
		http://ftp.bit.nl/mirror/chkrootkit/ \
		http://chkrootkit.mirror.fr/

MAINTAINER=	cordeiro@@nic.br
COMMENT=	A tool to locally check for signs of a rootkit

SCRIPT_FILES=	chkrootkit
PROG_FILES=	chklastlog \
		chkwtmp \
		chkutmp \
		chkproc \
		chkdirs \
		ifpromisc \
		check_wtmpx \
		strings
ALL_TARGET=	${SCRIPT_FILES} ${PROG_FILES}
PORTDOCS=	ACKNOWLEDGMENTS \
		COPYRIGHT \
		README \
		README.chklastlog \
		README.chkwtmp

PLIST_FILES=	${ALL_TARGET:C,^,sbin/,}

BINMODE=	0700

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 900007
BROKEN=		fails to build with new utmpx
.endif

post-patch:
	@@${REINPLACE_CMD} -E "s/^(CC|CFLAGS)[^a-zA-Z]*=/\1 ?=/" \
		${WRKSRC}/Makefile

.for prog in ${PROG_FILES}
	@@${REINPLACE_CMD} -E 's,\./(${prog}),${PREFIX}/sbin/\1,g' \
		${WRKSRC}/chkrootkit
.endfor

do-install:
	${INSTALL_SCRIPT}  ${SCRIPT_FILES:C,^,${WRKSRC}/,} ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${PROG_FILES:C,^,${WRKSRC}/,}   ${PREFIX}/sbin
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:C,^,${WRKSRC}/,} ${DOCSDIR}
.endif

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


1.32
log
@- Mark BROKEN on HEAD: fails to build with new utmpx

Reported by:	pointyhat
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.31
log
@- Update to 0.49.

PR:		ports/137853
Submitted by:	Sylvio Cesar <scjamorim@@bsd.com.br>
Approved by:	Luiz Eduardo Roncato Cordeiro <cordeiro@@cert.br> (maintainer)
@
text
@d43 6
d66 1
a66 1
.include <bsd.port.mk>
@


1.30
log
@No functional changes, just try to make Makefile a bit better:

- Remove conditional to set PORTDOCS
- s/pre-patch/post-patch/
- Change Makefile's reinplace to use ?= instead of comment CC and CFLAGS lines
  and remove MAKE_ENV declaration
- Remove redundances of program names, just set it one time and use the vars to
  repeat names

Approved by:	maintainer by email
@
text
@d9 1
a9 1
PORTVERSION=	0.48
@


1.29
log
@- Respect CC

PR:		122941
Submitted by:	Frank Fenor <frank@@fenor.de>
Approved by:	maintainer
@
text
@d23 15
a37 2
MAKE_ENV+=	CC="${CC}"
ALL_TARGET=	chkrootkit chklastlog chkwtmp chkutmp chkproc chkdirs ifpromisc check_wtmpx strings
d41 1
a41 3
.if !defined(NOPORTDOCS)
PORTDOCS=	ACKNOWLEDGMENTS COPYRIGHT README README.chklastlog README.chkwtmp
.endif
d43 3
a45 1
BINMODE=	0700
d47 2
a48 11
pre-patch:
	${REINPLACE_CMD} -e "s/^CC/#CC/; s/^CFLAGS/#CFLAGS/" ${WRKSRC}/Makefile
	${REINPLACE_CMD} -e \
		's#\./chklastlog#${PREFIX}/sbin/chklastlog#g; \
		s#\./chkwtmp#${PREFIX}/sbin/chkwtmp#g; \
		s#\./chkutmp#${PREFIX}/sbin/chkutmp#g; \
		s#\./chkproc#${PREFIX}/sbin/chkproc#g; \
		s#\./chkdirs#${PREFIX}/sbin/chkdirs#g; \
		s#\./check_wtmpx#${PREFIX}/sbin/check_wtmpx#g; \
		s#\./strings#${PREFIX}/sbin/strings#g; \
		s#\./ifpromisc#${PREFIX}/sbin/ifpromisc#g;' \
d50 1
d53 2
a54 9
	${INSTALL_SCRIPT}  ${WRKSRC}/chkrootkit ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/chklastlog ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/chkwtmp    ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/chkutmp    ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/chkproc    ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/chkdirs    ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/ifpromisc  ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/check_wtmpx  ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/strings  ${PREFIX}/sbin
@


1.28
log
@- Update to 0.48
- Remove pre-everything (no more false positives)
- Remove patches (extra_patches and patch in files directory)

PR:		ports/118930
Submitted by:	Philippe Audeoud <jadawin tuxaco.net>
Approved by:	Luiz Eduardo Roncato Cordeiro <cordeiro nic.br> (maintainer)
@
text
@d23 1
@


1.27
log
@- Update to 0.47

PR:		ports/105816
Submitted by:	Luiz Eduardo Roncato Cordeiro <cordeiro@@cert.br> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	0.47
a32 20
.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 600000

EXTRA_PATCHES=	${PATCHDIR}/600000-patch-chkproc.c

pre-everything::
	@@${ECHO_CMD} "######################################################################"
	@@${ECHO_CMD} "#"
	@@${ECHO_CMD} "# WARNING: chkproc process gives false positives values on"
	@@${ECHO_CMD} "#          FreeBSD >= 6.x, and, due this fact, the getpriority code"
	@@${ECHO_CMD} "#          added to identify LKMs was removed."
	@@${ECHO_CMD} "#          So, use with caution."
	@@${ECHO_CMD} "#"
	@@${ECHO_CMD} "#          This error will be fixed in the next chkrootkit version."
	@@${ECHO_CMD} "#"
	@@${ECHO_CMD} "######################################################################"

.endif

d61 1
a61 1
.include <bsd.port.post.mk>
@


1.26
log
@Remove USE_REINPLACE from all categories starting with S
@
text
@d9 1
a9 1
PORTVERSION=	0.46a
d33 20
d81 1
a81 1
.include <bsd.port.mk>
@


1.25
log
@- Unbreak: Update to 0.46a

Approved by:	maintainer
@
text
@a22 2
USE_REINPLACE=	yes

@


1.24
log
@chkproc sends a 25 signal to init causing a reboot after a 30s sleep

Mark it as BROKEN until the problem is fixed.

Submitted by:	maintainer (by email)
@
text
@d9 1
a9 1
PORTVERSION=	0.46
a22 2
BROKEN=	"chkproc sends a 25 signal to init causing a reboot after a 30s sleep"

@


1.23
log
@- Update to 0.46

Approved by:	maintainer
@
text
@d23 2
@


1.22
log
@- Update to chkrookit version 0.45 [1]
- utilize PORTDOCS, DOCSDIR and PLIST_FILES

PR:		[1] 79865
Submitted by:	[1] Luiz Eduardo Roncato Cordeiro <cordeiro@@nic.br>
@
text
@d9 1
a9 1
PORTVERSION=	0.45
@


1.21
log
@- Update to 0.44

PR:		ports/71249
Submitted by:	Luiz Eduardo Roncato Cordeiro <cordeiro@@nic.br> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	0.44
d11 8
a18 1
MASTER_SITES=	ftp://ftp.pangeia.com.br/pub/seg/pac/
d25 1
a25 1
ALL_TARGET=	chkrootkit chklastlog chkwtmp chkproc chkdirs ifpromisc check_wtmpx strings
d27 5
a31 1
DOCFILES=	ACKNOWLEDGMENTS COPYRIGHT README README.chklastlog README.chkwtmp
a34 2
.include <bsd.port.pre.mk>

d40 1
d52 1
d58 3
a60 3
.if	!defined(NOPORTDOCS)
	@@${MKDIR} ${PREFIX}/share/doc/chkrootkit
	${INSTALL_DATA} ${DOCFILES:C,^,${WRKSRC}/,} ${PREFIX}/share/doc/chkrootkit
d63 1
a63 1
.include <bsd.port.post.mk>
@


1.20
log
@- Mark IGNORE for now

PR:		ports/68726
Submitted by:	Luiz Eduardo Roncato Cordeiro <cordeiro@@nic.br> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	0.43
a14 2

IGNORE=		is reporting false positives on FreeBSD 4.10 and 5.x. Next release in few weeks
@


1.19
log
@Update to 0.43:

  C++ comments removed from chkproc.c.  New rootkits detected: AjaKit
  and zaRwT.  New CGI backdoors detected.  ifpromisc.c: better detection
  of promisc mode on newer Linux kernels.  New command line option
  (-n) to skip NFS mounted dirs. Minor bug corrections.

PR:		ports/62577
Submitted by:	Luiz E. R. Cordeiro <cordeiro@@nic.br> (maintainer)
@
text
@d16 2
@


1.18
log
@- Update to version 0.42b

PR:		57477
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	0.42b
@


1.17
log
@Update port: security/chkrootkit: upgrade to version 0.42

	Version upgrade from 0.41 to 0.42.
	It works on FreeBSD 2.2.X, 3.X, 4.X and 5.X.

PR:		ports/56757
Submitted by:	Luiz Eduardo Roncato Cordeiro <cordeiro@@nic.br>
@
text
@d9 1
a9 1
PORTVERSION=	0.42
@


1.16
log
@Teach security/chkrootkit

	I finnaly got fed up with that FAQ about chkrootkit. The
	solution was either to add a Q+A to the FAQ or fix the port.

	This introduce a new variable, FreeBSD5, that is set to
	"yes" if we're running FreeBSD 5 or higher.

	This variable is used to fix the tests of the following
	binaries, so they would DTRT on FreeBSD 5: chfn chsh date
	ls ps

	I also fixed a bug in the cheking of vdir, but it's irrelevant
	for FreeBSD.

Informed maintainer.

PR:		ports/55919
Submitted by:	Yonatan@@xpert.com <Yonatan@@xpert.com>
@
text
@d9 1
a9 1
PORTVERSION=	0.41
d13 1
a13 1
MAINTAINER=	cordeiro@@luinil.nic.br
d20 1
a20 1
DOCFILES=	COPYRIGHT README README.chklastlog README.chkwtmp
@


1.15
log
@Mark IGNORE on 5.x: chkrootkit reports false positives

Inspired by:	Yet another "have I been hacked" email on questions@@
@
text
@a25 4
.if ${OSVERSION} >= 500000
IGNORE=		"Reports false positives on 5.x"
.endif

@


1.14
log
@Update to 0.41

PR:		53675
Submitted by:	maintainer
Approved by:	roberto (mentor)
@
text
@d24 6
d56 1
a56 1
.include <bsd.port.mk>
@


1.13
log
@Update to 0.40

PR: 50722
Submitted by: Michael L. Hostbaek <mich@@freebsdcluster.org>
@
text
@d9 1
a9 1
PORTVERSION=	0.40
@


1.12
log
@De-pkg-comment.
@
text
@d9 1
a9 1
PORTVERSION=	0.39a
d18 1
a18 1
ALL_TARGET=	chkrootkit chklastlog chkwtmp chkproc chkdirs ifpromisc 
d31 2
d43 2
@


1.11
log
@Update to 0.39a.

PR:		ports/47735
Submitted by:	Luiz Eduardo Roncato Cordeiro <cordeiro@@luinil.nic.br>
		(maintainer)
@
text
@d14 1
@


1.10
log
@Update to 0.38

PR:		ports/46952
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	0.38
@


1.9
log
@PERL -> REINPLACE
Noticed on: bento
@
text
@d9 1
a9 1
PORTVERSION=	0.37
d17 1
a17 1
ALL_TARGET=	chkrootkit chklastlog chkwtmp chkproc ifpromisc 
d29 1
d38 1
@


1.8
log
@Upgrade to 0.37.

PR:		44468
Submitted by:	maintainer
@
text
@d15 2
d24 2
a25 2
	${PERL} -pi -e "s/^CC/#CC/; s/^CFLAGS/#CFLAGS/" ${WRKSRC}/Makefile
	${PERL} -pi -e \
@


1.7
log
@Update to 0.36

PR:		ports/39475
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	0.36
d15 1
a15 1
ALL_TARGET=	chkrootkit chklastlog chkwtmp ifpromisc
a19 1
WRKSRC=		${WRKDIR}/${PORTNAME}-pre-${PORTVERSION}
d26 1
d34 1
@


1.6
log
@Update to 0.35

PR:		34485
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	0.35
d13 1
a13 1
MAINTAINER=	cordeiro@@iqm.unicamp.br
d19 3
d27 1
a27 1
		s#\./ifpromisc#${PREFIX}/sbin/ifpromisc#g; ' \
@


1.5
log
@update to 0.34.

PR:		30709
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/chkrootkit/Makefile,v 1.4 2001/05/11 14:34:07 kevlo Exp $
d9 1
a9 1
PORTVERSION=	0.34
@


1.4
log
@Update to 0.32

PR: 27257
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/chkrootkit/Makefile,v 1.3 2001/04/17 12:13:08 roam Exp $
d9 1
a9 1
PORTVERSION=	0.32
d17 1
a17 1
DOCFILES=	COPYRIGHT README.chklastlog README.chkwtmp
@


1.3
log
@Update to 0.31, lots of cleanup, add NOPORTDOCS handling.

PR:		26643
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/security/chkrootkit/Makefile,v 1.2 2001/04/17 05:56:57 will Exp $
d9 1
a9 1
PORTVERSION=	0.31
@


1.2
log
@Fix checksum problem on bento by updating to 0.31.  Also start using the
versioned distfiles since they are available.
@
text
@d5 1
a5 1
# $FreeBSD$
a14 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
d17 2
d20 7
a26 8
	@@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
	@@${SED} -e "s/^CC/#CC/g" -e "s/^CFLAGS/#CFLAGS/g" \
		${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
	@@${MV} ${WRKSRC}/chkrootkit ${WRKSRC}/chkrootkit.orig
	@@${SED} -e 's#\./chklastlog#${PREFIX}/sbin/chklastlog#' \
		-e 's#\./chkwtmp#${PREFIX}/sbin/chkwtmp#' \
		-e 's#\./ifpromisc#${PREFIX}/sbin/ifpromisc#' \
		${WRKSRC}/chkrootkit.orig > ${WRKSRC}/chkrootkit
d32 1
d34 2
a35 2
	${CP} -R ${WRKSRC}/COPY*   ${PREFIX}/share/doc/chkrootkit
	${CP} -R ${WRKSRC}/README* ${PREFIX}/share/doc/chkrootkit
@


1.1
log
@Add chkrootkit 0.30, a tool to locally check for signs of a rootkit.

PR:		26115
Submitted by:	Luiz Eduardo R. Cordeiro
@
text
@d9 1
a9 1
PORTVERSION=	0.30
a11 1
DISTNAME=	${PORTNAME}
@

