View | Details | Raw Unified | Return to bug 55760 | Differences between
and this patch

Collapse All | Expand All

(-)perl5.8/Makefile (-10 / +58 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	perl
8
PORTNAME=	perl
9
PORTVERSION=	${PERL_VER}
9
PORTVERSION=	${PERL_VER}
10
PORTREVISION=	7
10
PORTREVISION=	8
11
CATEGORIES=	lang devel perl5
11
CATEGORIES=	lang devel perl5
12
MASTER_SITES=	${MASTER_SITE_PERL_CPAN} \
12
MASTER_SITES=	${MASTER_SITE_PERL_CPAN} \
13
		${MASTER_SITE_LOCAL:S/$/:local/} \
13
		${MASTER_SITE_LOCAL:S/$/:local/} \
Lines 29-38 Link Here
29
CONFIGURE_ARGS=	-sde -Dprefix=${PREFIX} \
29
CONFIGURE_ARGS=	-sde -Dprefix=${PREFIX} \
30
	-Darchlib=${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
30
	-Darchlib=${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
31
	-Dprivlib=${PREFIX}/lib/perl5/${PERL_VER} \
31
	-Dprivlib=${PREFIX}/lib/perl5/${PERL_VER} \
32
	-Dman1dir=${PREFIX}/lib/perl5/${PERL_VER}/man/man1 \
32
	-Dman3dir=${PREFIX}/lib/perl5/${PERL_VER}/man/man3 \
33
	-Dman3dir=${PREFIX}/lib/perl5/${PERL_VER}/man/man3 \
33
	-Dsitearch=${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH} \
34
	-Dsitearch=${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH} \
34
	-Dsitelib=${PREFIX}/lib/perl5/site_perl/${PERL_VER} \
35
	-Dsitelib=${PREFIX}/lib/perl5/site_perl/${PERL_VER} \
35
	-Dscriptdir=${PREFIX}/bin \
36
	-Dbin=${PREFIX}/bin/perl-${PERL_VER} \
37
	-Dscriptdir=${PREFIX}/bin/perl-${PERL_VER} \
36
	-Ui_malloc -Ui_iconv -Uinstallusrbinperl \
38
	-Ui_malloc -Ui_iconv -Uinstallusrbinperl \
37
	-Dcc="${CC}" \
39
	-Dcc="${CC}" \
38
	-Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\"
40
	-Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\"
Lines 60-68 Link Here
60
CONFIGURE_ARGS+=	-Dusethreads=n
62
CONFIGURE_ARGS+=	-Dusethreads=n
61
.endif
63
.endif
62
64
65
PLIST_SUB+=		PERL_VERSION=${PERL_VERSION} \
66
			PERL_VER=${PERL_VER} \
67
			PERL_ARCH=${PERL_ARCH} \
68
			SITE_PERL=${SITE_PERL:S|^${LOCALBASE}/||}
69
63
INCLUDEDIR=	/usr/include
70
INCLUDEDIR=	/usr/include
64
71
65
.include <bsd.port.pre.mk>
72
.include <bsd.port.pre.mk>
73
.if defined(INACTIVE)
74
PKGMESSAGE=	${WRKDIR}/pkg-message
75
.else
76
PKGMESSAGE=	${PKGDIR}/.not-here
77
.endif
78
66
79
67
MAN1=	a2p.1 c2ph.1 dprofpp.1 enc2xs.1 find2perl.1 h2ph.1 h2xs.1 \
80
MAN1=	a2p.1 c2ph.1 dprofpp.1 enc2xs.1 find2perl.1 h2ph.1 h2xs.1 \
68
	libnetcfg.1 perl.1 perl5004delta.1 perl5005delta.1 \
81
	libnetcfg.1 perl.1 perl5004delta.1 perl5005delta.1 \
Lines 180-185 Link Here
180
.if defined(WITH_GDBM)
193
.if defined(WITH_GDBM)
181
MAN3+=	GDBM_File.3
194
MAN3+=	GDBM_File.3
182
.endif
195
.endif
196
197
MAN1PREFIX=	${PREFIX}/lib/perl5/${PERL_VER}
183
MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VER}
198
MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VER}
184
199
185
LATEST_LINK=	perl5.8
200
LATEST_LINK=	perl5.8
Lines 194-217 Link Here
194
BSDPAN_REVISION=1
209
BSDPAN_REVISION=1
195
210
196
post-patch:
211
post-patch:
197
	${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
212
	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
213
		${FILESDIR}/use.perl \
214
		> ${WRKDIR}/use.perl
215
	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
198
		-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
216
		-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
199
		-e 's|%%PERL_VERSION%%|${PERL_VERSION}|g;' \
217
		-e 's|%%PERL_VERSION%%|${PERL_VERSION}|g;' \
200
		-e 's|%%PERL_ARCH%%|${PERL_ARCH}|g;' \
218
		-e 's|%%PERL_ARCH%%|${PERL_ARCH}|g;' \
201
		${FILESDIR}/use.perl \
219
		${FILESDIR}/set.perl \
202
		> ${WRKDIR}/use.perl
220
		> ${WRKDIR}/set.perl
221
.if defined(INACTIVE)
222
	@${SED} -e 's|%%PERL_VER%%|${PERL_VER}|g;' \
223
		${PKGDIR}/pkg-message \
224
		> ${PKGMESSAGE}
225
.if ${OSVERSION} < 500043
226
	@${ECHO} >> ${PKGMESSAGE}
227
	@${ECHO} >> ${PKGMESSAGE}
228
	@${ECHO} "At any time you can also type" >> ${PKGMESSAGE}
229
	@${ECHO} >> ${PKGMESSAGE}
230
	@${ECHO} "  use.perl system" >> ${PKGMESSAGE}
231
	@${ECHO} >> ${PKGMESSAGE}
232
	@${ECHO} "if you wish to revert back to the system version of perl." >> ${PKGMESSAGE}
233
.endif
234
.endif
235
236
pre-install:
237
	@if [ -e ${PREFIX}/bin/perl -a ! -L ${PREFIX}/bin/perl ]; then \
238
		${ECHO_MSG} "===>  You have old-style perl port installed in ${PREFIX}/bin"; \
239
		${ECHO_MSG} "      Deinstall it first and try again."; \
240
		exit 1; \
241
	fi
203
242
204
post-install:
243
post-install:
205
	@strip ${PREFIX}/bin/perl ${PREFIX}/bin/suidperl
244
	@${STRIP_CMD} ${PREFIX}/bin/perl-${PERL_VER}/perl ${PREFIX}/bin/perl-${PERL_VER}/suidperl
206
	@${LN} -sf ${PREFIX}/bin/perl ${PREFIX}/bin/perl5
207
	@${LN} -sf ${PREFIX}/bin/perl ${PREFIX}/bin/perl${PERL_VER}
208
	${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl
209
.for file in ${BSDPAN_FILES}
245
.for file in ${BSDPAN_FILES}
210
	${MKDIR} ${BSDPAN_DEST}/${file:H}
246
	${MKDIR} ${BSDPAN_DEST}/${file:H}
211
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
247
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
212
		${BSDPAN_WRKSRC}/${file} ${BSDPAN_DEST}/${file}
248
		${BSDPAN_WRKSRC}/${file} ${BSDPAN_DEST}/${file}
213
.endfor
249
.endfor
214
	@(cd ${INCLUDEDIR} && ${PREFIX}/bin/h2ph *.h machine/*.h sys/*.h)
250
	@(cd ${INCLUDEDIR} && ${PREFIX}/bin/perl-${PERL_VER}/h2ph *.h machine/*.h sys/*.h)
251
	${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin
252
	${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/perl-${PERL_VER}
253
	${INSTALL_SCRIPT} ${WRKDIR}/set.perl ${PREFIX}/bin/perl-${PERL_VER}
254
	${LN} -sf ${PREFIX}/bin/perl-${PERL_VER}/set.perl ${PREFIX}/bin/set.perl${PERL_VER}
255
	${LN} -sf ${PREFIX}/bin/perl-${PERL_VER}/perl ${PREFIX}/bin/perl${PERL_VER}
256
	${LN} -sf ${PREFIX}/bin/perl-${PERL_VER}/perl /usr/bin/perl${PERL_VER}
257
	${LN} -sf ${PREFIX}/bin/perl-${PERL_VER}/sperl${PERL_VER} ${PREFIX}/bin/sperl${PERL_VER}
258
	${LN} -sf ${PREFIX}/bin/perl-${PERL_VER}/sperl${PERL_VER} /usr/bin/sperl${PERL_VER}
259
.if defined(INACTIVE)
215
	@fmt ${PKGMESSAGE}
260
	@fmt ${PKGMESSAGE}
261
.else
262
	@${PREFIX}/bin/use.perl ${PERL_VER}
263
.endif
216
264
217
.include <bsd.port.post.mk>
265
.include <bsd.port.post.mk>
(-)perl5.8/files/set.perl (+64 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
PREFIX="%%PREFIX%%"
4
current_date=`date`
5
msg_line="# -- use.perl generated line -- #"
6
man_line="OPTIONAL_MANPATH	%%PREFIX%%/lib/perl5/%%PERL_VERSION%%/man"
7
files_to_perform=`find ${PREFIX}/bin/perl-%%PERL_VER%% -type f ! -name perl%%PERL_VER%% ! -name sperl%%PERL_VER%% ! -name use.perl ! -name set.perl`
8
9
if [ "x$1" = "xactive" ]; then
10
	ln -sf ${PREFIX}/bin/perl-%%PERL_VER%%/perl /usr/bin/perl
11
	ln -sf ${PREFIX}/bin/perl-%%PERL_VER%%/perl /usr/bin/perl5
12
	ln -sf ${PREFIX}/bin/perl-%%PERL_VER%%/sperl /usr/bin/sperl5
13
	ln -sf ${PREFIX}/bin/perl-%%PERL_VER%%/suidperl /usr/bin/suidperl
14
	for f in ${files_to_perform}
15
	do
16
		ln -sf $f ${PREFIX}/bin/`basename $f`
17
	done
18
19
	cat << EOM >> /etc/make.conf
20
# -- use.perl generated deltas -- #
21
# Created: ${current_date}
22
# Setting to use base perl from ports:
23
PERL_VER=%%PERL_VER%%
24
PERL_VERSION=%%PERL_VERSION%%
25
PERL_ARCH=%%PERL_ARCH%%
26
NOPERL=yo
27
NO_PERL=yo
28
NO_PERL_WRAPPER=yo
29
EOM
30
31
	if ! grep -q "$man_line" /etc/manpath.config; then
32
		echo "$msg_line" >> /etc/manpath.config
33
		echo "$man_line" >> /etc/manpath.config
34
	fi
35
	exit 0;
36
37
fi
38
39
if [ "x$1" = "xinactive" ]; then
40
	rm -f /usr/bin/perl
41
	rm -f /usr/bin/perl5
42
	rm -f /usr/bin/sperl5
43
	rm -f /usr/bin/suidperl
44
	for f in ${files_to_perform}
45
	do
46
		rm -f ${PREFIX}/bin/`basename $f`
47
	done
48
49
	cat << EOM >> /etc/make.conf
50
# -- use.perl generated deltas -- #
51
# Created: ${current_date}
52
# Setting to use base system perl:
53
.undef PERL_VER
54
.undef PERL_VERSION
55
.undef PERL_ARCH
56
.undef NOPERL
57
.undef NO_PERL
58
EOM
59
60
	man_line=`echo "$man_line"|sed -e 's#/#\\\\/#g'`
61
	sed -e "/$msg_line/d;/$man_line/d" /etc/manpath.config > /etc/manpath.config.new
62
	mv -f /etc/manpath.config /etc/manpath.config.bak
63
	mv -f /etc/manpath.config.new /etc/manpath.config
64
fi
(-)perl5.8/files/use.perl (-132 / +89 lines)
Lines 1-132 Link Here
1
#! %%PREFIX%%/bin/perl -w
1
#!/bin/sh
2
# $FreeBSD: ports/lang/perl5.8/files/use.perl,v 1.6 2002/07/21 17:09:12 tobez Exp $
2
3
use strict;
3
PREFIX="%%PREFIX%%"
4
4
preserve_system="a2p c2ph find2perl h2ph h2xs perlbug perlcc perldoc pl2pm \
5
# XXX what to do with perldoc, pelbug, perlcc ??
5
		 pod2html pod2latex pod2man pod2text s2p splain"
6
6
7
sub usage
7
if [ -f /sbin/sysctl -a -x /sbin/sysctl ] ; then
8
{
8
	osreldate=`/sbin/sysctl -n kern.osreldate`
9
	print STDERR <<EOF;
9
else
10
Usage:
10
	osreldate=`/usr/sbin/sysctl -n kern.osreldate`
11
  $0 port       -> /usr/bin/perl is the perl5 port
11
fi
12
  $0 system     -> /usr/bin/perl is the system perl
12
13
EOF
13
if [ "x$1" = "x" ]; then
14
	exit 2;
14
	echo "Usage:"
15
}
15
	echo -n "$0 <version>"
16
16
	if [ $osreldate -lt 500043 ] ; then
17
my $port_perl = '%%PREFIX%%/bin/perl';
17
		echo -n "|system"
18
$port_perl =~ tr|/|/|s;
18
	fi
19
19
	echo "<version>	- set perl version as active perl"
20
my $ident = `/usr/bin/ident -q /usr/bin/perl5`;
20
	if [ $osreldate -lt 500043 ] ; then
21
21
		echo "system		- set system perl as active"
22
@ARGV == 1 or usage();
22
	fi
23
if ($ARGV[0] eq 'port') {
23
	exit 2
24
	switch_to_port();
24
fi
25
} elsif ($ARGV[0] eq 'system') {
25
26
	switch_to_system();
26
# Runned for a first time - there is no active perl yet
27
} else {
27
if [ "$1" != "system" -a ! -e /usr/bin/perl ]; then
28
	usage();
28
	${PREFIX}/bin/set.perl$1 active
29
}
29
	exit 0
30
exit 0;
30
fi
31
31
32
# Both functions depend on the idea that switch_to_port leaves
32
if [ -e ${PREFIX}/bin/perl -a ! -L ${PREFIX}/bin/perl ]; then
33
# perl5 alone.  If the wrapper is installed on a -current system,
33
	echo "FATAL: ${PREFIX}/bin/perl is not symlink."
34
# /usr/bin/perl5 will also be the wrapper.
34
	echo "You have old style perl port installed. Reinstall it."
35
35
	exit 1
36
sub switch_to_system
36
fi
37
{
37
38
	# protect against cases where people use PREFIX=/usr
38
# Get current active perl version
39
	if ($port_perl ne '/usr/bin/perl') {
39
if [ -L ${PREFIX}/bin/perl ]; then
40
		unlink '/usr/bin/perl', '/usr/bin/suidperl',
40
	active_version=`realpath ${PREFIX}/bin/perl|sed -e 's#.*perl-\(.*\)/perl#\1#'`
41
			'/usr/bin/perl%%PERL_VERSION%%';
41
fi
42
42
43
		link '/usr/bin/perl5', '/usr/bin/perl';
43
if [ "x${active_version}" = "x$1" ]; then
44
		link '/usr/bin/perl5', '/usr/bin/perl%%PERL_VERSION%%';
44
	echo "perl $1 is already active"
45
45
	exit 0
46
		if ($ident =~ m#src/usr.bin/perl/perl.c#) {
46
fi
47
			link '/usr/bin/perl5', '/usr/bin/suidperl';
47
if [ "$1" = "system" -a -e /usr/bin/perl -a ! -L /usr/bin/perl ]; then
48
		} else {
48
	echo "system perl is already active"
49
			link '/usr/bin/sperl5', '/usr/bin/suidperl';
49
	exit 0
50
		}
50
fi
51
	}
51
52
52
if [ "$1" != "system" -a ! -f ${PREFIX}/bin/set.perl$1 ]; then
53
	open MK, ">> /etc/make.conf" or die "/etc/make.conf: $!";
53
	echo "perl version $1 is not installed"
54
	print MK <<EOF;
54
	exit 1
55
# -- use.perl generated deltas -- #
55
fi
56
# Created: @{[scalar localtime]}
56
57
# Setting to use base system perl:
57
# There is no system perl on 5.x
58
.undef PERL_VER
58
if [ $osreldate -ge 500043 -a $1 = "system" ]; then
59
.undef PERL_VERSION
59
	exit 1
60
.undef PERL_ARCH
60
fi
61
.undef NOPERL
61
62
.undef NO_PERL
62
if [ "$1" != "system" -a "x${active_version}" != "x" -a ! -x ${PREFIX}/bin/set.perl${active_version} ]; then
63
63
	echo "FATAL: can't find ${PREFIX}/bin/set.perl${active_version} script"
64
EOF
64
	echo 1
65
	close MK;
65
fi
66
66
67
	open MPOLD, "< /etc/manpath.config" or die "/etc/manpath.config: $!";
67
# Deactivate active perl
68
	open MPNEW, "> /etc/manpath.config.new" or die "/etc/manpath.config.new: $!";
68
if [ -e /usr/bin/perl -a ! -L /usr/bin/perl ]; then
69
	while (<MPOLD>) {
69
	for f in ${preserve_system}; do
70
		next if m|use.perl generated line|;
70
		mv /usr/bin/$f /usr/bin/${f}.sys
71
		next if m|^\s*OPTIONAL_MANPATH\s+\S+/lib/perl5/%%PERL_VERSION%%/man\s*$|;
71
	done
72
		print MPNEW;
72
else
73
	}
73
	if [ -e /usr/bin/perl ]; then
74
	close MPNEW;
74
		${PREFIX}/bin/set.perl${active_version} inactive
75
	close MPOLD;
75
	fi
76
	rename '/etc/manpath.config', '/etc/manpath.config.bak';
76
fi
77
	rename '/etc/manpath.config.new', '/etc/manpath.config';
77
78
}
78
if [ $osreldate -lt 500043 -a $1 = "system" ]; then
79
79
	ln -f /usr/bin/perl5.005* /usr/bin/perl
80
sub switch_to_port
80
	ln -f /usr/bin/perl5.005* /usr/bin/perl5
81
{
81
	ln -f /usr/bin/sperl5.005* /usr/bin/sperl5
82
	# protect against cases where people use PREFIX=/usr
82
	ln -f /usr/bin/sperl5.005* /usr/bin/suidperl
83
	if ($port_perl ne '/usr/bin/perl') {
83
	for f in ${preserve_system}; do
84
		if ($ident =~ m#src/usr.bin/perl/perl.c#) {
84
		mv /usr/bin/${f}.sys /usr/bin/$f
85
			rename '/usr/bin/perl', '/usr/bin/perl-wrapper';
85
	done
86
		} else {
86
	exit 0
87
			unlink '/usr/bin/perl';
87
fi
88
		}
88
89
89
${PREFIX}/bin/set.perl$1 active
90
		unlink '/usr/bin/suidperl', '/usr/bin/perl%%PERL_VERSION%%';
91
92
		symlink '%%PREFIX%%/bin/perl', '/usr/bin/perl';
93
		symlink '%%PREFIX%%/bin/suidperl', '/usr/bin/suidperl';
94
		symlink '%%PREFIX%%/bin/perl', '/usr/bin/perl%%PERL_VERSION%%';
95
	}
96
97
	open MK, ">> /etc/make.conf" or die "/etc/make.conf: $!";
98
	print MK <<EOF;
99
# -- use.perl generated deltas -- #
100
# Created: @{[scalar localtime]}
101
# Setting to use base perl from ports:
102
PERL_VER=%%PERL_VER%%
103
PERL_VERSION=%%PERL_VERSION%%
104
PERL_ARCH=%%PERL_ARCH%%
105
NOPERL=yo
106
NO_PERL=yo
107
NO_PERL_WRAPPER=yo
108
109
EOF
110
	close MK;
111
112
	my $perl_port_manpath = <<EOF;
113
# -- use.perl generated line -- #
114
OPTIONAL_MANPATH	%%PREFIX%%/lib/perl5/%%PERL_VERSION%%/man
115
EOF
116
117
	open MPOLD, "< /etc/manpath.config" or die "/etc/manpath.config: $!";
118
	open MPNEW, "> /etc/manpath.config.new" or die "/etc/manpath.config.new: $!";
119
	my $modified = 0;
120
	while (<MPOLD>) {
121
		if (!$modified && m|^\s*OPTIONAL_MANPATH\s+\S+/lib/perl5/\S+/man\s*$|) {
122
			print MPNEW $perl_port_manpath;
123
			$modified = 1;
124
		}
125
		print MPNEW;
126
	}
127
	print MPNEW $perl_port_manpath unless $modified;
128
	close MPNEW;
129
	close MPOLD;
130
	rename '/etc/manpath.config', '/etc/manpath.config.bak';
131
	rename '/etc/manpath.config.new', '/etc/manpath.config';
132
}
(-)perl5.8/pkg-deinstall (+30 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
if [ -f /sbin/sysctl -a -x /sbin/sysctl ] ; then
4
	osreldate=`/sbin/sysctl -n kern.osreldate`
5
else
6
	osreldate=`/usr/sbin/sysctl -n kern.osreldate`
7
fi
8
9
if [ "$2" = POST-DEINSTALL ] ; then
10
	if [ ! -e /usr/bin/perl ]; then
11
		if [ $osreldate -lt 500043 ] ; then
12
			${PKG_PREFIX}/bin/use.perl system
13
		elif [ -d ${PKG_PREFIX}/bin/perl-* ]; then
14
			${PKG_PREFIX}/bin/use.perl `ls -d ${PKG_PREFIX}/bin/perl-* | sed -e "s#${PKG_PREFIX}/bin/perl-##"`
15
		fi
16
	fi
17
	if [ ! -d ${PKG_PREFIX}/bin/perl-* ]; then
18
		rm -f ${PKG_PREFIX}/bin/use.perl
19
	fi
20
	exit 0
21
fi
22
23
PERL_VER=`echo $1|sed -e 's/perl-\(.*\)_.*/\1/'`
24
25
active_version=`ls -l ${PKG_PREFIX}/bin/perl 2>/dev/null|awk '{print $11}'|sed -e 's#.*perl-\(.*\)/perl#\1#'`
26
if [ "x${active_version}" = "x${PERL_VER}" ]; then
27
	${PKG_PREFIX}/bin/set.perl${PERL_VER} inactive
28
fi
29
30
exit 0
(-)perl5.8/pkg-install (-5 / +21 lines)
Lines 1-13 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
if [ "$2" != POST-INSTALL ] ; then
3
PERL_VER=`echo $1|sed -e 's/perl-\(.*\)_.*/\1/'`
4
	exit 0
5
fi
6
4
7
INCLUDEDIR=/usr/include
5
INCLUDEDIR=/usr/include
8
6
9
install -d ${PKG_PREFIX}/lib/perl5/site_perl/5.8.0/mach
7
if [ "$2" = POST-INSTALL ] ; then
10
cd ${INCLUDEDIR} && ${PKG_PREFIX}/bin/h2ph *.h machine/*.h sys/*.h
8
	install -d ${PKG_PREFIX}/lib/perl5/site_perl/${PERL_VER}/mach
9
	cd ${INCLUDEDIR} && ${PKG_PREFIX}/bin/perl-${PERL_VER}/h2ph *.h machine/*.h sys/*.h
11
10
11
	cp -f ${PKG_PREFIX}/bin/perl-${PERL_VER}/use.perl ${PKG_PREFIX}/bin
12
	ln -sf ${PKG_PREFIX}/bin/perl-${PERL_VER}/set.perl ${PKG_PREFIX}/bin/set.perl${PERL_VER}
13
	ln -sf ${PKG_PREFIX}/bin/perl-${PERL_VER}/perl ${PKG_PREFIX}/bin/perl${PERL_VER}
14
	ln -sf ${PKG_PREFIX}/bin/perl-${PERL_VER}/perl /usr/bin/perl${PERL_VER}
15
	ln -sf ${PKG_PREFIX}/bin/perl-${PERL_VER}/sperl${PERL_VER} ${PKG_PREFIX}/bin/sperl${PERL_VER}
16
	ln -sf ${PKG_PREFIX}/bin/perl-${PERL_VER}/sperl${PERL_VER} /usr/bin/sperl${PERL_VER}
17
18
	${PKG_PREFIX}/bin/use.perl ${PERL_VER}
19
	exit 0
20
fi
21
22
# PRE-INSTALL
23
if [ -e ${PKG_PREFIX}/bin/perl -a ! -L ${PKG_PREFIX}/bin/perl ]; then
24
	echo "===>  You have old-style perl port installed in ${PKG_PREFIX}/bin"
25
	echo "      Deinstall it first and try again."
26
	exit 1
27
fi
12
28
13
exit 0
29
exit 0
(-)perl5.8/pkg-message (-10 / +3 lines)
Lines 1-10 Link Here
1
Installation of Perl distribution is finished.  Please note, that since
1
Installation of Perl distribution is finished.  Please note, that this 
2
Perl is also in the base system, this distribution will not be used by
2
distribution will not be used by default.
3
default.
4
3
5
If you want this version of Perl to be used by default, please type
4
If you want this version of Perl to be used by default, please type
6
5
7
  use.perl port
6
  use.perl %%PERL_VER%%
8
7
9
Assuming that use.perl script (which was installed with the rest of the
8
Assuming that use.perl script (which was installed with the rest of the
10
Perl distribution) can be found in your PATH (you might have to type
9
Perl distribution) can be found in your PATH (you might have to type
Lines 14-22 Link Here
14
also put some variables into your /etc/make.conf file, so that newly
13
also put some variables into your /etc/make.conf file, so that newly
15
installed ports (not packages!) will use new version of perl, and the
14
installed ports (not packages!) will use new version of perl, and the
16
system upgrades from the source will not overwrite the changes made.
15
system upgrades from the source will not overwrite the changes made.
17
18
At any time you can also type
19
20
  use.perl system
21
22
if you wish to revert back to the system version of perl.
(-)perl5.8/pkg-plist (-33 / +43 lines)
Lines 1-36 Link Here
1
bin/perl
1
bin/set.perl%%PERL_VER%%
2
@exec ln -fs %D/%F %B/perl5
2
bin/perl-%%PERL_VER%%/set.perl
3
@unexec rm %B/perl5
3
bin/perl-%%PERL_VER%%/use.perl
4
bin/a2p
4
bin/perl-%%PERL_VER%%/a2p
5
bin/c2ph
5
bin/perl-%%PERL_VER%%/c2ph
6
bin/dprofpp
6
bin/perl-%%PERL_VER%%/dprofpp
7
bin/enc2xs
7
bin/perl-%%PERL_VER%%/enc2xs
8
bin/find2perl
8
bin/perl-%%PERL_VER%%/find2perl
9
bin/h2ph
9
bin/perl-%%PERL_VER%%/h2ph
10
bin/h2xs
10
bin/perl-%%PERL_VER%%/h2xs
11
bin/libnetcfg
11
bin/perl-%%PERL_VER%%/libnetcfg
12
bin/perl%%PERL_VER%%
12
bin/perl-%%PERL_VER%%/perl
13
bin/perlbug
13
bin/perl-%%PERL_VER%%/perl%%PERL_VER%%
14
bin/perlcc
14
@exec ln -fs %D/%F %D/bin/perl%%PERL_VER%%
15
bin/perldoc
15
@unexec rm %D/bin/perl%%PERL_VER%%
16
bin/perlivp
16
@exec ln -fs %D/%F /usr/bin/perl%%PERL_VER%%
17
bin/piconv
17
@unexec rm /usr/bin/perl%%PERL_VER%%
18
bin/pl2pm
18
bin/perl-%%PERL_VER%%/perlbug
19
bin/pod2html
19
bin/perl-%%PERL_VER%%/perlcc
20
bin/pod2latex
20
bin/perl-%%PERL_VER%%/perldoc
21
bin/pod2man
21
bin/perl-%%PERL_VER%%/perlivp
22
bin/pod2text
22
bin/perl-%%PERL_VER%%/piconv
23
bin/pod2usage
23
bin/perl-%%PERL_VER%%/pl2pm
24
bin/podchecker
24
bin/perl-%%PERL_VER%%/pod2html
25
bin/podselect
25
bin/perl-%%PERL_VER%%/pod2latex
26
bin/psed
26
bin/perl-%%PERL_VER%%/pod2man
27
bin/pstruct
27
bin/perl-%%PERL_VER%%/pod2text
28
bin/s2p
28
bin/perl-%%PERL_VER%%/pod2usage
29
bin/sperl%%PERL_VER%%
29
bin/perl-%%PERL_VER%%/podchecker
30
bin/splain
30
bin/perl-%%PERL_VER%%/podselect
31
bin/suidperl
31
bin/perl-%%PERL_VER%%/psed
32
bin/use.perl
32
bin/perl-%%PERL_VER%%/pstruct
33
bin/xsubpp
33
bin/perl-%%PERL_VER%%/s2p
34
bin/perl-%%PERL_VER%%/sperl%%PERL_VER%%
35
@exec ln -fs %D/%F %D/bin/sperl%%PERL_VER%%
36
@unexec rm %D/bin/sperl%%PERL_VER%%
37
@exec ln -fs %D/%F /usr/bin/sperl%%PERL_VER%%
38
@unexec rm /usr/bin/sperl%%PERL_VER%%
39
bin/perl-%%PERL_VER%%/splain
40
bin/perl-%%PERL_VER%%/suidperl
41
bin/perl-%%PERL_VER%%/xsubpp
34
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/Cwd.pm
42
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/Cwd.pm
35
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/Config.pm
43
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/Config.pm
36
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/lib.pm
44
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/lib.pm
Lines 1445-1450 Link Here
1445
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/Attribute 2>/dev/null || true
1453
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/Attribute 2>/dev/null || true
1446
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/pod 2>/dev/null || true
1454
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/pod 2>/dev/null || true
1447
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/man/man3 2>/dev/null || true
1455
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/man/man3 2>/dev/null || true
1456
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/man/man1 2>/dev/null || true
1448
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/man 2>/dev/null || true
1457
@unexec rmdir %D/lib/perl5/%%PERL_VER%%/man 2>/dev/null || true
1449
@unexec rmdir %D/lib/perl5/%%PERL_VER%% 2>/dev/null || true
1458
@unexec rmdir %D/lib/perl5/%%PERL_VER%% 2>/dev/null || true
1450
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/sys 2>/dev/null || true
1459
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/sys 2>/dev/null || true
Lines 1453-1455 Link Here
1453
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%% 2>/dev/null || true
1462
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%% 2>/dev/null || true
1454
@unexec rmdir %D/lib/perl5/site_perl 2>/dev/null || true
1463
@unexec rmdir %D/lib/perl5/site_perl 2>/dev/null || true
1455
@unexec rmdir %D/lib/perl5 2>/dev/null || true
1464
@unexec rmdir %D/lib/perl5 2>/dev/null || true
1465
@unexec rmdir %D/bin/perl-%%PERL_VER%% 2>/dev/null || true

Return to bug 55760