aboutsummaryrefslogtreecommitdiff
path: root/shells/bashc
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2008-03-11 22:38:46 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2008-03-11 22:38:46 +0000
commit88863d272aad40c5e1cd8db2b414e1f48d067517 (patch)
tree6c9115b0fdf0688a89197b1f4b79ed2895f493f0 /shells/bashc
parent69d8b1d8dc9b2815a1b9fb930acd1a80a81e529e (diff)
downloadports-88863d272aad40c5e1cd8db2b414e1f48d067517.tar.gz
ports-88863d272aad40c5e1cd8db2b414e1f48d067517.zip
Bash Commander is a traditional GNU bash shell extended with visual two-panel
file browser. Features: * Full bash compatibility. * Embedded visual file browser. * Two file panels, turned on and off by pressing ^O. * Actions and colors configured via .bashrc script. * Run current file on pressing Enter, configurable via commander_start_file() shell function. * Perform an action on pressing F1-F20 keys, configurable via commander_fN() shell functions. WWW: http://groups.google.com/group/bashc/web/overview
Notes
Notes: svn path=/head/; revision=208845
Diffstat (limited to 'shells/bashc')
-rw-r--r--shells/bashc/Makefile31
-rw-r--r--shells/bashc/distinfo3
-rw-r--r--shells/bashc/pkg-deinstall22
-rw-r--r--shells/bashc/pkg-descr15
-rw-r--r--shells/bashc/pkg-install19
5 files changed, 90 insertions, 0 deletions
diff --git a/shells/bashc/Makefile b/shells/bashc/Makefile
new file mode 100644
index 000000000000..eb27bc805398
--- /dev/null
+++ b/shells/bashc/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: bashc
+# Date created: 2008-02-10
+# Whom: alepulver
+#
+# $FreeBSD$
+#
+
+PORTNAME= bashc
+PORTVERSION= 3.2.33.0
+CATEGORIES= shells
+MASTER_SITES= SF
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= alepulver@FreeBSD.org
+COMMENT= GNU bash shell extended with visual two-panel file browser
+
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+
+PLIST_FILES= bin/bashc \
+ etc/bash_commander \
+ etc/bash_dialog
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|autoconf|${TRUE}|' ${WRKSRC}/Makefile.in
+
+post-install:
+ @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" \
+ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/shells/bashc/distinfo b/shells/bashc/distinfo
new file mode 100644
index 000000000000..bed37e7cee1e
--- /dev/null
+++ b/shells/bashc/distinfo
@@ -0,0 +1,3 @@
+MD5 (bashc-3.2.33.0.tgz) = c9198b5ef9a5c8a7b8b182270882a6ae
+SHA256 (bashc-3.2.33.0.tgz) = d8cd2a20628ab6aee7d89ec4e3a0163d2b1cb4d7d3e135af3f82474c5d3e6cb8
+SIZE (bashc-3.2.33.0.tgz) = 2502560
diff --git a/shells/bashc/pkg-deinstall b/shells/bashc/pkg-deinstall
new file mode 100644
index 000000000000..b32f80681332
--- /dev/null
+++ b/shells/bashc/pkg-deinstall
@@ -0,0 +1,22 @@
+#!/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-descr b/shells/bashc/pkg-descr
new file mode 100644
index 000000000000..6ff1af3e653e
--- /dev/null
+++ b/shells/bashc/pkg-descr
@@ -0,0 +1,15 @@
+Bash Commander is a traditional GNU bash shell extended with visual two-panel
+file browser.
+
+Features:
+
+* Full bash compatibility.
+* Embedded visual file browser.
+* Two file panels, turned on and off by pressing ^O.
+* Actions and colors configured via .bashrc script.
+* Run current file on pressing Enter, configurable via commander_start_file()
+ shell function.
+* Perform an action on pressing F1-F20 keys, configurable via commander_fN()
+ shell functions.
+
+WWW: http://groups.google.com/group/bashc/web/overview
diff --git a/shells/bashc/pkg-install b/shells/bashc/pkg-install
new file mode 100644
index 000000000000..03fcbd2126dc
--- /dev/null
+++ b/shells/bashc/pkg-install
@@ -0,0 +1,19 @@
+#!/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