From 80afc7818f699f0c2bd3c1164f9c8d88ea85ef19 Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Wed, 4 Dec 2002 16:50:04 +0000 Subject: On recent 5-CURRENT, there is no Perl wrapper. It is therefore possible that /usr/bin/perl5 doesn't exist, which violates some of use.perl's assumptions. Take care of this case. [1] Also in the case of a recent 5-CURRENT, automatically perform "use.perl port" during package/port installation. This helps the installation of sysinstall's new "Perl distribution", in that sysinstall doesn't need to do this explicitly as Yet Another Special Case. [2] PORTREVISION bump after all this good stuff. Requested by: bmah [1], jhb [2] Submitted by: tobez (port MAINTAINER) Approved by: portmgr (kris) --- lang/perl5.6/pkg-install | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lang/perl5.6/pkg-install') 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 -- cgit v1.2.3