Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 2010 20:03:07 +0200 (CEST)
From:      Martin Matuska <mm@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        yanagisawa@csg.is.titech.ac.jp
Subject:   ports/150762: [PATCH] mail/p5-Mail-DKIM: depend on p5-Digest-SHA only if perl < 5.10.1
Message-ID:  <20100920180307.D1F23E26A6@mail2.vx.sk>
Resent-Message-ID: <201009201810.o8KIA1U3053353@freefall.freebsd.org>

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

>Number:         150762
>Category:       ports
>Synopsis:       [PATCH] mail/p5-Mail-DKIM: depend on p5-Digest-SHA only if perl < 5.10.1
>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 Sep 20 18:10:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Martin Matuska
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.1-STABLE FreeBSD 8.1-STABLE #1 r212768M: Fri Sep 17 00:01:06 CEST
>Description:
The Digest-SHA module is included in Perl 5.10 and higher.
Explicitly depend on p5-Digest-SHA only if PERL_LEVEL < 50100

Port maintainer (yanagisawa@csg.is.titech.ac.jp) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- p5-Mail-DKIM-0.38.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/p5-Mail-DKIM/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- Makefile	5 Apr 2010 23:19:59 -0000	1.22
+++ Makefile	20 Sep 2010 18:02:35 -0000
@@ -15,7 +15,6 @@
 COMMENT=	Perl5 module to process and/or create DKIM email
 
 RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
-		${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA \
 		${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS \
 		${SITE_PERL}/Mail/Address.pm:${PORTSDIR}/mail/p5-Mail-Tools
 BUILD_DEPENDS=	${RUN_DEPENDS}
@@ -44,4 +43,10 @@
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/scripts/dkim*.pl ${PREFIX}/bin
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>
--- p5-Mail-DKIM-0.38.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?20100920180307.D1F23E26A6>