From root@panic.iqm.unicamp.br  Tue Apr 17 04:44:06 2001
Return-Path: <root@panic.iqm.unicamp.br>
Received: from panic.iqm.unicamp.br (panic.iqm.unicamp.br [143.106.51.4])
	by hub.freebsd.org (Postfix) with ESMTP id D0CDF37B424
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Apr 2001 04:44:05 -0700 (PDT)
	(envelope-from root@panic.iqm.unicamp.br)
Received: by panic.iqm.unicamp.br (V-MTA, from userid 0)
	id 2B6F8D63A; Tue, 17 Apr 2001 08:43:50 -0300 (BRT)
Message-Id: <20010417114350.2B6F8D63A@panic.iqm.unicamp.br>
Date: Tue, 17 Apr 2001 08:43:50 -0300 (BRT)
From: cordeiro@panic.iqm.unicamp.br
Reply-To: cordeiro@panic.iqm.unicamp.br
To: FreeBSD-gnats-submit@freebsd.org
Cc: cordeiro@panic.iqm.unicamp.br
Subject: Update port: security/chkrootkit: upgrade to version 0.31
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         26643
>Category:       ports
>Synopsis:       Update port: security/chkrootkit: upgrade to version 0.31
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 17 04:50:00 PDT 2001
>Closed-Date:    Tue Apr 17 05:13:57 PDT 2001
>Last-Modified:  Tue Apr 17 05:14:58 PDT 2001
>Originator:     Luiz Eduardo Roncato Cordeiro
>Release:        FreeBSD 4.3-RC i386
>Organization:
Chemistry Institute - UNICAMP
>Environment:
System: FreeBSD panic.iqm.unicamp.br 4.3-RC FreeBSD 4.3-RC #11: Fri Mar 30 09:43:19 BRT 2001 root@panic.iqm.unicamp.br:/usr/src/sys/compile/PANIC i386


>Description:

Upgrade from chrootkit 0.30 to chkrootkit 0.31.

>How-To-Repeat:
>Fix:

# 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:
#
#	chkrootkit
#	chkrootkit/pkg-comment
#	chkrootkit/Makefile
#	chkrootkit/pkg-descr
#	chkrootkit/pkg-plist
#	chkrootkit/distinfo
#
echo c - chkrootkit
mkdir -p chkrootkit > /dev/null 2>&1
echo x - chkrootkit/pkg-comment
sed 's/^X//' >chkrootkit/pkg-comment << 'END-of-chkrootkit/pkg-comment'
XA tool to locally check for signs of a rootkit
END-of-chkrootkit/pkg-comment
echo x - chkrootkit/Makefile
sed 's/^X//' >chkrootkit/Makefile << 'END-of-chkrootkit/Makefile'
X# Ports collection makefile for:  chkrootkit
X# Date created:			  13 Mar 2001
X# Whom:				  Luiz Eduardo R. Cordeiro
X#
X# $FreeBSD$
X#
X
XPORTNAME=	chkrootkit
XPORTVERSION=	0.31
XCATEGORIES=	security
XMASTER_SITES=	ftp://ftp.pangeia.com.br/pub/seg/pac/
XDISTNAME=	${PORTNAME}-${PORTVERSION}
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	cordeiro@iqm.unicamp.br
X
XALL_TARGET=	chkrootkit chklastlog chkwtmp ifpromisc
X
Xpre-patch:
X	@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
X	@${SED} -e "s/^CC/#CC/g" -e "s/^CFLAGS/#CFLAGS/g" \
X		${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
X	@${MV} ${WRKSRC}/chkrootkit ${WRKSRC}/chkrootkit.orig
X	@${SED} -e 's#\./chklastlog#${PREFIX}/sbin/chklastlog#' \
X                -e 's#\./chkwtmp#${PREFIX}/sbin/chkwtmp#' \
X                -e 's#\./ifpromisc#${PREFIX}/sbin/ifpromisc#' \
X		${WRKSRC}/chkrootkit.orig > ${WRKSRC}/chkrootkit
Xdo-install:
X	${INSTALL_SCRIPT}  ${WRKSRC}/chkrootkit ${PREFIX}/sbin
X	${INSTALL_PROGRAM} ${WRKSRC}/chklastlog ${PREFIX}/sbin
X	${INSTALL_PROGRAM} ${WRKSRC}/chkwtmp    ${PREFIX}/sbin
X	${INSTALL_PROGRAM} ${WRKSRC}/ifpromisc  ${PREFIX}/sbin
X	@${MKDIR} ${PREFIX}/share/doc/chkrootkit
X	${CP} -R ${WRKSRC}/COPY*   ${PREFIX}/share/doc/chkrootkit
X	${CP} -R ${WRKSRC}/README* ${PREFIX}/share/doc/chkrootkit
X
X.include <bsd.port.mk>
END-of-chkrootkit/Makefile
echo x - chkrootkit/pkg-descr
sed 's/^X//' >chkrootkit/pkg-descr << 'END-of-chkrootkit/pkg-descr'
XChkrootkit is a tool to locally check for signs of a rootkit.  It
Xcontains:
X 
X * chkrootkit: a shell script that checks system binaries for
X   rootkit modification.
X * ifpromisc.c: checks if the network interface is in promiscuous
X   mode.
X * chklastlog.c: checks for lastlog deletions.
X * chkwtmp.c: checks for wtmp deletions.
X 
XThe following rootkits and worms are currently detected: Solaris
Xrootkit, FreeBSD rootkit, lrk3, lrk4, lrk5, lrk6, t0rn, some lrk
Xvariants, Ambient's Rootkit for Linux (ARK), Ramen Worm,
Xrh[67]-shaper, RSHA and Romanian rootkit.
X 
XNelson Murilo <nelson@pangeia.com.br>
X
XWWW: http://www.chkrootkit.org.br
END-of-chkrootkit/pkg-descr
echo x - chkrootkit/pkg-plist
sed 's/^X//' >chkrootkit/pkg-plist << 'END-of-chkrootkit/pkg-plist'
Xsbin/chkrootkit
Xsbin/chklastlog
Xsbin/chkwtmp
Xsbin/ifpromisc
Xshare/doc/chkrootkit/COPYRIGHT
Xshare/doc/chkrootkit/README
Xshare/doc/chkrootkit/README.chklastlog
Xshare/doc/chkrootkit/README.chkwtmp
X@dirrm share/doc/chkrootkit
END-of-chkrootkit/pkg-plist
echo x - chkrootkit/distinfo
sed 's/^X//' >chkrootkit/distinfo << 'END-of-chkrootkit/distinfo'
XMD5 (chkrootkit-0.31.tar.gz) = 949f65809b8cf95ee025ea4264cc8c43
END-of-chkrootkit/distinfo
exit


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: roam 
State-Changed-When: Tue Apr 17 04:57:47 PDT 2001 
State-Changed-Why:  
Let me see if I can fix all the bogons in there.. 


Responsible-Changed-From-To: freebsd-ports->roam 
Responsible-Changed-By: roam 
Responsible-Changed-When: Tue Apr 17 04:57:47 PDT 2001 
Responsible-Changed-Why:  
I'm fighting with this one ;) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26643 
State-Changed-From-To: analyzed->closed 
State-Changed-By: roam 
State-Changed-When: Tue Apr 17 05:13:57 PDT 2001 
State-Changed-Why:  
Committed with *lots* of cleanup. Next time, please at least try to 
submit a diff against the existing port, not a whole new port :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26643 
>Unformatted:
