diff options
author | marcus <marcus@FreeBSD.org> | 2004-02-04 19:13:30 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-02-04 19:13:30 +0000 |
commit | 59f04f79ab3bcccb1135a2cdbc419c5a25f4f7b6 (patch) | |
tree | 88352a61f165ea4a8668da84742d8364d0faad55 | |
parent | a7a31ffe5d49c1249bdd9a7119a2a6bcde0833c3 (diff) | |
download | FreeBSD-ports-59f04f79ab3bcccb1135a2cdbc419c5a25f4f7b6.zip FreeBSD-ports-59f04f79ab3bcccb1135a2cdbc419c5a25f4f7b6.tar.gz |
Update the pkg-install script to run use.perl port after install on recent
versions of -CURRENT.
Reported by: kris
-rw-r--r-- | lang/perl5.10/Makefile | 2 | ||||
-rw-r--r-- | lang/perl5.10/pkg-install | 9 | ||||
-rw-r--r-- | lang/perl5.12/Makefile | 2 | ||||
-rw-r--r-- | lang/perl5.12/pkg-install | 9 | ||||
-rw-r--r-- | lang/perl5.14/Makefile | 2 | ||||
-rw-r--r-- | lang/perl5.14/pkg-install | 9 | ||||
-rw-r--r-- | lang/perl5.16/Makefile | 2 | ||||
-rw-r--r-- | lang/perl5.16/pkg-install | 9 | ||||
-rw-r--r-- | lang/perl5.8/Makefile | 2 | ||||
-rw-r--r-- | lang/perl5.8/pkg-install | 9 |
10 files changed, 50 insertions, 5 deletions
diff --git a/lang/perl5.10/Makefile b/lang/perl5.10/Makefile index 0155a7d..118df80 100644 --- a/lang/perl5.10/Makefile +++ b/lang/perl5.10/Makefile @@ -7,7 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ diff --git a/lang/perl5.10/pkg-install b/lang/perl5.10/pkg-install index 4712cb8..ae31238 100644 --- a/lang/perl5.10/pkg-install +++ b/lang/perl5.10/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 diff --git a/lang/perl5.12/Makefile b/lang/perl5.12/Makefile index 0155a7d..118df80 100644 --- a/lang/perl5.12/Makefile +++ b/lang/perl5.12/Makefile @@ -7,7 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ diff --git a/lang/perl5.12/pkg-install b/lang/perl5.12/pkg-install index 4712cb8..ae31238 100644 --- a/lang/perl5.12/pkg-install +++ b/lang/perl5.12/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 diff --git a/lang/perl5.14/Makefile b/lang/perl5.14/Makefile index 0155a7d..118df80 100644 --- a/lang/perl5.14/Makefile +++ b/lang/perl5.14/Makefile @@ -7,7 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ diff --git a/lang/perl5.14/pkg-install b/lang/perl5.14/pkg-install index 4712cb8..ae31238 100644 --- a/lang/perl5.14/pkg-install +++ b/lang/perl5.14/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 diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile index 0155a7d..118df80 100644 --- a/lang/perl5.16/Makefile +++ b/lang/perl5.16/Makefile @@ -7,7 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ diff --git a/lang/perl5.16/pkg-install b/lang/perl5.16/pkg-install index 4712cb8..ae31238 100644 --- a/lang/perl5.16/pkg-install +++ b/lang/perl5.16/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 diff --git a/lang/perl5.8/Makefile b/lang/perl5.8/Makefile index 0155a7d..118df80 100644 --- a/lang/perl5.8/Makefile +++ b/lang/perl5.8/Makefile @@ -7,7 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ diff --git a/lang/perl5.8/pkg-install b/lang/perl5.8/pkg-install index 4712cb8..ae31238 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 |