diff options
author | marcus <marcus@FreeBSD.org> | 2004-03-06 05:38:03 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-03-06 05:38:03 +0800 |
commit | e674cceb7add7510d16d3f20f76003ba6a9c4cfa (patch) | |
tree | 79770e314cb1a78ddef23af57f9fac91162c144a | |
parent | e077467a62ec6e6fef360249ffcea3f37b59eab7 (diff) | |
download | freebsd-ports-gnome-e674cceb7add7510d16d3f20f76003ba6a9c4cfa.tar.gz freebsd-ports-gnome-e674cceb7add7510d16d3f20f76003ba6a9c4cfa.tar.zst freebsd-ports-gnome-e674cceb7add7510d16d3f20f76003ba6a9c4cfa.zip |
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)
-rw-r--r-- | lang/perl5.10/pkg-install | 10 | ||||
-rw-r--r-- | lang/perl5.12/pkg-install | 10 | ||||
-rw-r--r-- | lang/perl5.14/pkg-install | 10 | ||||
-rw-r--r-- | lang/perl5.16/pkg-install | 10 | ||||
-rw-r--r-- | lang/perl5.6/pkg-install | 10 | ||||
-rw-r--r-- | lang/perl5.8/pkg-install | 10 | ||||
-rw-r--r-- | lang/perl5/pkg-install | 10 |
7 files changed, 49 insertions, 21 deletions
diff --git a/lang/perl5.10/pkg-install b/lang/perl5.10/pkg-install index 62c87fadabfc..eb3fde91af87 100644 --- a/lang/perl5.10/pkg-install +++ b/lang/perl5.10/pkg-install @@ -9,10 +9,14 @@ INCLUDEDIR=/usr/include install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.2/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 502100 ] ; then diff --git a/lang/perl5.12/pkg-install b/lang/perl5.12/pkg-install index 62c87fadabfc..eb3fde91af87 100644 --- a/lang/perl5.12/pkg-install +++ b/lang/perl5.12/pkg-install @@ -9,10 +9,14 @@ INCLUDEDIR=/usr/include install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.2/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 502100 ] ; then diff --git a/lang/perl5.14/pkg-install b/lang/perl5.14/pkg-install index 62c87fadabfc..eb3fde91af87 100644 --- a/lang/perl5.14/pkg-install +++ b/lang/perl5.14/pkg-install @@ -9,10 +9,14 @@ INCLUDEDIR=/usr/include install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.2/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 502100 ] ; then diff --git a/lang/perl5.16/pkg-install b/lang/perl5.16/pkg-install index 62c87fadabfc..eb3fde91af87 100644 --- a/lang/perl5.16/pkg-install +++ b/lang/perl5.16/pkg-install @@ -9,10 +9,14 @@ INCLUDEDIR=/usr/include install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.2/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 502100 ] ; then 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 diff --git a/lang/perl5.8/pkg-install b/lang/perl5.8/pkg-install index 62c87fadabfc..eb3fde91af87 100644 --- a/lang/perl5.8/pkg-install +++ b/lang/perl5.8/pkg-install @@ -9,10 +9,14 @@ INCLUDEDIR=/usr/include install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.2/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 502100 ] ; then diff --git a/lang/perl5/pkg-install b/lang/perl5/pkg-install index 507c511a1fb8..30a44d633c5c 100644 --- a/lang/perl5/pkg-install +++ b/lang/perl5/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 |