freebsd-ports/security/rkhunter/Makefile
Sofian Brabez b453467aa4 - Install sample configuration file
- Add LICENSE

PR:		ports/153024
Submitted by:	Trond Endrestøl <Trond.Endrestol at ximalas.info>
Approved by:	jadawin@ (mentor)
2011-04-20 12:53:50 +00:00

67 lines
1.6 KiB
Makefile

# New ports collection makefile for: rkhunter
# Date created: 15 May 2004
# Whom: Radim Kolar
#
# $FreeBSD$
#
PORTNAME= rkhunter
PORTVERSION= 1.3.8
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= sbz@FreeBSD.org
COMMENT= Rootkit detection tool
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/files/LICENSE
OPTIONS= LSOF "Use LSOF" on \
NMAP "Use NMAP" off
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
USE_PERL5= yes
NO_BUILD= yes
SUB_FILES= 415.${PORTNAME}
MAN8= ${PORTNAME}.8
MANCOMPRESSED= no
PORTDOCS= ACKNOWLEDGMENTS CHANGELOG FAQ LICENSE README
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_LSOF)
RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof
.endif
.if defined(WITH_NMAP)
RUN_DEPENDS+= nmap:${PORTSDIR}/security/nmap
.endif
post-patch:
@${REINPLACE_CMD} -e 's|{SHAREDIR}/man/man8|{PREFIX}/man/man8|g' \
${WRKSRC}/installer.sh
do-install:
cd ${WRKSRC} && ./installer.sh --layout custom ${PREFIX} --install
${INSTALL_MAN} ${WRKSRC}/files/${PORTNAME}.8 \
${MAN8PREFIX}/man/man8
@${MKDIR} ${PREFIX}/etc/periodic/security
${INSTALL_SCRIPT} ${WRKDIR}/415.${PORTNAME} ${PREFIX}/etc/periodic/security
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/files/|} ${DOCSDIR}
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/files/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc; \
fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>