diff options
Diffstat (limited to 'shells')
-rw-r--r-- | shells/Makefile | 1 | ||||
-rw-r--r-- | shells/bashc/Makefile | 31 | ||||
-rw-r--r-- | shells/bashc/distinfo | 3 | ||||
-rw-r--r-- | shells/bashc/pkg-deinstall | 22 | ||||
-rw-r--r-- | shells/bashc/pkg-descr | 15 | ||||
-rw-r--r-- | shells/bashc/pkg-install | 19 |
6 files changed, 91 insertions, 0 deletions
diff --git a/shells/Makefile b/shells/Makefile index 6aefe0045a14..bd3a27f544b4 100644 --- a/shells/Makefile +++ b/shells/Makefile @@ -6,6 +6,7 @@ SUBDIR += 44bsd-csh SUBDIR += bash SUBDIR += bash-completion + SUBDIR += bashc SUBDIR += bush SUBDIR += ch SUBDIR += es 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 |