aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net-Radius
diff options
context:
space:
mode:
authorKelly Yancey <kbyanc@FreeBSD.org>2005-01-10 23:33:13 +0000
committerKelly Yancey <kbyanc@FreeBSD.org>2005-01-10 23:33:13 +0000
commit44aa2f8f69d28c88e986e5ac8ab076b663c1bec9 (patch)
treeedd06c289aa824b074c718477c1b7beba46664a1 /net/p5-Net-Radius
parent91f917a7e228c7afc5c5a54e04445c5ec52f7150 (diff)
downloadports-44aa2f8f69d28c88e986e5ac8ab076b663c1bec9.tar.gz
ports-44aa2f8f69d28c88e986e5ac8ab076b663c1bec9.zip
Update to use the Digest::MD5 module shipped with perl5.8 rather than the
port version if perl 5.8.0 or later is installed. Submitted by: David Lay <dsl (at) webize (dot) com (dot) au> PR: 73222
Notes
Notes: svn path=/head/; revision=126096
Diffstat (limited to 'net/p5-Net-Radius')
-rw-r--r--net/p5-Net-Radius/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/p5-Net-Radius/Makefile b/net/p5-Net-Radius/Makefile
index 93f857a2436f..f0c362a7fb2f 100644
--- a/net/p5-Net-Radius/Makefile
+++ b/net/p5-Net-Radius/Makefile
@@ -15,13 +15,17 @@ PKGNAMEPREFIX= p5-
MAINTAINER= kbyanc@FreeBSD.org
COMMENT= A perl module to manipulate RADIUS packets
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
PERL_CONFIGURE= yes
MAN3= Net::Radius::Dictionary.3 Net::Radius::Packet.3
post-extract:
${FIND} ${WRKDIR} -type f | ${XARGS} ${PERL5} -pi -e "s:\r::g"
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
+RUN_DEPENDS= ${BUILD_DEPENDS}
+.endif
+
+.include <bsd.port.post.mk>