Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2006 01:28:17 +0330
From:      "Babak Farrokhi" <babak@farrokhi.net>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        vaidab@safe-mail.net
Subject:   ports/99432: [update port] security/rkhunter - added dependencies
Message-ID:  <1151186297.58906@home.farrokhi.net>
Resent-Message-ID: <200606242200.k5OM0aqN094443@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         99432
>Category:       ports
>Synopsis:       [update port] security/rkhunter - added dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 24 22:00:35 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Babak Farrokhi
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:


System: FreeBSD 6.1-STABLE #1: Fri May 12 21:09:54 IRDT 2006
    root@home.farrokhi.net:/usr/obj/usr/src/sys/HOME



>Description:


- Add nmap and lsof dependencies (optional) for additional checks
- bump portrevision

maintainer is CC'ed


>How-To-Repeat:





>Fix:


--- rkhunter.patch begins here ---
diff -ruN rkhunter.orig/Makefile rkhunter/Makefile
--- rkhunter.orig/Makefile	Sat Jun 24 23:46:20 2006
+++ rkhunter/Makefile	Sun Jun 25 01:25:18 2006
@@ -7,14 +7,17 @@
 
 PORTNAME=	rkhunter
 PORTVERSION=	1.2.8
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	http://downloads.rootkit.nl/
 
 MAINTAINER=	vaidab@safe-mail.net
 COMMENT=	Rootkit detection tool
 
-RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
+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
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
@@ -27,6 +30,14 @@
 PORTDOCS=	CHANGELOG README WISHLIST
 
 .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
 
 .if ${ARCH} == "sparc64"
 BROKEN=		Does not build on sparc64
--- rkhunter.patch ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1151186297.58906>