freebsd-ports/lang/perl5.10/pkg-install
Joe Marcus Clarke e9b5bbd01b Update the pkg-install script to run use.perl port after install on recent
versions of -CURRENT.

Reported by:	kris
2004-02-04 19:13:30 +00:00

22 lines
430 B
Bash

#!/bin/sh
if [ "$2" != POST-INSTALL ] ; then
exit 0
fi
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