- 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 <freebsd@galle.com.br> (maintainer)
This commit is contained in:
Yen-Ming Lee 2005-04-19 17:46:52 +00:00
parent 6a7cde9ec4
commit ae34867263
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133693
6 changed files with 40 additions and 0 deletions

View file

@ -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");
-}

View file

@ -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

View file

@ -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");
-}

View file

@ -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