2001-04-07 02:48:49 +02:00
|
|
|
# Ports collection makefile for: chkrootkit
|
|
|
|
# Date created: 13 Mar 2001
|
|
|
|
# Whom: Luiz Eduardo R. Cordeiro
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= chkrootkit
|
2003-06-25 18:40:08 +02:00
|
|
|
PORTVERSION= 0.41
|
2001-04-07 02:48:49 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.pangeia.com.br/pub/seg/pac/
|
|
|
|
|
2002-06-19 01:49:07 +02:00
|
|
|
MAINTAINER= cordeiro@luinil.nic.br
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= A tool to locally check for signs of a rootkit
|
2001-04-07 02:48:49 +02:00
|
|
|
|
2002-11-04 03:18:21 +01:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2003-04-09 10:22:12 +02:00
|
|
|
ALL_TARGET= chkrootkit chklastlog chkwtmp chkproc chkdirs ifpromisc check_wtmpx strings
|
2001-04-07 02:48:49 +02:00
|
|
|
|
2001-09-22 08:44:04 +02:00
|
|
|
DOCFILES= COPYRIGHT README README.chklastlog README.chkwtmp
|
2001-04-17 14:13:08 +02:00
|
|
|
|
2002-06-19 01:49:07 +02:00
|
|
|
BINMODE= 0700
|
|
|
|
|
2003-08-15 08:17:16 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-04-07 02:48:49 +02:00
|
|
|
pre-patch:
|
2002-11-04 03:18:21 +01:00
|
|
|
${REINPLACE_CMD} -e "s/^CC/#CC/; s/^CFLAGS/#CFLAGS/" ${WRKSRC}/Makefile
|
|
|
|
${REINPLACE_CMD} -e \
|
2001-04-17 14:13:08 +02:00
|
|
|
's#\./chklastlog#${PREFIX}/sbin/chklastlog#g; \
|
|
|
|
s#\./chkwtmp#${PREFIX}/sbin/chkwtmp#g; \
|
2002-10-25 22:48:02 +02:00
|
|
|
s#\./chkproc#${PREFIX}/sbin/chkproc#g; \
|
2003-01-11 04:18:51 +01:00
|
|
|
s#\./chkdirs#${PREFIX}/sbin/chkdirs#g; \
|
2003-04-09 10:22:12 +02:00
|
|
|
s#\./check_wtmpx#${PREFIX}/sbin/check_wtmpx#g; \
|
|
|
|
s#\./strings#${PREFIX}/sbin/strings#g; \
|
2002-06-19 01:49:07 +02:00
|
|
|
s#\./ifpromisc#${PREFIX}/sbin/ifpromisc#g;' \
|
2001-04-17 14:13:08 +02:00
|
|
|
${WRKSRC}/chkrootkit
|
|
|
|
|
2001-04-07 02:48:49 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/chkrootkit ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chklastlog ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chkwtmp ${PREFIX}/sbin
|
2002-10-25 22:48:02 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chkproc ${PREFIX}/sbin
|
2003-01-11 04:18:51 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chkdirs ${PREFIX}/sbin
|
2001-04-07 02:48:49 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ifpromisc ${PREFIX}/sbin
|
2003-04-09 10:22:12 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/check_wtmpx ${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/strings ${PREFIX}/sbin
|
2001-04-17 14:13:08 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-04-07 02:48:49 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/chkrootkit
|
2001-04-17 14:13:08 +02:00
|
|
|
${INSTALL_DATA} ${DOCFILES:C,^,${WRKSRC}/,} ${PREFIX}/share/doc/chkrootkit
|
|
|
|
.endif
|
2001-04-07 02:48:49 +02:00
|
|
|
|
2003-08-15 08:17:16 +02:00
|
|
|
.include <bsd.port.post.mk>
|