1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/security/chkrootkit/Makefile
Danilo G. Baio a3a06665cf security/chkrootkit: Update to 0.52
While here, add LICENSE_FILE.

PR:		222926
Submitted by:	Lacey Powers <lacey.leanne@gmail.com> (maintainer)
2017-10-12 21:45:24 +00:00

55 lines
1.2 KiB
Makefile

# Created by: Luiz Eduardo R. Cordeiro
# $FreeBSD$
PORTNAME= chkrootkit
PORTVERSION= 0.52
CATEGORIES= security
MASTER_SITES= ftp://ftp.pangeia.com.br/pub/seg/pac/
MAINTAINER= lacey.leanne@gmail.com
COMMENT= Tool to locally check for signs of a rootkit
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
OPTIONS_DEFINE= DOCS
SCRIPT_FILES= chkrootkit
PROG_FILES= chklastlog \
chkwtmp \
chkutmp \
chkproc \
chkdirs \
ifpromisc \
check_wtmpx \
strings
ALL_TARGET= ${SCRIPT_FILES} ${PROG_FILES}
PORTDOCS= ACKNOWLEDGMENTS \
COPYRIGHT \
README \
README.chklastlog \
README.chkwtmp
PLIST_FILES= ${ALL_TARGET:C,^,sbin/,}
BINMODE= 0700
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -E "s/^(CC|CFLAGS)[^a-zA-Z]*=/\1 ?=/" \
${WRKSRC}/Makefile
.for prog in ${PROG_FILES}
@${REINPLACE_CMD} -E 's,\./(${prog}),${PREFIX}/sbin/\1,g' \
${WRKSRC}/chkrootkit
.endfor
do-install:
${INSTALL_SCRIPT} ${SCRIPT_FILES:C,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${PROG_FILES:C,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:C,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>