From ae348672638f51b80d0103d54ce521baff8a131e Mon Sep 17 00:00:00 2001 From: Yen-Ming Lee Date: Tue, 19 Apr 2005 17:46:52 +0000 Subject: - It was not installing on FreeBSD 4.x with perl 5.00503. - Rename patch-aa to reflect which file is patched. - update /etc/shells in pkg-plist for package PR: 80104 Submitted by: Renato Botelho (maintainer) --- shells/psh/files/patch-Makefile.PL | 10 ++++++++++ shells/psh/files/patch-aa | 10 ---------- shells/psh/files/patch-postinstall.pl | 18 ++++++++++++++++++ shells/psh/pkg-plist | 2 ++ 4 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 shells/psh/files/patch-Makefile.PL delete mode 100644 shells/psh/files/patch-aa create mode 100644 shells/psh/files/patch-postinstall.pl (limited to 'shells/psh') diff --git a/shells/psh/files/patch-Makefile.PL b/shells/psh/files/patch-Makefile.PL new file mode 100644 index 000000000000..283792b3f0bd --- /dev/null +++ b/shells/psh/files/patch-Makefile.PL @@ -0,0 +1,10 @@ +--- Makefile.PL.orig Thu Apr 7 08:01:59 2005 ++++ Makefile.PL Thu Apr 7 08:01:42 2005 +@@ -67,6 +67,7 @@ + + WriteMakefile ( + NAME => 'psh', ++ PREFIX => '${PREFIX}', + VERSION_FROM => 'lib/Psh.pm', + AUTHOR => 'Gregor N. Purdy (gregor@focusresearch.com)', + ABSTRACT => 'Perl Shell', diff --git a/shells/psh/files/patch-aa b/shells/psh/files/patch-aa deleted file mode 100644 index 283792b3f0bd..000000000000 --- a/shells/psh/files/patch-aa +++ /dev/null @@ -1,10 +0,0 @@ ---- Makefile.PL.orig Thu Apr 7 08:01:59 2005 -+++ Makefile.PL Thu Apr 7 08:01:42 2005 -@@ -67,6 +67,7 @@ - - WriteMakefile ( - NAME => 'psh', -+ PREFIX => '${PREFIX}', - VERSION_FROM => 'lib/Psh.pm', - AUTHOR => 'Gregor N. Purdy (gregor@focusresearch.com)', - ABSTRACT => 'Perl Shell', diff --git a/shells/psh/files/patch-postinstall.pl b/shells/psh/files/patch-postinstall.pl new file mode 100644 index 000000000000..6770690f8947 --- /dev/null +++ b/shells/psh/files/patch-postinstall.pl @@ -0,0 +1,18 @@ +--- postinstall.pl.orig Tue Apr 19 10:41:53 2005 ++++ postinstall.pl Tue Apr 19 10:42:00 2005 +@@ -1,9 +1,4 @@ + +-if ($^O eq 'MSWin32') { +- mkdir("/psh"); +- system("xcopy share\\themes \\psh /Y"); +- system("xcopy share\\complete \\psh /Y"); +-} else { + my $where; + + if( -w '/') { +@@ -15,5 +10,4 @@ + system("mkdir -p $where/share/psh"); + system("cp -r share/themes $where/share/psh"); + system("cp -r share/complete $where/share/psh"); +-} + diff --git a/shells/psh/pkg-plist b/shells/psh/pkg-plist index c34c69a29dc7..8e263dd38ac6 100644 --- a/shells/psh/pkg-plist +++ b/shells/psh/pkg-plist @@ -1,5 +1,7 @@ @comment $FreeBSD$ bin/psh +@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak +@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak share/psh/complete/debian share/psh/complete/perl share/psh/complete/standard -- cgit v1.2.3