Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2007 15:36:19 +0200 (CEST)
From:      baptiste.daroussin@gmail.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/113087: make archivers dependencies optionnal for clamav
Message-ID:  <20070528133619.31ADBF1923@baptux.is-a-geek.org>
Resent-Message-ID: <200705281340.l4SDe5G1093629@freefall.freebsd.org>

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

>Number:         113087
>Category:       ports
>Synopsis:       make archivers dependencies optionnal for clamav
>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:   Mon May 28 13:40:05 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Baptiste Daroussin
>Release:        FreeBSD 6.2-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD wicklow.lan 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:40:53 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


>Description:
	The following patch makes the dependency of clamav on arj, arc, lha, unzoo optionnal, as they are not needed by clamav.
>How-To-Repeat:
	
>Fix:

	

--- clamav-makefile.patch begins here ---
--- /home/bapt/Makefile	Mon Apr 16 13:18:26 2007
+++ Makefile	Mon May 28 15:32:11 2007
@@ -2,7 +2,7 @@
 # Date created:		15 July 2002
 # Whom:			markun@onohara.to
 #
-# $FreeBSD: /repoman/r/pcvs/ports/security/clamav/Makefile,v 1.98 2007/04/16 11:18:26 garga Exp $
+# $FreeBSD: ports/security/clamav/Makefile,v 1.98 2007/04/16 11:18:26 garga Exp $
 #
 
 PORTNAME=	clamav
@@ -15,12 +15,12 @@
 COMMENT=	Command line virus scanner written entirely in C
 
 LIB_DEPENDS=	gmp.7:${PORTSDIR}/math/libgmp4
-RUN_DEPENDS=	lha:${PORTSDIR}/archivers/lha \
-		arj:${PORTSDIR}/archivers/arj \
-		unzoo:${PORTSDIR}/archivers/unzoo \
-		arc:${PORTSDIR}/archivers/arc
 
-OPTIONS=	MILTER "Compile the milter interface" Off \
+OPTIONS=	ARJ "Enable arj archives support" Off \
+		LHA "Enable lha archives support" Off \
+		UNZOO "Enavle zoo archives support" Off \
+		ARC "Enable arch archives support" Off \
+		MILTER "Compile the milter interface" Off \
 		LDAP "libmilter was built with LDAP" Off \
 		CURL "Support URL downloading" Off \
 		STDERR "Print logs to stderr instead of stdout" Off \
@@ -114,6 +114,19 @@
 # and -pthread have both issues there.
 .if ${OSVERSION} == 502010
 PTHREAD_LIBS=	-pthread
+.endif
+
+.if defined(WITH_LHA)
+RUN_DEPENDS+=	lha:${PORTSDIR}/archivers/lha
+.endif
+.if defined(WITH_ARJ)
+RUN_DEPENDS+=	arj:${PORTSDIR}/archivers/arj 
+.endif
+.if defined(WITH_UNZOO)
+RUN_DEPENDS+=	unzoo:${PORTSDIR}/archivers/unzoo
+.endif
+.if defined(WITH_ARC)
+RUN_DEPENDS+=	arc:${PORTSDIR}/archivers/arc
 .endif
 
 .if defined(WITH_MILTER)
--- clamav-makefile.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?20070528133619.31ADBF1923>