aboutsummaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-02-12 20:27:01 +0800
committerache <ache@FreeBSD.org>1995-02-12 20:27:01 +0800
commitb0902463d223cd971bd5a1c56302ad06ca79a2a7 (patch)
treee39e3d1fe93d721aa2d9e31b942a56d7b091cef9 /shells
parentceccb9403de38ea189e4f8fa4d7b48d56aa04e5d (diff)
downloadfreebsd-ports-gnome-b0902463d223cd971bd5a1c56302ad06ca79a2a7.tar.gz
freebsd-ports-gnome-b0902463d223cd971bd5a1c56302ad06ca79a2a7.tar.zst
freebsd-ports-gnome-b0902463d223cd971bd5a1c56302ad06ca79a2a7.zip
Install/uninstall bash into /etc/shells
Submitted by: mark@grondar.za
Diffstat (limited to 'shells')
-rw-r--r--shells/bash/pkg-plist2
-rw-r--r--shells/bash1/pkg-plist2
-rw-r--r--shells/bash2/pkg-plist2
-rw-r--r--shells/bash3/pkg-plist2
4 files changed, 8 insertions, 0 deletions
diff --git a/shells/bash/pkg-plist b/shells/bash/pkg-plist
index 538cc642cbbb..eba921d1aacb 100644
--- a/shells/bash/pkg-plist
+++ b/shells/bash/pkg-plist
@@ -1,5 +1,7 @@
@cwd /usr/local
bin/bash
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
bin/bashbug
man/man1/bash.1
man/man1/bash_builtins.1
diff --git a/shells/bash1/pkg-plist b/shells/bash1/pkg-plist
index 538cc642cbbb..eba921d1aacb 100644
--- a/shells/bash1/pkg-plist
+++ b/shells/bash1/pkg-plist
@@ -1,5 +1,7 @@
@cwd /usr/local
bin/bash
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
bin/bashbug
man/man1/bash.1
man/man1/bash_builtins.1
diff --git a/shells/bash2/pkg-plist b/shells/bash2/pkg-plist
index 538cc642cbbb..eba921d1aacb 100644
--- a/shells/bash2/pkg-plist
+++ b/shells/bash2/pkg-plist
@@ -1,5 +1,7 @@
@cwd /usr/local
bin/bash
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
bin/bashbug
man/man1/bash.1
man/man1/bash_builtins.1
diff --git a/shells/bash3/pkg-plist b/shells/bash3/pkg-plist
index 538cc642cbbb..eba921d1aacb 100644
--- a/shells/bash3/pkg-plist
+++ b/shells/bash3/pkg-plist
@@ -1,5 +1,7 @@
@cwd /usr/local
bin/bash
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells
bin/bashbug
man/man1/bash.1
man/man1/bash_builtins.1