diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-02-04 19:13:30 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-02-04 19:13:30 +0000 |
commit | e9b5bbd01bfd294fed8aae74f19d41537de6bd94 (patch) | |
tree | b04dc165bb01c2ec09e158896c92513d3cad4293 /lang/perl5.8/pkg-install | |
parent | Fix build with new gettext. (diff) |
Update the pkg-install script to run use.perl port after install on recent
versions of -CURRENT.
Reported by: kris
Diffstat (limited to '')
-rw-r--r-- | lang/perl5.8/pkg-install | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/perl5.8/pkg-install b/lang/perl5.8/pkg-install index 4712cb82b4e2..ae3123822957 100644 --- a/lang/perl5.8/pkg-install +++ b/lang/perl5.8/pkg-install @@ -9,5 +9,14 @@ INCLUDEDIR=/usr/include install -d ${SITE_PERL}/${PERL_ARCH} 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 502100 ] ; then + ${PKG_PREFIX}/bin/use.perl port +fi exit 0 |