aboutsummaryrefslogtreecommitdiff
path: root/security/rkhunter
diff options
context:
space:
mode:
authorSofian Brabez <sbz@FreeBSD.org>2013-01-09 13:17:27 +0000
committerSofian Brabez <sbz@FreeBSD.org>2013-01-09 13:17:27 +0000
commitf78beb00ec56d602d4c6c31660eb60bf400a1341 (patch)
treeb16521eaf75f742a11f7f576f5789f40564fab2b /security/rkhunter
parent8cb9360ec790da79300936fd46d05fc5f7de5a26 (diff)
downloadports-f78beb00ec56d602d4c6c31660eb60bf400a1341.tar.gz
ports-f78beb00ec56d602d4c6c31660eb60bf400a1341.zip
- Convert to new option framework
Notes
Notes: svn path=/head/; revision=310142
Diffstat (limited to 'security/rkhunter')
-rw-r--r--security/rkhunter/Makefile17
-rw-r--r--security/rkhunter/pkg-descr2
2 files changed, 7 insertions, 12 deletions
diff --git a/security/rkhunter/Makefile b/security/rkhunter/Makefile
index 4176a5db0e1a..0d1a249c5067 100644
--- a/security/rkhunter/Makefile
+++ b/security/rkhunter/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: rkhunter
-# Date created: 15 May 2004
-# Whom: Radim Kolar
-#
+# Created by: Radim Kolar
# $FreeBSD$
-#
PORTNAME= rkhunter
PORTVERSION= 1.4.0
@@ -14,10 +10,9 @@ MAINTAINER= sbz@FreeBSD.org
COMMENT= Rootkit detection tool
LICENSE= GPLv2
-LICENSE_FILE= ${WRKSRC}/files/LICENSE
-OPTIONS= LSOF "Use LSOF" on \
- NMAP "Use NMAP" off
+OPTIONS_DEFINE= LSOF NMAP DOCS
+OPTIONS_DEFAULT=LSOF
RUN_DEPENDS+= p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget
@@ -33,11 +28,11 @@ PORTDOCS= ACKNOWLEDGMENTS CHANGELOG FAQ LICENSE README
.include <bsd.port.pre.mk>
-.if !defined(WITHOUT_LSOF)
+.if ${PORT_OPTIONS:MLSOF}
RUN_DEPENDS+= lsof:${PORTSDIR}/sysutils/lsof
.endif
-.if defined(WITH_NMAP)
+.if ${PORT_OPTIONS:MNMAP}
RUN_DEPENDS+= nmap:${PORTSDIR}/security/nmap
.endif
@@ -51,7 +46,7 @@ do-install:
${MAN8PREFIX}/man/man8
@${MKDIR} ${PREFIX}/etc/periodic/security
${INSTALL_SCRIPT} ${WRKDIR}/415.${PORTNAME} ${PREFIX}/etc/periodic/security
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/files/|} ${DOCSDIR}
.endif
diff --git a/security/rkhunter/pkg-descr b/security/rkhunter/pkg-descr
index 07dad95c044f..8411c16182ea 100644
--- a/security/rkhunter/pkg-descr
+++ b/security/rkhunter/pkg-descr
@@ -11,4 +11,4 @@ tests like:
- Look for hidden files
- Optional scan within plaintext and binary files
-WWW: http://rkhunter.sourceforge.net/
+WWW: http://rkhunter.sourceforge.net