ports/66736: Conditionalize dependency on p5-DBI(-137) for mail/yadda
Erwin Lansing
erwin at FreeBSD.org
Mon May 17 12:20:16 UTC 2004
>Number: 66736
>Category: ports
>Synopsis: Conditionalize dependency on p5-DBI(-137) for mail/yadda
>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: Mon May 17 05:20:12 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Erwin Lansing
>Release: FreeBSD 4.9-RELEASE-p3 i386
>Organization:
<organization of PR autho lines)>
>Environment:
System: FreeBSD bamse.staff.tdk.net 4.9-RELEASE-p3 FreeBSD 4.9-RELEASE-p3 #4: Wed Mar 3 11:05:11 CET 2004 root at bamse.staff.tdk.net:/usr/obj/usr/src/sys/BAMSE i386
>Description:
Perl < 5.6 needs databases/p5-DBI-137, not p5-DBI. The following patch
conditionalizes this dependency depending on the installed perl version.
>How-To-Repeat:
>Fix:
--- hest begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/yadda/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile 12 Apr 2004 23:06:44 -0000 1.2
+++ Makefile 17 May 2004 12:02:04 -0000
@@ -14,8 +14,7 @@
MAINTAINER= jesper at noehr.org
COMMENT= Yet Another Damn Delivery Agent
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
- ${SITE_PERL}/Mail/Audit.pm:${PORTSDIR}/mail/p5-Mail-Audit
+RUN_DEPENDS= ${SITE_PERL}/Mail/Audit.pm:${PORTSDIR}/mail/p5-Mail-Audit
USE_PERL5_RUN= yes
@@ -26,4 +25,12 @@
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/yadda ${PREFIX}/sbin
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
+.else
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
+.endif
+
+.include <bsd.port.post.mk>
--- hest ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list