Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

13
security/chkrootkit/DESCR Normal file
View File

@@ -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.

View File

@@ -0,0 +1,11 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2006/01/02 18:42:18 adrianp Exp $
Please note that using chkrootkit on a non-supported platform may lead
to false positive results.
chkrootkit has been tested on: Linux 2.0.x, 2.2.x, 2.4.x and 2.6.x,
FreeBSD 2.2.x, 3.x, 4.x and 5.x, OpenBSD 2.x and 3.x., NetBSD 1.6.x,
Solaris 2.5.1, 2.6, 8.0 and 9.0, HP-UX 11, Tru64, BSDI and Mac OS X.
===========================================================================

View File

@@ -0,0 +1,61 @@
# $NetBSD: Makefile,v 1.20 2013/06/16 10:11:58 shattered Exp $
#
DISTNAME= chkrootkit-0.49
#KGREVISION= 1
CATEGORIES= security
MASTER_SITES= ftp://ftp.pangeia.com.br/pub/seg/pac/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.chkrootkit.org/
COMMENT= Locally checks for signs of a rootkit
LICENSE= modified-bsd
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= gmake
NO_CONFIGURE= yes
PROGRAMS= chkdirs chklastlog chkproc chkwtmp ifpromisc strings-static \
chkutmp
DOCDIR= ${PREFIX}/share/doc/chkrootkit
SUBST_CLASSES+= helper
SUBST_STAGE.helper= post-patch
SUBST_FILES.helper= chkrootkit
SUBST_SED.helper= -e "s|./chklastlog|${PREFIX}/bin/chklastlog|g"
SUBST_SED.helper+= -e "s|./chkproc|${PREFIX}/bin/chkproc|g"
SUBST_SED.helper+= -e "s|./chkwtmp|${PREFIX}/bin/chkwtmp|g"
SUBST_SED.helper+= -e "s|./chkutmp|${PREFIX}/bin/chkutmp|g"
SUBST_SED.helper+= -e "s|./ifpromisc|${PREFIX}/bin/ifpromisc|g"
SUBST_SED.helper+= -e "s|./strings-static|${PREFIX}/bin/strings-static|g"
SUBST_SED.helper+= -e "s|./chkdirs|${PREFIX}/bin/chkdirs|g"
SUBST_SED.helper+= -e "s|/bin/sh|${SH}|g"
.include "../../mk/compiler.mk"
PLIST_VARS+= wtmpx
.if ${OPSYS} == "SunOS"
PROGRAMS+= check_wtmpx
PLIST.wtmpx= yes
CFLAGS+= -DSOLARIS2
LDFLAGS+= -lsocket
. if empty(CC_VERSION:Mgcc-*)
MAKE_ENV+= STATIC="-B static"
. else
MAKE_ENV+= STATIC="-static"
. endif
.else
MAKE_ENV+= STATIC="-static"
.endif
INSTALLATION_DIRS+= bin ${DOCDIR}
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGRAMS} ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/chkrootkit ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.chklastlog ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.chkwtmp ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"

13
security/chkrootkit/PLIST Normal file
View File

@@ -0,0 +1,13 @@
@comment $NetBSD: PLIST,v 1.5 2009/06/14 18:13:27 joerg Exp $
${PLIST.wtmpx}bin/check_wtmpx
bin/chkdirs
bin/chklastlog
bin/chkproc
bin/chkrootkit
bin/chkutmp
bin/chkwtmp
bin/ifpromisc
bin/strings-static
share/doc/chkrootkit/README
share/doc/chkrootkit/README.chklastlog
share/doc/chkrootkit/README.chkwtmp

View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.10 2013/06/16 10:11:58 shattered Exp $
SHA1 (chkrootkit-0.49.tar.gz) = cec1a3c482b95b20d3a946b07fffb23290abc4a6
RMD160 (chkrootkit-0.49.tar.gz) = 8c23ed9859a7dcf7d43ac15049b48c863ab63e92
Size (chkrootkit-0.49.tar.gz) = 39421 bytes
SHA1 (patch-aa) = b569760074a9e6ffd038c080f896c8caa444f61c
SHA1 (patch-ab) = 109a43494bda8d0966164b7684f63a6a83f2d829
SHA1 (patch-ac) = 3e2f5dd9d7f38e0eddc5b43a1a74b880ea296fc5
SHA1 (patch-ad) = 0fe07cdf00ac6e9d9c6366f74c4e009f858688e4

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-aa,v 1.3 2013/06/16 10:11:58 shattered Exp $
--- Makefile.orig 2007-12-24 12:18:02.000000000 +0000
+++ Makefile
@@ -3,9 +3,9 @@
# (C) 1997-2007 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

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ab,v 1.1 2004/05/26 15:04:32 wiz Exp $
--- chklastlog.c.orig 2003-12-26 19:30:12.000000000 +0100
+++ chklastlog.c
@@ -57,6 +57,10 @@
#define WTMP_FILENAME "/var/log/wtmp"
#define LASTLOG_FILENAME "/var/log/lastlog"
#endif
+#ifdef __NetBSD__
+#define WTMP_FILENAME "/var/log/wtmp"
+#define LASTLOG_FILENAME "/var/log/lastlog"
+#endif
#ifdef __OpenBSD__
#define WTMP_FILENAME "/var/log/wtmp"
#define LASTLOG_FILENAME "/var/log/lastlog"

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ac,v 1.3 2006/01/19 23:42:11 joerg Exp $
--- chkdirs.c.orig 2006-01-19 23:40:21.000000000 +0000
+++ chkdirs.c
@@ -25,9 +25,8 @@
*/
-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun) || defined (hpux) || defined (__bsdi__) || defined (bsdi) || defined (__APPLE__)
#include <limits.h>
-#elif defined(__APPLE__) && defined(__MACH__)
+#if defined(__APPLE__) && defined(__MACH__)
#include <sys/syslimits.h>
#endif

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ad,v 1.2 2013/06/16 10:11:58 shattered Exp $
--- chkrootkit.orig 2009-07-30 14:10:54.000000000 +0000
+++ chkrootkit
@@ -509,7 +509,7 @@ ${ROOTDIR}/usr/include/syslogs.h ${ROOTD
### OpenBSD rootkit v1
- if [ \( "$SYSTEM" != "SunOS" -a ${SYSTEM} != "Linux" \) -a ! -f /usr/lib/security/libgcj.security ]
+ if [ "$SYSTEM" != "SunOS" -a "$SYSTEM" != "Linux" -a "$SYSTEM" != "NetBSD" -a ! -f /usr/lib/security/libgcj.security ]
then
expertmode_output "${find} ${ROOTDIR}usr/lib/security"
fi
@@ -931,7 +931,7 @@ ${find} ${ROOTDIR}usr/sbin -name in.slog
fi
### OpenBSD rootkit v1
- if [ \( "${SYSTEM}" != "SunOS" -a ${SYSTEM} != "Linux" \) -a ! -f ${ROOTDIR}usr/lib/security/libgcj.security ]; then
+ if [ "$SYSTEM" != "SunOS" -a "$SYSTEM" != "Linux" -a "$SYSTEM" != "NetBSD" -a ! -f /usr/lib/security/libgcj.security ]; then
files=""
if [ "${QUIET}" != "t" ];then printn "Searching for OBSD rk v1... "; fi
files=`${find} ${ROOTDIR}usr/lib/security 2>/dev/null`