Skip site navigation (1)Skip section navigation (2)
Date:      2 Jul 2004 02:09:16 -0000
From:      David Lay <dsl@webize.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68579: Update mail/qmail-scanner for Perl 5.8
Message-ID:  <20040702020916.79793.qmail@mayhem.webize.com.au>
Resent-Message-ID: <200407020220.i622KJmv042728@freefall.freebsd.org>

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

>Number:         68579
>Category:       ports
>Synopsis:       Update mail/qmail-scanner for Perl 5.8
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 02 02:20:19 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Lay
>Release:        N/A
>Organization:
Webize
>Environment:
	N/A

>Description:
	qmail-scanner has a dependency on devel/p5-Time-HiRes.  p5-Time-HiRes
        is available in the base Perl 5.8 distribution.  We don't want to add
        p5-Time-HiRes to the dependency list when Perl 5.8 is used.
>How-To-Repeat:
	
>Fix:
diff -ur qmail-scanner.orig/Makefile qmail-scanner/Makefile
--- qmail-scanner.orig/Makefile	Mon Jun 21 10:57:45 2004
+++ qmail-scanner/Makefile	Thu Jul  1 12:47:01 2004
@@ -17,7 +17,6 @@
 COMMENT=	Content/Anti-virus Scanner for qmail
 
 BUILD_DEPENDS=	${QMAIL_QUEUE}:${PORTSDIR}/mail/qmail \
-		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
 		reformime:${PORTSDIR}/mail/maildrop
 
 # A normal qmail installation puts everything into /var/qmail/.
@@ -144,4 +143,10 @@
 test:
 	@${WRKSRC}/contrib/test_installation.sh -doit
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+.endif
+
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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