diff options
author | edwin <edwin@FreeBSD.org> | 2003-09-29 12:44:15 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-09-29 12:44:15 +0000 |
commit | 1292e71901fdf4d9a16f723b685812513c3a8a08 (patch) | |
tree | a42652041c02f3c9b53490c686aff0e1fe75e076 /shells | |
parent | 6d53d5b4357f5eb66ed1fc26c17aff6998ff42c2 (diff) | |
download | FreeBSD-ports-1292e71901fdf4d9a16f723b685812513c3a8a08.zip FreeBSD-ports-1292e71901fdf4d9a16f723b685812513c3a8a08.tar.gz |
New port: shells/bash-completion
The shells/bash-completion port installs Ian Macdonald's
programmable completion library for Bash 2.04 and above.
This gives users context- sensitive tab-completion for such
things as program arguments, SSH hostnames, NFS mounts, and
so on.
PR: ports/52790
Submitted by: Kirk Strauser <kirk@strauser.com>
Diffstat (limited to 'shells')
-rw-r--r-- | shells/Makefile | 1 | ||||
-rw-r--r-- | shells/bash-completion-classic/Makefile | 32 | ||||
-rw-r--r-- | shells/bash-completion-classic/distinfo | 1 | ||||
-rw-r--r-- | shells/bash-completion-classic/files/patch-aa | 21 | ||||
-rw-r--r-- | shells/bash-completion-classic/pkg-descr | 7 | ||||
-rw-r--r-- | shells/bash-completion-classic/pkg-message | 9 | ||||
-rw-r--r-- | shells/bash-completion-classic/pkg-plist | 1 | ||||
-rw-r--r-- | shells/bash-completion/Makefile | 32 | ||||
-rw-r--r-- | shells/bash-completion/distinfo | 1 | ||||
-rw-r--r-- | shells/bash-completion/files/patch-aa | 21 | ||||
-rw-r--r-- | shells/bash-completion/pkg-descr | 7 | ||||
-rw-r--r-- | shells/bash-completion/pkg-message | 9 | ||||
-rw-r--r-- | shells/bash-completion/pkg-plist | 1 |
13 files changed, 143 insertions, 0 deletions
diff --git a/shells/Makefile b/shells/Makefile index 1c49995..28216cb 100644 --- a/shells/Makefile +++ b/shells/Makefile @@ -2,6 +2,7 @@ # SUBDIR += 44bsd-csh + SUBDIR += bash-completion SUBDIR += bash1 SUBDIR += bash2 SUBDIR += es diff --git a/shells/bash-completion-classic/Makefile b/shells/bash-completion-classic/Makefile new file mode 100644 index 0000000..aa3d8c4 --- /dev/null +++ b/shells/bash-completion-classic/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: bash_completion +# Date created: 29 May 2003 +# Whom: kirk@strauser.com +# +# $FreeBSD$ +# + +PORTNAME= bash-completion +PORTVERSION= 20030527 +CATEGORIES= shells +MASTER_SITES= http://www.caliban.org/files/bash/ + +MAINTAINER= kirk@strauser.com +COMMENT= Programmable completion library for Bash 2.04 and up + +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 + +WRKSRC= ${WRKDIR}/bash_completion +NO_BUILD= yes + +PKGMESSAGE= ${WRKDIR}/pkg-message + +pre-patch: + @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message >${PKGMESSAGE} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/bash_completion ${PREFIX}/etc/bash_completion + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/shells/bash-completion-classic/distinfo b/shells/bash-completion-classic/distinfo new file mode 100644 index 0000000..001dd5d --- /dev/null +++ b/shells/bash-completion-classic/distinfo @@ -0,0 +1 @@ +MD5 (bash-completion-20030527.tar.gz) = 3b4de4c03804fa97fd3123443a9667c6 diff --git a/shells/bash-completion-classic/files/patch-aa b/shells/bash-completion-classic/files/patch-aa new file mode 100644 index 0000000..c7f3567 --- /dev/null +++ b/shells/bash-completion-classic/files/patch-aa @@ -0,0 +1,21 @@ +--- bash_completion.orig Mon May 26 22:22:44 2003 ++++ bash_completion Wed Jun 4 18:02:33 2003 +@@ -27,14 +27,14 @@ + if [ -n "$FUNCNAME" ]; then + # we're being sourced from within a function, so we can't use + # 'declare', as this will create local variables within a function +- BASH_COMPLETION=${BASH_COMPLETION:-/etc/bash_completion} 2>/dev/null +- BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/etc/bash_completion.d} \ ++ BASH_COMPLETION=${BASH_COMPLETION:-/usr/local/etc/bash_completion} 2>/dev/null ++ BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/usr/local/etc/bash_completion.d} \ + 2>/dev/null + else +- declare -r BASH_COMPLETION=${BASH_COMPLETION:-/etc/bash_completion} \ ++ declare -r BASH_COMPLETION=${BASH_COMPLETION:-/usr/local/etc/bash_completion} \ + 2>/dev/null + declare -r \ +- BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/etc/bash_completion.d} \ ++ BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/usr/local/etc/bash_completion.d} \ + 2>/dev/null + fi + diff --git a/shells/bash-completion-classic/pkg-descr b/shells/bash-completion-classic/pkg-descr new file mode 100644 index 0000000..4f48a968 --- /dev/null +++ b/shells/bash-completion-classic/pkg-descr @@ -0,0 +1,7 @@ +This is a programmable completion library for bash2 users. It features the +ability to tab-complete arguments for many common programs. + +WWW: http://www.caliban.org/bash/index.shtml + +- Kirk Strauser +kirk@strauser.com diff --git a/shells/bash-completion-classic/pkg-message b/shells/bash-completion-classic/pkg-message new file mode 100644 index 0000000..7bbf0ac --- /dev/null +++ b/shells/bash-completion-classic/pkg-message @@ -0,0 +1,9 @@ + +The programmable completion library is not enabled by default for various +reasons. To use it, you should source %%PREFIX%%/etc/bash_completion from +your .bashrc file. For example: + + if [ -f %%PREFIX%%/etc/bash_completion ]; then + . %%PREFIX%%/etc/bash_completion + fi + diff --git a/shells/bash-completion-classic/pkg-plist b/shells/bash-completion-classic/pkg-plist new file mode 100644 index 0000000..82e3255 --- /dev/null +++ b/shells/bash-completion-classic/pkg-plist @@ -0,0 +1 @@ +etc/bash_completion diff --git a/shells/bash-completion/Makefile b/shells/bash-completion/Makefile new file mode 100644 index 0000000..aa3d8c4 --- /dev/null +++ b/shells/bash-completion/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: bash_completion +# Date created: 29 May 2003 +# Whom: kirk@strauser.com +# +# $FreeBSD$ +# + +PORTNAME= bash-completion +PORTVERSION= 20030527 +CATEGORIES= shells +MASTER_SITES= http://www.caliban.org/files/bash/ + +MAINTAINER= kirk@strauser.com +COMMENT= Programmable completion library for Bash 2.04 and up + +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 + +WRKSRC= ${WRKDIR}/bash_completion +NO_BUILD= yes + +PKGMESSAGE= ${WRKDIR}/pkg-message + +pre-patch: + @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message >${PKGMESSAGE} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/bash_completion ${PREFIX}/etc/bash_completion + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/shells/bash-completion/distinfo b/shells/bash-completion/distinfo new file mode 100644 index 0000000..001dd5d --- /dev/null +++ b/shells/bash-completion/distinfo @@ -0,0 +1 @@ +MD5 (bash-completion-20030527.tar.gz) = 3b4de4c03804fa97fd3123443a9667c6 diff --git a/shells/bash-completion/files/patch-aa b/shells/bash-completion/files/patch-aa new file mode 100644 index 0000000..c7f3567 --- /dev/null +++ b/shells/bash-completion/files/patch-aa @@ -0,0 +1,21 @@ +--- bash_completion.orig Mon May 26 22:22:44 2003 ++++ bash_completion Wed Jun 4 18:02:33 2003 +@@ -27,14 +27,14 @@ + if [ -n "$FUNCNAME" ]; then + # we're being sourced from within a function, so we can't use + # 'declare', as this will create local variables within a function +- BASH_COMPLETION=${BASH_COMPLETION:-/etc/bash_completion} 2>/dev/null +- BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/etc/bash_completion.d} \ ++ BASH_COMPLETION=${BASH_COMPLETION:-/usr/local/etc/bash_completion} 2>/dev/null ++ BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/usr/local/etc/bash_completion.d} \ + 2>/dev/null + else +- declare -r BASH_COMPLETION=${BASH_COMPLETION:-/etc/bash_completion} \ ++ declare -r BASH_COMPLETION=${BASH_COMPLETION:-/usr/local/etc/bash_completion} \ + 2>/dev/null + declare -r \ +- BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/etc/bash_completion.d} \ ++ BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/usr/local/etc/bash_completion.d} \ + 2>/dev/null + fi + diff --git a/shells/bash-completion/pkg-descr b/shells/bash-completion/pkg-descr new file mode 100644 index 0000000..4f48a968 --- /dev/null +++ b/shells/bash-completion/pkg-descr @@ -0,0 +1,7 @@ +This is a programmable completion library for bash2 users. It features the +ability to tab-complete arguments for many common programs. + +WWW: http://www.caliban.org/bash/index.shtml + +- Kirk Strauser +kirk@strauser.com diff --git a/shells/bash-completion/pkg-message b/shells/bash-completion/pkg-message new file mode 100644 index 0000000..7bbf0ac --- /dev/null +++ b/shells/bash-completion/pkg-message @@ -0,0 +1,9 @@ + +The programmable completion library is not enabled by default for various +reasons. To use it, you should source %%PREFIX%%/etc/bash_completion from +your .bashrc file. For example: + + if [ -f %%PREFIX%%/etc/bash_completion ]; then + . %%PREFIX%%/etc/bash_completion + fi + diff --git a/shells/bash-completion/pkg-plist b/shells/bash-completion/pkg-plist new file mode 100644 index 0000000..82e3255 --- /dev/null +++ b/shells/bash-completion/pkg-plist @@ -0,0 +1 @@ +etc/bash_completion |