3b9cc111da
I finnaly got fed up with that FAQ about chkrootkit. The solution was either to add a Q+A to the FAQ or fix the port. This introduce a new variable, FreeBSD5, that is set to "yes" if we're running FreeBSD 5 or higher. This variable is used to fix the tests of the following binaries, so they would DTRT on FreeBSD 5: chfn chsh date ls ps I also fixed a bug in the cheking of vdir, but it's irrelevant for FreeBSD. Informed maintainer. PR: ports/55919 Submitted by: Yonatan@xpert.com <Yonatan@xpert.com>
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# Ports collection makefile for: chkrootkit
|
|
# Date created: 13 Mar 2001
|
|
# Whom: Luiz Eduardo R. Cordeiro
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= chkrootkit
|
|
PORTVERSION= 0.41
|
|
CATEGORIES= security
|
|
MASTER_SITES= ftp://ftp.pangeia.com.br/pub/seg/pac/
|
|
|
|
MAINTAINER= cordeiro@luinil.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
|
|
|
|
BINMODE= 0700
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-patch:
|
|
${REINPLACE_CMD} -e "s/^CC/#CC/; s/^CFLAGS/#CFLAGS/" ${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} -e \
|
|
's#\./chklastlog#${PREFIX}/sbin/chklastlog#g; \
|
|
s#\./chkwtmp#${PREFIX}/sbin/chkwtmp#g; \
|
|
s#\./chkproc#${PREFIX}/sbin/chkproc#g; \
|
|
s#\./chkdirs#${PREFIX}/sbin/chkdirs#g; \
|
|
s#\./check_wtmpx#${PREFIX}/sbin/check_wtmpx#g; \
|
|
s#\./strings#${PREFIX}/sbin/strings#g; \
|
|
s#\./ifpromisc#${PREFIX}/sbin/ifpromisc#g;' \
|
|
${WRKSRC}/chkrootkit
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/chkrootkit ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chklastlog ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chkwtmp ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chkproc ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/chkdirs ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ifpromisc ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/check_wtmpx ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/strings ${PREFIX}/sbin
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${PREFIX}/share/doc/chkrootkit
|
|
${INSTALL_DATA} ${DOCFILES:C,^,${WRKSRC}/,} ${PREFIX}/share/doc/chkrootkit
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|