pkgsrc/security/chkrootkit/Makefile
minskim eaeeb8f539 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.
2004-02-17 15:33:52 +00:00

45 lines
1,001 B
Makefile

# $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
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"