aboutsummaryrefslogtreecommitdiffstats
path: root/shells/psh
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-04-20 01:46:52 +0800
committerleeym <leeym@FreeBSD.org>2005-04-20 01:46:52 +0800
commit62bf491953f9606f272a907b711beb330ff6bd4e (patch)
treee55ad0ff0b1ef9df9e9f9121421a8a6cd218e167 /shells/psh
parent800264f216cc874f389e1f90123960de7e7a8791 (diff)
downloadfreebsd-ports-gnome-62bf491953f9606f272a907b711beb330ff6bd4e.tar.gz
freebsd-ports-gnome-62bf491953f9606f272a907b711beb330ff6bd4e.tar.zst
freebsd-ports-gnome-62bf491953f9606f272a907b711beb330ff6bd4e.zip
- 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)
Diffstat (limited to 'shells/psh')
-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
3 files changed, 20 insertions, 0 deletions
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