aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2006-06-13 18:31:07 +0000
committerMathieu Arnold <mat@FreeBSD.org>2006-06-13 18:31:07 +0000
commite59fd3d51d6d13db813710629e2eaf80b6b7c3e8 (patch)
tree50badd18a64a4f39cfb0cd898af564086f6d4b4c /net/p5-Net
parent1597089fc6d4ffab4a3e798fc3b668dbe05cb59f (diff)
downloadports-e59fd3d51d6d13db813710629e2eaf80b6b7c3e8.tar.gz
ports-e59fd3d51d6d13db813710629e2eaf80b6b7c3e8.zip
Depend on security/p5-Authen-SASL only if perl >= 5.6
PR: 97115 Submitted by: leeym
Notes
Notes: svn path=/head/; revision=165331
Diffstat (limited to 'net/p5-Net')
-rw-r--r--net/p5-Net/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/net/p5-Net/Makefile b/net/p5-Net/Makefile
index 37981b63e196..f8032afa9f92 100644
--- a/net/p5-Net/Makefile
+++ b/net/p5-Net/Makefile
@@ -16,8 +16,7 @@ DISTNAME= libnet-${PORTVERSION}
MAINTAINER= mat@FreeBSD.org
COMMENT= Perl5 modules to access and use network protocols
-RUN_DEPENDS= ${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL \
- ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
PERL_CONFIGURE= yes
CONFIGURE_ARGS= < /dev/null
@@ -33,4 +32,11 @@ MAN3= Net::Cmd.3 \
Net::Time.3 \
Net::libnetFAQ.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# Authen-SASL is not available under perl 5.005_03
+.if ${PERL_LEVEL} >= 500600
+RUN_DEPENDS+= ${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL
+.endif
+
+.include <bsd.port.post.mk>