summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-04-19 17:46:52 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-04-19 17:46:52 +0000
commitae348672638f51b80d0103d54ce521baff8a131e (patch)
tree797d4849be7072a481d7443bf05045d48d052937 /shells
parentUpdate to 4.9.0. (diff)
- 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)
Notes
Notes: svn path=/head/; revision=133693
Diffstat (limited to 'shells')
-rw-r--r--shells/perlsh/files/patch-Makefile.PL (renamed from shells/perlsh/files/patch-aa)0
-rw-r--r--shells/perlsh/files/patch-postinstall.pl18
-rw-r--r--shells/perlsh/pkg-plist2
-rw-r--r--shells/psh/files/patch-Makefile.PL (renamed from shells/psh/files/patch-aa)0
-rw-r--r--shells/psh/files/patch-postinstall.pl18
-rw-r--r--shells/psh/pkg-plist2
6 files changed, 40 insertions, 0 deletions
diff --git a/shells/perlsh/files/patch-aa b/shells/perlsh/files/patch-Makefile.PL
index 283792b3f0bd..283792b3f0bd 100644
--- a/shells/perlsh/files/patch-aa
+++ b/shells/perlsh/files/patch-Makefile.PL
diff --git a/shells/perlsh/files/patch-postinstall.pl b/shells/perlsh/files/patch-postinstall.pl
new file mode 100644
index 000000000000..6770690f8947
--- /dev/null
+++ b/shells/perlsh/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/perlsh/pkg-plist b/shells/perlsh/pkg-plist
index c34c69a29dc7..8e263dd38ac6 100644
--- a/shells/perlsh/pkg-plist
+++ b/shells/perlsh/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
diff --git a/shells/psh/files/patch-aa b/shells/psh/files/patch-Makefile.PL
index 283792b3f0bd..283792b3f0bd 100644
--- a/shells/psh/files/patch-aa
+++ b/shells/psh/files/patch-Makefile.PL
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