head	1.10;
access;
symbols
	old_RELEASE_4_11_0:1.9
	old_RELEASE_5_3_0:1.9
	old_RELEASE_4_10_0:1.9
	old_RELEASE_5_2_1:1.7
	old_RELEASE_5_2_0:1.7
	old_RELEASE_4_9_0:1.7
	old_RELEASE_5_1_0:1.7
	old_RELEASE_4_8_0:1.7
	old_RELEASE_5_0_0:1.7
	old_RELEASE_4_7_0:1.6
	old_RELEASE_4_6_2:1.6
	old_RELEASE_4_6_1:1.6
	old_RELEASE_4_6_0:1.6
	old_RELEASE_5_0_DP1:1.6
	old_RELEASE_4_5_0:1.6
	old_RELEASE_4_4_0:1.5
	old_RELEASE_4_3_0:1.4
	old_RELEASE_4_2_0:1.2
	old_RELEASE_4_1_1:1.2
	old_RELEASE_4_1_0:1.2
	old_RELEASE_3_5_0:1.2
	old_RELEASE_4_0_0:1.2
	old_RELEASE_3_4_0:1.2
	old_RELEASE_3_3_0:1.2
	old_RELEASE_3_2_0:1.2
	old_RELEASE_3_1_0:1.2
	old_RELEASE_2_2_8:1.2
	old_RELEASE_3_0_0:1.2;
locks; strict;
comment	@# @;


1.10
date	2005.02.01.13.36.41;	author tobez;	state dead;
branches;
next	1.9;

1.9
date	2004.03.05.21.38.03;	author marcus;	state Exp;
branches;
next	1.8;

1.8
date	2004.02.04.19.14.29;	author marcus;	state Exp;
branches;
next	1.7;

1.7
date	2002.12.04.16.50.04;	author bmah;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.19.17.05.04;	author tobez;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.29.16.43.51;	author tobez;	state Exp;
branches;
next	1.4;

1.4
date	2001.04.10.19.57.48;	author markm;	state Exp;
branches;
next	1.3;

1.3
date	2001.03.22.15.17.46;	author markm;	state Exp;
branches;
next	1.2;

1.2
date	98.08.07.14.16.20;	author ache;	state Exp;
branches;
next	1.1;

1.1
date	98.08.07.12.33.29;	author ache;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Update to 5.6.2.  Also:

- redirect output from h2ph to /dev/null [1];
- fix File::Path insecure file/directory permissions [2];
  this resolves CAN-2004-0452
  (http://vuxml.freebsd.org/c418d472-6bd1-11d9-93ca-000a95bc6fae.html);
- for OSVERSION < 500036, create symlinks in /usr/bin not only for
  perl and suidperl, but also for a2p, c2ph, find2perl, h2ph, h2xs,
  perlbug, perlcc, perldoc, pl2pm, pod2html, pod2latex, pod2man,
  pod2text, s2p, and splain;  perl and suidperl are still enough for
  more recent FreeBSD versions [3];
- clean up created symlinks upon deinstallation [4];
- try to cleanup symlinks created by older versions of lang/perl5 and
  lang/perl5.8, during both installation and deinstallation [5];
- added support for DISABLE_BSDPAN environment variable [6];
- be explicit about use.perl usage after installation of 4.X systems,
  and on systems where lang/perl5.8 is prefered to lang/perl5; the exact
  range is OSVERSION < 500036 || OSVERSION >= 502100 [7];
- respect __MAKE_CONF partially (the build-time value is used) [8];
- use.perl is now the same as pkg-install is now the same as
  pkg-deinstall;  apart from the changes already mentioned above, this
  is a shell script now;
- use.perl's logic is also simplified in several ways [9];
- fix a BSDPAN bug [10];
- create and remove %%SITE_PERL%%/%%PERL_ARCH%%/auto, just
  like  lang/perl5.8 does, to silent pointyhat [11];
- apply a patch to handle daylight saving time correctly in
  POSIX::strftime [12];
- the port now creates and uses shared libperl.so, as lang/perl5.8 port
  does;
- move MAN3 manual pages under ${PREFIX}/lib/perl5/${PERL_VER}/perl, as
  to avoid conflict with some of the p5 ports;
- do not build suidperl by default any longer;  one should use
  ENABLE_SUIDPERL to do that;
- move out manpage list to a separate Makefile.man;
- in general, the port layout is made much more similar to lang/perl5.8,
  including.

Outstanding issues: Module::Build support for BSDPAN, SU_CMD support (PR
70831), PR 64963 (partially), and anything else that I forgot.

[1] Nudged by: krion
[2] Reported by: nectar
    Patch from: Chris Turner @@ RedHat
[3] PR: 55760, 57151, 58406
[4] Requested by: kris
    PR: 54262
[5] PR: 51281, 51539
[6] PR: 57134
[7] PR: 60736
[8] PR: 74431
[9] Perl version submitted by des, implemented in sh
[10] Reported by: Alexander Nagilum <freebsd %at% nagilum de>
[11] PR: 71390
[12] PR: 74042, perl bug 18238
@
text
@#!/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 [ -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=${OSVERSION}
fi

if [ $osreldate -ge 500043 -a $osreldate -lt 502100 ] ; then
	${PKG_PREFIX}/bin/use.perl port
fi

exit 0
@


1.9
log
@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)
@
text
@@


1.8
log
@Don't run use.perl port by default on recent versions of -CURRENT.
@
text
@d12 6
a17 2
if [ -f /sbin/sysctl -a -x /sbin/sysctl ] ; then
	osreldate=`/sbin/sysctl -n kern.osreldate`
d19 1
a19 1
	osreldate=`/usr/sbin/sysctl -n kern.osreldate`
@


1.7
log
@On recent 5-CURRENT, there is no Perl wrapper.  It is therefore possible
that /usr/bin/perl5 doesn't exist, which violates some of use.perl's
assumptions.  Take care of this case. [1]

Also in the case of a recent 5-CURRENT, automatically perform
"use.perl port" during package/port installation.  This helps the
installation of sysinstall's new "Perl distribution", in that
sysinstall doesn't need to do this explicitly as Yet Another Special
Case. [2]

PORTREVISION bump after all this good stuff.

Requested by:	bmah [1], jhb [2]
Submitted by:	tobez (port MAINTAINER)
Approved by:	portmgr (kris)
@
text
@d18 1
a18 1
if [ $osreldate -ge 500043 ] ; then
@


1.6
log
@Unforbid the port for the use of general FreeBSD public.

Compile perl with BSDPAN support, both -current and -stable.  The
version of BSDPAN used here coincides accidentally with the one present
in the -current system perl, but is installed in a different place.

Provide a script, use.perl, to facilitate switching of the perl used by
default between the system perl and this port.  Also print a message
describing the usage of use.perl (this works for the port and for the
package built from it).  The switching to the port version is done by
removing /usr/bin/perl and /usr/bin/suidperl (they both have link count
>1, so this is reversible), and making them to be symlinks to the
corresponding binaries in $PREFIX/bin.  Also, assignments of the correct
values of PERL_VER, PERL_VERSION, and PERL_ARCH are appended to
/etc/make.conf.  Last, NOPERL=yes is appended to /etc/make.conf, so that
the changes made will survive system upgrades from source.  The
switching to the system version is more or less a reverse of the process
described above.

Set and use PERL_ARCH which is independed from the one used by the
system perl.

Fix the port for post-malloc.h -current.

Fix a small bogon when PREFIX was used in pkg-install (PKG_PREFIX should
have been used instead).

Reviewed by:	markm, joe
@
text
@d12 9
@


1.5
log
@Fix wrong directory name.

PR:		28462
OK'ed by:	markm
@
text
@d9 2
a10 2
install -d ${PREFIX}/lib/perl5/site_perl/5.6.1/arch
cd ${INCLUDEDIR} && ${PREFIX}/bin/h2ph *.h machine/*.h sys/*.h
@


1.4
log
@Update for Perl 5.6.1.

As before, this is a "guru only" port. If you know what you are
doing, go ahead and use it. If not - HANDS OFF!

Perl 5.6.1 will be committed to "base" FreeBSD in a week or 2.
@
text
@d9 1
a9 1
install -d ${PREFIX}/lib/perl5/site_perl/5.6.0/arch
@


1.3
log
@Upgrade this to perl5.6.0 for _knowledgeable_  folks in STABLE who
really want it.

This is still marked FORBIDDEN as there may be all sorts of horrible
incompatabilities with the perl5 in "base", but folks who are willing
to override this and experiment are welcome.

Consider this to be only partially supported. I'll happily commit
patches and fixes, but I don't want to answer too many questions.

Sorry!
@
text
@d7 2
d10 1
a10 1
cd /usr/include && ${PREFIX}/bin/h2ph *.h machine/*.h sys/*.h
@


1.2
log
@create needed directories before making .ph files
@
text
@d7 2
a8 2
install -d ${PREFIX:-/usr/local}/lib/perl5/site_perl/5.005/i386-freebsd
cd /usr/include && ${PREFIX:-/usr/local}/bin/h2ph *.h machine/*.h sys/*.h
@


1.1
log
@generate .ph files on package install now
@
text
@d7 1
@
