ports/56757: Update port: security/chkrootkit: upgrade to version 0.42

Luiz Eduardo Roncato Cordeiro cordeiro at nic.br
Sat Sep 13 23:40:22 UTC 2003


>Number:         56757
>Category:       ports
>Synopsis:       Update port: security/chkrootkit: upgrade to version 0.42
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 13 16:40:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Luiz Eduardo Roncato Cordeiro
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
NBSO
>Environment:
System: FreeBSD xxx.xxx.xxx 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #30: Wed Sep 3 11:04:47 BRT 2003 root at xxx.xxx.xxx:/usr/obj/usr/src/sys/xxx i386


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

>How-To-Repeat:
>Fix:

diff -ruN /usr/ports/security/chkrootkit.bak/Makefile /usr/ports/security/chkrootkit/Makefile
--- /usr/ports/security/chkrootkit.bak/Makefile	Sat Sep 13 12:32:57 2003
+++ /usr/ports/security/chkrootkit/Makefile	Sat Sep 13 20:26:10 2003
@@ -6,18 +6,18 @@
 #
 
 PORTNAME=	chkrootkit
-PORTVERSION=	0.41
+PORTVERSION=	0.42
 CATEGORIES=	security
 MASTER_SITES=	ftp://ftp.pangeia.com.br/pub/seg/pac/
 
-MAINTAINER=	cordeiro at luinil.nic.br
+MAINTAINER=	cordeiro at nic.br
 COMMENT=	A tool to locally check for signs of a rootkit
 
 USE_REINPLACE=	yes
 
 ALL_TARGET=	chkrootkit chklastlog chkwtmp chkproc chkdirs ifpromisc check_wtmpx strings
 
-DOCFILES=	COPYRIGHT README README.chklastlog README.chkwtmp
+DOCFILES=	ACKNOWLEDGMENTS COPYRIGHT README README.chklastlog README.chkwtmp
 
 BINMODE=	0700
 
diff -ruN /usr/ports/security/chkrootkit.bak/distinfo /usr/ports/security/chkrootkit/distinfo
--- /usr/ports/security/chkrootkit.bak/distinfo	Sat Sep 13 12:32:57 2003
+++ /usr/ports/security/chkrootkit/distinfo	Sat Sep 13 20:22:46 2003
@@ -1 +1 @@
-MD5 (chkrootkit-0.41.tar.gz) = 5f9a43ba218f76f9ab5ce3d559226831
+MD5 (chkrootkit-0.42.tar.gz) = 0cf494824da31b792484951619ffa5e4
diff -ruN /usr/ports/security/chkrootkit.bak/files/patch-chkrootkit /usr/ports/security/chkrootkit/files/patch-chkrootkit
--- /usr/ports/security/chkrootkit.bak/files/patch-chkrootkit	Sat Sep 13 12:32:57 2003
+++ /usr/ports/security/chkrootkit/files/patch-chkrootkit	Wed Dec 31 21:00:00 1969
@@ -1,84 +0,0 @@
---- chkrootkit.orig	Sun Aug 24 12:04:58 2003
-+++ chkrootkit	Sun Aug 24 12:08:26 2003
-@@ -1020,8 +1020,10 @@
-              STATUS=${INFECTED}
-           fi;;
-        FreeBSD)
-+          TMP="2"
-+          if [ "${FreeBSD5}" = "yes" ]; then TMP="1"; fi
-           if [ `${strings} -a ${CMD} | \
--                ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne 2 ]
-+                ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne "${TMP}" ]
-           then
-              STATUS=${INFECTED}
-           fi;;
-@@ -1053,7 +1055,9 @@
-              fi
-           fi;;
-        FreeBSD)
--          if [ `${strings} -a ${CMD} | ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne 2 ]
-+          TMP="2"
-+          if [ "${FreeBSD5}" = "yes" ] ; then TMP="1"; fi
-+          if [ `${strings} -a ${CMD} | ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne "${TMP}" ]
-              then
-              STATUS=${INFECTED}
-           fi;;
-@@ -1264,7 +1268,10 @@
-         return 5
-     fi
- 
--    if ${strings} -a ${CMD} | ${egrep} "${LS_INFECTED_LABEL}" >/dev/null 2>&1
-+    TMP="0"
-+    if [ "${FreeBSD5}" = "yes" ] ; then TMP="1"; fi
-+    if [ `${strings} -a ${CMD} | \
-+          ${egrep} -c "${LS_INFECTED_LABEL}"` -ne "${TMP}" ]
-     then
-        STATUS=${INFECTED}
-     fi
-@@ -1342,7 +1349,10 @@
-         return 5
-     fi
- 
--    if ${strings} -a ${CMD} | ${egrep} "${PS_I_L}" >/dev/null 2>&1
-+    TMP="0"
-+    if [ "${FreeBSD5}" = "yes" ] ; then TMP="1"; fi
-+    if [ `${strings} -a ${CMD} | \
-+          ${egrep} -c "${PS_I_L}"` -ne "${TMP}" ]
-     then
-        STATUS=${INFECTED}
-     fi
-@@ -1560,7 +1570,10 @@
-         return 5
-     fi
- 
--    if ${strings} -a ${CMD} | ${egrep} "${GENERIC_ROOTKIT_LABEL}" > /dev/null 2>&1
-+    TMP="0"
-+    if [ "${FreeBSD5}" = "yes" ] ; then TMP="2"; fi
-+    if [ `${strings} -a ${CMD} | \
-+          ${egrep} -c "${GENERIC_ROOTKIT_LABEL}"` -ne "${TMP}" ]
-     then
-         STATUS=${INFECTED}
-     fi
-@@ -1750,7 +1763,7 @@
-     STATUS=${NOT_INFECTED}
-     CMD=`loc vdir vdir $pth`
-     VDIR_INFECTED_LABEL="/lib/volc"
--    if [ -r ${CMD} ]; then
-+    if [ ! -r ${CMD} ]; then
-         return ${NOT_FOUND}
-     fi
- 
-@@ -2323,6 +2336,13 @@
- 
- SYSTEM=`${uname} -s`
- VERSION=`${uname} -r`
-+
-+if [ "${SYSTEM}" = "FreeBSD" ] ; then
-+   if [ -n '`uname -r | grep "^5"`' ] ; then
-+      FreeBSD5="yes"
-+   fi
-+fi
-+
- if [ "${SYSTEM}" != "FreeBSD" -a ${SYSTEM} != "OpenBSD" ] ; then
-    V=44
- else

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list