aboutsummaryrefslogtreecommitdiffstats
path: root/security/rkhunter
diff options
context:
space:
mode:
authorsbz <sbz@FreeBSD.org>2013-01-09 21:17:27 +0800
committersbz <sbz@FreeBSD.org>2013-01-09 21:17:27 +0800
commitea388e393eec0a2356406a7755f7819946d78eb0 (patch)
treeb16521eaf75f742a11f7f576f5789f40564fab2b /security/rkhunter
parentf957e0e370a1cc5fa75251c3238e3b8e9d4b692f (diff)
downloadfreebsd-ports-gnome-ea388e393eec0a2356406a7755f7819946d78eb0.tar.gz
freebsd-ports-gnome-ea388e393eec0a2356406a7755f7819946d78eb0.tar.zst
freebsd-ports-gnome-ea388e393eec0a2356406a7755f7819946d78eb0.zip
- Convert to new option framework
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