aboutsummaryrefslogtreecommitdiffstats
path: root/shells/bash-devel/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'shells/bash-devel/pkg-deinstall')
-rw-r--r--shells/bash-devel/pkg-deinstall33
1 files changed, 0 insertions, 33 deletions
diff --git a/shells/bash-devel/pkg-deinstall b/shells/bash-devel/pkg-deinstall
deleted file mode 100644
index 9552db126262..000000000000
--- a/shells/bash-devel/pkg-deinstall
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-BASH="$(echo ${PKG_PREFIX-/usr/local}/bin/bash | /usr/bin/sed -e 's|//|/|g')"
-RBASH="$(echo ${PKG_PREFIX-/usr/local}/bin/rbash | /usr/bin/sed -e 's|//|/|g')"
-SHELLS="${PKG_DESTDIR-}/etc/shells"
-
-case $2 in
-DEINSTALL)
- if grep -qs "^$BASH\$" "$SHELLS"; then
- if [ `id -u` -eq 0 ]; then
- TMPSHELLS=`mktemp -t shells`
- grep -v "^$BASH\$" "$SHELLS" > "$TMPSHELLS"
- cat "$TMPSHELLS" > "$SHELLS"
- rm "$TMPSHELLS"
- else
- echo "Not root, please remove $BASH from $SHELLS manually"
- fi
- fi
- if grep -qs "^$RBASH\$" "$SHELLS"; then
- if [ `id -u` -eq 0 ]; then
- TMPSHELLS=`mktemp -t shells`
- grep -v "^$RBASH\$" "$SHELLS" > "$TMPSHELLS"
- cat "$TMPSHELLS" > "$SHELLS"
- rm "$TMPSHELLS"
- else
- echo "Not root, please remove $RBASH from $SHELLS manually"
- fi
- fi
- ;;
-esac