Date: Wed, 30 Oct 2002 13:10:35 +0100 (CET) From: Lars Thegler <lars@thegler.dk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44749: [MAINTAINER UPDATE] net/p5-Net-SNMP dependency fix Message-ID: <20021030121035.622297CF7@marvin.thegler.dk>
next in thread | raw e-mail | index | archive | help
>Number: 44749 >Category: ports >Synopsis: [MAINTAINER UPDATE] net/p5-Net-SNMP dependency fix >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Oct 30 04:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Lars Thegler >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD marvin.thegler.dk 4.7-STABLE FreeBSD 4.7-STABLE #1: Wed Oct 23 20:47:27 CEST 2002 root@marvin.thegler.dk:/usr/obj/usr/src/sys/MarvinKernel i386 >Description: net/p5-Net-SNMP requires perl 5.6.0 or newer. This diff marks the port BROKEN under older perls. Solves PR 44405. >How-To-Repeat: >Fix: Apply this diff: --cut-- diff -Naur p5-Net-SNMP-4.0.3/Makefile p5-Net-SNMP-4.0.3_1/Makefile --- p5-Net-SNMP-4.0.3/Makefile Sat Oct 19 00:26:00 2002 +++ p5-Net-SNMP-4.0.3_1/Makefile Wed Oct 30 12:54:38 2002 @@ -7,6 +7,7 @@ PORTNAME= Net-SNMP PORTVERSION= 4.0.3 +PORTREVISION= 1 CATEGORIES= net perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Net @@ -14,6 +15,8 @@ MAINTAINER= lars@thegler.dk +.include <bsd.port.pre.mk> + RUN_DEPENDS= ${ARCH_PERL}/Crypt/DES.pm:${PORTSDIR}/security/p5-Crypt-DES \ ${ARCH_PERL}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ ${ARCH_PERL}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \ @@ -24,8 +27,15 @@ SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} ARCH_PERL= ${SITE_PERL}/${PERL_ARCH} +PERL_MAJOR=${PERL_VER:C|^([1-9]+).*|\1|} +PERL_MINOR=${PERL_VER:C|^[1-9]+\.0*([1-9]+).*|\1|} + +.if ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 6 +BROKEN= "This port requires Perl v5.6.0 or newer" +.endif + MAN1= snmpkey.1 MAN3= Net::SNMP.3 MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.include <bsd.port.mk> +.include <bsd.port.post.mk> --cut-- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021030121035.622297CF7>