mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
23 lines
462 B
Bash
23 lines
462 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" != POST-INSTALL ] ; then
|
|
exit 0
|
|
fi
|
|
|
|
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 -a $osreldate -lt 502100 ] ; then
|
|
${PKG_PREFIX}/bin/use.perl port
|
|
fi
|
|
|
|
exit 0
|