summaryrefslogtreecommitdiff
path: root/lang/perl5.6/pkg-install
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-03-05 21:38:03 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-03-05 21:38:03 +0000
commit3302f9e6ed93063de24f2546723046ac8d6ebd9f (patch)
tree6c15cd29b82aad978c9bd76ecf152c81a756f638 /lang/perl5.6/pkg-install
parent- add support for clamav/clamdscan (diff)
Respect OSVERSION in the pkg-install script. This allows package building
tinderboxes to do the righ thing reagrding Perl in a chroot/jail environment regardless of the underlying host OS version. Approved by: perl (tobez)
Diffstat (limited to '')
-rw-r--r--lang/perl5.6/pkg-install10
1 files changed, 7 insertions, 3 deletions
diff --git a/lang/perl5.6/pkg-install b/lang/perl5.6/pkg-install
index 507c511a1fb8..30a44d633c5c 100644
--- a/lang/perl5.6/pkg-install
+++ b/lang/perl5.6/pkg-install
@@ -9,10 +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`
+if [ -z "${OSVERSION}" ]; then
+ if [ -f /sbin/sysctl -a -x /sbin/sysctl ] ; then
+ osreldate=`/sbin/sysctl -n kern.osreldate`
+ else
+ osreldate=`/usr/sbin/sysctl -n kern.osreldate`
+ fi
else
- osreldate=`/usr/sbin/sysctl -n kern.osreldate`
+ osreldate=${OSVERSION}
fi
if [ $osreldate -ge 500043 -a $osreldate -lt 502100 ] ; then