head	1.15;
access;
symbols
	old_old_old_old_RELEASE_4_11_0:1.14
	old_old_old_old_RELEASE_5_3_0:1.13
	old_old_old_old_RELEASE_4_10_0:1.11
	old_old_old_old_RELEASE_5_2_1:1.8
	old_old_old_old_RELEASE_5_2_0:1.8
	old_old_old_old_RELEASE_4_9_0:1.7
	old_old_old_old_RELEASE_5_1_0:1.7
	old_old_old_old_RELEASE_4_8_0:1.7
	old_old_old_old_RELEASE_5_0_0:1.7
	old_old_old_old_RELEASE_4_7_0:1.7
	old_old_old_old_old_RELEASE_4_6_1:1.6
	old_old_old_old_old_RELEASE_4_6_0:1.6
	old_old_old_old_old_RELEASE_5_0_DP1:1.6
	old_old_old_old_old_RELEASE_4_5_0:1.6
	old_old_old_old_old_RELEASE_4_4_0:1.5
	old_old_old_old_old_RELEASE_4_3_0:1.4
	old_old_old_old_old_RELEASE_4_2_0:1.2
	old_old_old_old_old_RELEASE_4_1_1:1.2
	old_old_old_old_old_RELEASE_4_1_0:1.2
	old_old_old_old_old_RELEASE_3_5_0:1.2
	old_old_old_old_old_RELEASE_4_0_0:1.2
	old_old_old_old_old_RELEASE_3_4_0:1.2
	old_old_old_old_old_RELEASE_3_3_0:1.2
	old_old_old_old_old_RELEASE_3_2_0:1.2
	old_old_old_old_old_RELEASE_3_1_0:1.2
	old_old_old_old_old_RELEASE_2_2_8:1.2
	old_old_old_old_old_RELEASE_3_0_0:1.2;
locks; strict;
comment	@# @;


1.15
date	2005.02.01.13.36.20;	author tobez;	state dead;
branches;
next	1.14;

1.14
date	2004.11.25.11.01.14;	author sem;	state Exp;
branches;
next	1.13;

1.13
date	2004.07.30.08.31.19;	author tobez;	state Exp;
branches;
next	1.12;

1.12
date	2004.05.30.23.13.55;	author tobez;	state Exp;
branches;
next	1.11;

1.11
date	2004.03.05.21.38.03;	author marcus;	state Exp;
branches;
next	1.10;

1.10
date	2004.02.19.09.40.50;	author philip;	state Exp;
branches;
next	1.9;

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

1.8
date	2003.10.27.19.48.02;	author tobez;	state Exp;
branches;
next	1.7;

1.7
date	2002.07.21.17.09.09;	author tobez;	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.15
log
@Update to 5.8.6.  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
  [7];
- respect __MAKE_CONF partially (the build-time value is used) [8];
- fix threaded build - respect PTHREAD_CFLAGS and PTHREAD_LIBS [9].
- 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 [10];
- fix a BSDPAN bug [11].

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] PR: 73233
[10] Perl version submitted by des, implemented in sh
[11] Reported by: Alexander Nagilum <freebsd %at% nagilum de>
@
text
@#!/bin/sh

if [ "$2" != POST-INSTALL ] ; then
	exit 0
fi

INCLUDEDIR=/usr/include

install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.5/mach/auto
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.5/auto
install -d ${PKG_PREFIX}/lib/perl5/5.8.5/man/man3
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 502100 ] ; then
    	${PKG_PREFIX}/bin/use.perl port
fi

exit 0
@


1.14
log
@- Create PREFIX/SITE_PERL/PERL_ARCH/auto dirrectory on install

Pointed out by:	kris
Approved by:	tobez
@
text
@@


1.13
log
@Update to 5.8.5.
@
text
@d9 1
a9 1
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.5/mach
@


1.12
log
@1. Update to 5.8.4.
2. Make this port respect Makefile.local.
3. Transfer manpages to Makefile.man.
4. Move manpages for modules, included into distribution, into
   lib/perl5/PERL_VER/perl/man/man3, to eliminate file conflicts
   with p5 ports for modules included with perl.
5. Use PREFIX/SITE_PERL_REL instead of SITE_PERL in the Makefile.
6. Switch to bzipped sources.
7. Other small adjustments.

PR:	65925, 66096, 67205

Submitted by:	foxfair (1), Charles Swiger <chuck@@pkix.net> (1), krion (3)
Reported by:	Roy Badami <roy@@gnomon.org.uk> (2)
@
text
@d9 3
a11 3
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.4/mach
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.4/auto
install -d ${PKG_PREFIX}/lib/perl5/5.8.4/man/man3
@


1.11
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
@d9 3
a11 1
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.2/mach
@


1.10
log
@This fixes a little bug introduced in r1.8.

When installing with pkg_add(1), the ${SITE_PERL} directory was not created
causing system headers not to be perlified and installed by h2ph.  This made
some things break in very mysterious ways.

The pkg-install script used by pkg_add(1) doesn't know about the many special
variables in bsd.port.mk, so it shouldn't try to rely on them.

Noticed by:	bento, kris
Approved by:	kris
@
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.9
log
@Update the pkg-install script to run use.perl port after install on recent
versions of -CURRENT.

Reported by:	kris
@
text
@d9 1
a9 1
install -d ${SITE_PERL}/${PERL_ARCH}
@


1.8
log
@Update to 5.8.1.

Also:

Make suidperl optional (ENABLE_SUIDPERL knob).  Switch to perlmalloc by
default, unless threaded perl is built, to improve performance.
Modernize pkg-plist (switch to SITE_PERL where possible).  Update WWW.

Many thanks to foxfair who prepared most of this update.
@
text
@d12 9
@


1.7
log
@Update to 5.8.0 (after repocopy).
@
text
@d9 1
a9 1
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.0/mach
@


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
@d9 1
a9 1
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.6.1/mach
@


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
@
