pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/chkrootkit Import chkrootkit from pkgsrc-wip....
details: https://anonhg.NetBSD.org/pkgsrc/rev/f203ae782d5f
branches: trunk
changeset: 468882:f203ae782d5f
user: minskim <minskim%pkgsrc.org@localhost>
date: Tue Feb 17 15:33:52 2004 +0000
description:
Import chkrootkit from pkgsrc-wip. Packaged by Adrian Portelli and
modified by me.
chkrootkit is a tool to locally check for signs of a rootkit. It
contains:
* chkrootkit: a shell script that checks system binaries for
rootkit modification.
* ifpromisc.c: checks if the network interface is in promiscuous
mode.
* chklastlog.c: checks for lastlog deletions.
* chkwtmp.c: checks for wtmp deletions.
* check_wtmpx.c: checks for wtmpx deletions. (Solaris only)
* chkproc.c: checks for signs of LKM trojans.
* chkdirs.c: checks for signs of LKM trojans.
* strings.c: quick and dirty strings replacement.
diffstat:
security/chkrootkit/DESCR | 13 ++++++++++
security/chkrootkit/Makefile | 45 ++++++++++++++++++++++++++++++++++++
security/chkrootkit/PLIST | 8 ++++++
security/chkrootkit/distinfo | 5 ++++
security/chkrootkit/patches/patch-aa | 17 +++++++++++++
5 files changed, 88 insertions(+), 0 deletions(-)
diffs (108 lines):
diff -r 64403dc1deb1 -r f203ae782d5f security/chkrootkit/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/chkrootkit/DESCR Tue Feb 17 15:33:52 2004 +0000
@@ -0,0 +1,13 @@
+chkrootkit is a tool to locally check for signs of a rootkit. It
+contains:
+
+ * chkrootkit: a shell script that checks system binaries for
+ rootkit modification.
+ * ifpromisc.c: checks if the network interface is in promiscuous
+ mode.
+ * chklastlog.c: checks for lastlog deletions.
+ * chkwtmp.c: checks for wtmp deletions.
+ * check_wtmpx.c: checks for wtmpx deletions. (Solaris only)
+ * chkproc.c: checks for signs of LKM trojans.
+ * chkdirs.c: checks for signs of LKM trojans.
+ * strings.c: quick and dirty strings replacement.
diff -r 64403dc1deb1 -r f203ae782d5f security/chkrootkit/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/chkrootkit/Makefile Tue Feb 17 15:33:52 2004 +0000
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/02/17 15:33:52 minskim Exp $
+#
+
+DISTNAME= chkrootkit
+PKGNAME= ${DISTNAME}-0.43
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.pangeia.com.br/pub/seg/pac/
+
+MAINTAINER= pancake%phreaker.net@localhost
+HOMEPAGE= http://www.chkrootkit.org/
+COMMENT= Locally checks for signs of a rootkit
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+DIST_SUBDIR= ${PKGNAME}
+USE_GNU_TOOLS+= make
+USE_BUILDLINK3= yes
+NO_CONFIGURE= yes
+
+PROGRAMS= chkdirs chklastlog chkproc chkwtmp ifpromisc strings-static
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+PROGRAMS+= check_wtmpx
+PLIST_SUBST+= WTMPX=""
+CFLAGS+= -DSOLARIS2
+LDFLAGS+= -lsocket
+. if empty(CC_VERSION:Mgcc-*)
+MAKE_ENV+= STATIC="-B static"
+. else
+MAKE_ENV+= STATIC="-static"
+. endif
+.else
+PLIST_SUBST+= WTMPX="@comment "
+MAKE_ENV+= STATIC="-static"
+.endif
+
+INSTALLATION_DIRS+= bin
+
+do-install:
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGRAMS} ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff -r 64403dc1deb1 -r f203ae782d5f security/chkrootkit/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/chkrootkit/PLIST Tue Feb 17 15:33:52 2004 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/17 15:33:52 minskim Exp $
+${WTMPX}bin/check_wtmpx
+bin/chkdirs
+bin/chklastlog
+bin/chkproc
+bin/chkwtmp
+bin/ifpromisc
+bin/strings-static
diff -r 64403dc1deb1 -r f203ae782d5f security/chkrootkit/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/chkrootkit/distinfo Tue Feb 17 15:33:52 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/02/17 15:33:52 minskim Exp $
+
+SHA1 (chkrootkit-0.43/chkrootkit.tar.gz) = 58e3693823a9b8ab9b6bb609d54b5716af332a00
+Size (chkrootkit-0.43/chkrootkit.tar.gz) = 33355 bytes
+SHA1 (patch-aa) = c47ecb09d02c710727420a3adfb7d8b62d721f2d
diff -r 64403dc1deb1 -r f203ae782d5f security/chkrootkit/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/chkrootkit/patches/patch-aa Tue Feb 17 15:33:52 2004 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/02/17 15:33:52 minskim Exp $
+
+--- Makefile.orig 2003-12-26 15:34:10.000000000 -0600
++++ Makefile
+@@ -3,9 +3,9 @@
+ # (C) 1997-2003 Nelson Murilo, Pangeia Informatica, AMS Foundation and others.
+ #
+
+-CC = gcc
+-CFLAGS = -DHAVE_LASTLOG_H
+-STATIC = -static
++#CC = gcc
++#CFLAGS = -DHAVE_LASTLOG_H
++#STATIC = -static
+
+ ###
+ ### Solaris 2.x
Home |
Main Index |
Thread Index |
Old Index