aboutsummaryrefslogtreecommitdiffstats
path: root/lang/perl5.6/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5.6/pkg-install')
-rw-r--r--lang/perl5.6/pkg-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/perl5.6/pkg-install b/lang/perl5.6/pkg-install
index 47fee558c9ae..46b4ae82fab1 100644
--- a/lang/perl5.6/pkg-install
+++ b/lang/perl5.6/pkg-install
@@ -9,5 +9,14 @@ INCLUDEDIR=/usr/include
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.6.1/mach
cd ${INCLUDEDIR} && ${PKG_PREFIX}/bin/h2ph *.h machine/*.h sys/*.h
+if [ -f /sbin/sysctl -a -x /sbin/sysctl ] ; then
+ osreldate=`/sbin/sysctl -n kern.osreldate`
+else
+ osreldate=`/usr/sbin/sysctl -n kern.osreldate`
+fi
+
+if [ $osreldate -ge 500043 ] ; then
+ ${PKG_PREFIX}/bin/use.perl port
+fi
exit 0