summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-06-20 00:11:12 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-06-20 00:11:12 +0000
commit4a2c04146d66953ffef902240a9859739871c1ef (patch)
tree0ce21fe10a7f9d9de02cddf38b1c998605d63b45 /shells
parentUse the USES=tar:... variants. (diff)
Use the @shell helper instead of custom pkg-install/deinstall scripts.
Notes
Notes: svn path=/head/; revision=358480
Diffstat (limited to 'shells')
-rw-r--r--shells/bashc/Makefile4
-rw-r--r--shells/bashc/pkg-deinstall22
-rw-r--r--shells/bashc/pkg-install19
3 files changed, 0 insertions, 45 deletions
diff --git a/shells/bashc/Makefile b/shells/bashc/Makefile
index 6bf5a2b8f862..9aab6e230604 100644
--- a/shells/bashc/Makefile
+++ b/shells/bashc/Makefile
@@ -14,10 +14,6 @@ MAKE_JOBS_UNSAFE= yes
USES= tar:tgz
GNU_CONFIGURE= yes
-PLIST_FILES= bin/bashc \
- etc/bash_commander \
- etc/bash_dialog
-
post-patch:
@${REINPLACE_CMD} -e 's|autoconf|${TRUE}|' ${WRKSRC}/Makefile.in
diff --git a/shells/bashc/pkg-deinstall b/shells/bashc/pkg-deinstall
deleted file mode 100644
index b32f80681332..000000000000
--- a/shells/bashc/pkg-deinstall
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-BASHC="$(echo ${PKG_PREFIX-/usr/local}/bin/bashc | /usr/bin/sed -e 's|//|/|g')"
-SHELLS="${PKG_DESTDIR-}/etc/shells"
-
-case $2 in
-DEINSTALL)
- if grep -qs "^$BASHC\$" "$SHELLS"; then
- if [ `id -u` -eq 0 ]; then
- TMPSHELLS=`mktemp -t shells`
- grep -v "^$BASHC\$" "$SHELLS" > "$TMPSHELLS"
- cat "$TMPSHELLS" > "$SHELLS"
- rm "$TMPSHELLS"
- else
- echo "Not root, please remove $BASHC from $SHELLS manually"
- fi
- fi
- ;;
-esac
diff --git a/shells/bashc/pkg-install b/shells/bashc/pkg-install
deleted file mode 100644
index 03fcbd2126dc..000000000000
--- a/shells/bashc/pkg-install
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: /tmp/pcvs/ports/shells/bashc/pkg-install,v 1.1 2008-03-11 22:38:46 alepulver Exp $
-#
-
-BASHC="$(echo ${PKG_PREFIX-/usr/local}/bin/bashc | /usr/bin/sed -e 's|//|/|g')"
-SHELLS="/etc/shells"
-
-case $2 in
-POST-INSTALL)
- if [ -d "${SHELLS%/*}" ] && ! grep -qs "^$BASHC\$" "$SHELLS"; then
- if [ `id -u` -eq 0 ]; then
- echo "$BASHC" >> "$SHELLS"
- else
- echo "Not root, please add $BASHC to $SHELLS manually"
- fi
- fi
- ;;
-esac