Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/10.4-EOL/shells
In directory vz-cvs-3.sog:/tmp/cvs-serv1363/shells
Added Files:
bash-completion.info bash-completion.patch bash-doc.info
bash.info bash.patch fish.info fish.patch mksh.info scsh.info
scsh.patch tcsh.info zsh.info
Log Message:
duplicate the 10.4 tree
--- NEW FILE: bash.patch ---
diff -uNr bash-3.2/Makefile.in bash-3.2-patched/Makefile.in
--- bash-3.2/Makefile.in 2006-08-17 14:03:35.000000000 -0400
+++ bash-3.2-patched/Makefile.in 2007-02-07 17:09:54.000000000 -0500
@@ -384,7 +384,7 @@
$(BASHINCDIR)/shtty.h $(BASHINCDIR)/typemax.h \
$(BASHINCDIR)/ocache.h
-LIBRARIES = $(SHLIB_LIB) $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB)
$(GLOB_LIB) \
+LIBRARIES = $(SHLIB_LIB) ./lib/readline/libreadline.a
./lib/readline/libhistory.a $(TERMCAP_LIB) $(GLOB_LIB) \
$(TILDE_LIB) $(MALLOC_LIB) $(INTL_LIB) $(LOCAL_LIBS)
LIBDEP = $(SHLIB_DEP) $(INTL_DEP) $(READLINE_DEP) $(HISTORY_DEP)
$(TERMCAP_DEP) $(GLOB_DEP) \
diff -uNr bash-3.2/README.Fink bash-3.2-patched/README.Fink
--- bash-3.2/README.Fink 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/README.Fink 2007-02-07 17:10:16.000000000 -0500
@@ -0,0 +1,29 @@
+This installation of bash has been set up to use an init system similar
+to the tcsh installed by OS X.
+
+In order to use this configuration:
+
+ echo "source ~/.bashrc" > ~/.bash_profile
+ echo "source @PREFIX@/share/init/bash/rc" > ~/.bashrc
+ echo "source @PREFIX@/bin/init.sh" >> ~/.bashrc
+
+In order to customize this setup:
+
+ mkdir ~/Library/init/bash
+
+and create the following files there as necessary:
+
+ aliases.mine - shell aliases
+ completions.mine - completions
+ environment.mine - environment
+ rc.mine - run commands
+ path - command search path
+
+See the corresponding file in @PREFIX@/share/init/bash for more
+information about the role of each file. You can easily extend or
+override the configuration provided by the default file. For example,
+you can add more aliases by adding the appropriate commands in
+aliases.mine.
+
+The init files were originally written by Wilfredo Sanchez, but they contained
+a few errors which I've taken the liberty of correcting.
diff -uNr bash-3.2/doc/Makefile.in bash-3.2-patched/doc/Makefile.in
--- bash-3.2/doc/Makefile.in 2004-07-27 08:57:48.000000000 -0400
+++ bash-3.2-patched/doc/Makefile.in 2007-02-07 17:09:54.000000000 -0500
@@ -228,7 +228,7 @@
-$(INSTALL_DATA) $(srcdir)/bash.info $(DESTDIR)$(infodir)/bash.info
# run install-info if it is present to update the info directory
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
- install-info --dir-file=$(DESTDIR)$(infodir)/dir
$(DESTDIR)$(infodir)/bash.info; \
+ echo "Not installing info now, will wait until package is
installed." \
else true; fi
# if htmldir is set, install the html files into that directory
-if test -n "${htmldir}" ; then \
diff -uNr bash-3.2/doc/bash.1 bash-3.2-patched/doc/bash.1
--- bash-3.2/doc/bash.1 2006-10-03 08:54:26.000000000 -0400
+++ bash-3.2-patched/doc/bash.1 2007-02-07 17:09:54.000000000 -0500
@@ -202,7 +202,7 @@
.TP
.B \-\-noprofile
Do not read either the system-wide startup file
-.FN /etc/profile
+.FN @PREFIX@/etc/profile
or any of the personal initialization files
.IR ~/.bash_profile ,
.IR ~/.bash_login ,
@@ -308,7 +308,7 @@
.B bash
is invoked as an interactive login shell, or as a non-interactive shell
with the \fB\-\-login\fP option, it first reads and
-executes commands from the file \fI/etc/profile\fP, if that
+executes commands from the file \fI@PREFIX@/etc/profile\fP, if that
file exists.
After reading that file, it looks for \fI~/.bash_profile\fP,
\fI~/.bash_login\fP, and \fI~/.profile\fP, in that order, and reads
@@ -364,7 +364,7 @@
When invoked as an interactive login shell, or a non-interactive
shell with the \fB\-\-login\fP option, it first attempts to
read and execute commands from
-.I /etc/profile
+.I @PREFIX@/etc/profile
and
.IR ~/.profile ,
in that order.
@@ -8783,10 +8783,10 @@
.SH FILES
.PD 0
.TP
-.FN /bin/bash
+.FN @PREFIX@/bin/bash
The \fBbash\fP executable
.TP
-.FN /etc/profile
+.FN @PREFIX@/etc/profile
The systemwide initialization file, executed for login shells
.TP
.FN ~/.bash_profile
diff -uNr bash-3.2/doc/bashref.texi bash-3.2-patched/doc/bashref.texi
--- bash-3.2/doc/bashref.texi 2006-09-28 10:25:28.000000000 -0400
+++ bash-3.2-patched/doc/bashref.texi 2007-02-07 17:09:55.000000000 -0500
@@ -4881,7 +4881,7 @@
to read command lines when the shell is interactive.
@item --noprofile
-Don't load the system-wide startup file @file{/etc/profile}
+Don't load the system-wide startup file @file{@PREFIX@/etc/profile}
or any of the personal initialization files
@file{~/.bash_profile}, @file{~/.bash_login}, or @file{~/.profile}
when Bash is invoked as a login shell.
@@ -5006,7 +5006,7 @@
When Bash is invoked as an interactive login shell, or as a
non-interactive shell with the @option{--login} option, it first reads and
-executes commands from the file @file{/etc/profile}, if that file exists.
+executes commands from the file @file{@PREFIX@/etc/profile}, if that file
exists.
After reading that file, it looks for @file{~/.bash_profile},
@file{~/.bash_login}, and @file{~/.profile}, in that order, and reads
and executes commands from the first one that exists and is readable.
@@ -5057,7 +5057,7 @@
When invoked as an interactive login shell, or as a non-interactive
shell with the @option{--login} option, it first attempts to read
-and execute commands from @file{/etc/profile} and @file{~/.profile}, in
+and execute commands from @file{@PREFIX@/etc/profile} and @file{~/.profile}, in
that order.
The @option{--noprofile} option may be used to inhibit this behavior.
When invoked as an interactive shell with the name @code{sh}, Bash
diff -uNr bash-3.2/doc/rbash.1 bash-3.2-patched/doc/rbash.1
--- bash-3.2/doc/rbash.1 2004-05-24 10:19:39.000000000 -0400
+++ bash-3.2-patched/doc/rbash.1 2007-02-07 17:09:55.000000000 -0500
@@ -3,6 +3,6 @@
rbash \- restricted bash, see \fBbash\fR(1)
.SH RESTRICTED SHELL
.nr zY 1
-.so bash.1
+.so man1/bash.1
.SH SEE ALSO
bash(1)
diff -uNr bash-3.2/init/README bash-3.2-patched/init/README
--- bash-3.2/init/README 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/README 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,28 @@
+This directory contains some useful bash files.
+
+In order to use this configuration:
+
+ echo "source ~/.bashrc" > ~/.bash_profile
+ echo "source @PREFIX@/share/init/bash/rc" > ~/.bashrc
+ echo "source @PREFIX@/bin/init.sh" >> ~/.bashrc
+
+In order to customize this setup:
+
+ mkdir ~/Library/init/bash
+
+and create the following files there as necessary:
+
+ aliases.mine - shell aliases
+ completions.mine - completions
+ environment.mine - environment
+ rc.mine - run commands
+ path - command search path
+
+See the corresponding file in @PREFIX@/share/init/bash for more
+information about the role of each file. You can easily extend or
+override the configuration provided by the default file. For example,
+you can add more aliases by adding the appropriate commands in
+aliases.mine.
+
+ -christian
+ [email protected]
diff -uNr bash-3.2/init/aliases bash-3.2-patched/init/aliases
--- bash-3.2/init/aliases 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/aliases 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,39 @@
+##
+# Bash aliases file
+#
+# Wilfredo Sanchez Jr. | [email protected]
+##
+
+##
+# Aliases
+##
+
+#alias .='cwd'
+alias ..='cd ..'
+alias cd..='cd ..'
+alias cdwd='cd $(/bin/pwd)'
+alias cwd='echo $PWD'
+alias l='ls -lg'
+
+##
+# Functions
+##
+
+function files () { find ${1} -type f -print ; }
+function ff () { find . -name ${1} -print ; }
+function ll () { ls -lag "$@" | more ; }
+function word () { fgrep -i "$*" /usr/dict/web2 ; }
+function wordcount () { cat "${1}" | tr -s ' .,;:?\!()[]"' '\012' | \
+ cat -n | tail -1 | awk '{print $1}' ; }
+
+##
+# Read user's aliases
+##
+if [ -r ${bash_initdir}/aliases.mine ]; then
+ source ${bash_initdir}/aliases.mine
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -uNr bash-3.2/init/bash.defaults bash-3.2-patched/init/bash.defaults
--- bash-3.2/init/bash.defaults 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/bash.defaults 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,27 @@
+##
+# Bash
+# User preferences file
+# Override these in rc.mine
+#
+# Wilfredo Sanchez Jr. | [email protected]
+# July 09, 1992
+#
+# MIT Project Athena
+##
+
+if [ -n "$PS1" ]; then
+
+ # Prompts
+ PS1='[\h:\w] \u\$ '
+ PS2=' -> '
+ #PS3=
+ #PS4=
+
+ set -o emacs
+
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -uNr bash-3.2/init/completions bash-3.2-patched/init/completions
--- bash-3.2/init/completions 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/completions 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,17 @@
+##
+# Add completions for the fink command
+##
+complete -W "--help --version apropos configure describe install list
selfupdate selfupdate-cvs remove update-all" fink
+
+##
+# Read user's completions
+##
+if [ -r ${bash_initdir}/completions.mine ]; then
+ source ${bash_initdir}/completions.mine
+fi
+
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -uNr bash-3.2/init/environment bash-3.2-patched/init/environment
--- bash-3.2/init/environment 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/environment 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,29 @@
+##
+# Bourne Again Shell environment file
+# Global environment setup
+#
+# Wilfredo Sanchez Jr. | [email protected]
+# July 09, 1992
+#
+# MIT Project Athena
+#
+# ORIGINAL SOURCES: /usr/athena/lib/init/cshrc (ATHENA REL 7.3P)
+##
+
+export ENV_SET="YES" # avoid repeat
+
+# File creation mask
+umask 022 # all files created are -rw-r--r--
+
+##
+# Load user environment
+##
+
+if [ -f ${bash_initdir}/environment.mine ]; then
+ source ${bash_initdir}/environment.mine
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -uNr bash-3.2/init/logout bash-3.2-patched/init/logout
--- bash-3.2/init/logout 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/logout 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,15 @@
+##
+# Destroy credentials
+##
+
+if [ -z "${TERM_PROGRAM}" ]; then
+ # Don't run these commands if the shell is launched by Terminal,
+ # even if it's a login shell.
+
+ if klist -s; then kdestroy; fi
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -uNr bash-3.2/init/profile bash-3.2-patched/init/profile
--- bash-3.2/init/profile 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/profile 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,31 @@
+##
+# Set path
+##
+
+export PATH="${HOME}/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
+export MANPATH="${HOME}/man:/usr/local/share/man:/usr/share/man"
+
+##
+# Read user's .profile
+##
+ default_initdir=@PREFIX@/share/init
+default_bash_initdir=${default_initdir}/bash
+ user_initdir=~/Library/init
+ user_bash_initdir=${user_initdir}/bash
+
+if [ -r ${user_bash_initdir} ]; then
+ initdir=${user_initdir}
+ bash_initdir=${user_bash_initdir}
+else
+ initdir=${default_initdir}
+ bash_initdir=${default_bash_initdir}
+fi
+
+if [ -r ${bash_initdir}/profile.mine ]; then
+ source ${bash_initdir}/profile.mine
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -uNr bash-3.2/init/rc bash-3.2-patched/init/rc
--- bash-3.2/init/rc 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/init/rc 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1,71 @@
+##
+# Bourne Again Shell config file
+#
+# Wilfredo Sanchez Jr. | [email protected]
+# July 09, 1992
+#
+# MIT Project Athena
+#
+# ORIGINAL SOURCES: /usr/athena/lib/init/cshrc (ATHENA REL 7.3P)
+##
+
+ default_initdir=@PREFIX@/share/init
+default_bash_initdir=${default_initdir}/bash
+ user_initdir=~/Library/init
+ user_bash_initdir=${user_initdir}/bash
+
+if [ -r ${user_bash_initdir} ]; then
+ initdir=${user_initdir}
+ bash_initdir=${user_bash_initdir}
+else
+ initdir=${default_initdir}
+ bash_initdir=${default_bash_initdir}
+fi
+
+# SET UP HOST-DEPENDANT VARIABLES, ETC.
+
+host=$(echo $(hostname) | tr A-Z a-z)
+
+user=`whoami`
+
+export HOST=${host}
+export USER=${user}
+
+# User ID
+if [ -z "${uid}" ]; then uid=$(id | cut -d = -f 2 | cut -d \( -f 1); fi
+
+# SET COMMAND SEARCH PATH AND MAN PATH
+if [ -f ${bash_initdir}/path ]; then source ${bash_initdir}/path; fi
+
+# ENVIRONMENT SETUP
+
+if [ -n "${PS1}" ]; then interactive="YES"; fi
+
+if [ -z "${ENV_SET}" ]; then
+ if [ -f ${default_bash_initdir}/environment ]; then
+ #echo "Initializing environment..."
+ source ${default_bash_initdir}/environment
+ fi
+fi
+
+if [ -r ${default_bash_initdir}/bash.defaults ]; then
+ source ${default_bash_initdir}/bash.defaults
+fi
+
+if [ "${interactive}" = "YES" ]; then
+ # These aren't useful for non-interactive sessions
+ if [ -f ${default_bash_initdir}/aliases ]; then
+ source ${default_bash_initdir}/aliases
+ fi
+ if [ -f ${default_bash_initdir}/completions ]; then
+ source ${default_bash_initdir}/completions
+ fi
+fi
+
+# DEFAULT LOGIN SOURCES
+if [ -f ${bash_initdir}/rc.mine ]; then source ${bash_initdir}/rc.mine; fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -uNr bash-3.2/pathnames.h.in bash-3.2-patched/pathnames.h.in
--- bash-3.2/pathnames.h.in 2003-02-25 11:31:46.000000000 -0500
+++ bash-3.2-patched/pathnames.h.in 2007-02-07 17:09:55.000000000 -0500
@@ -25,7 +25,7 @@
#define DEFAULT_HOSTS_FILE "/etc/hosts"
/* The default login shell startup file. */
-#define SYS_PROFILE "/etc/profile"
+#define SYS_PROFILE "@PREFIX@/etc/profile"
/* The default location of the bash debugger initialization/startup file. */
#define DEBUGGER_START_FILE "@DEBUGGER_START_FILE@"
diff -uNr bash-3.2/profile.fink bash-3.2-patched/profile.fink
--- bash-3.2/profile.fink 1969-12-31 19:00:00.000000000 -0500
+++ bash-3.2-patched/profile.fink 2007-02-07 17:09:55.000000000 -0500
@@ -0,0 +1 @@
+source @PREFIX@/share/init/bash/profile
--- NEW FILE: fish.patch ---
diff -ru fish-1.23.1.orig/configure.ac fish-1.23.1/configure.ac
--- fish-1.23.1.orig/configure.ac 2009-03-08 10:46:47.000000000 -0400
+++ fish-1.23.1/configure.ac 2009-03-08 15:40:25.000000000 -0400
@@ -90,43 +90,6 @@
fi
-#
-# Detect directories which may contain additional headers, libraries
-# and commands. This needs to be done early - before Autoconf starts
-# to mess with CFLAGS and all the other environemnt variables.
-#
-# This mostly helps OS X users, since fink usually installs out of
-# tree and doesn't update CFLAGS.
-#
-
-for i in /usr/pkg /sw /opt /opt/local; do
-
- AC_MSG_CHECKING([for $i/include include directory])
- if test -d $i/include; then
- AC_MSG_RESULT(yes)
- CPPFLAGS="$CPPFLAGS -I$i/include/"
- CFLAGS="$CFLAGS -I$i/include/"
- else
- AC_MSG_RESULT(no)
- fi
-
- AC_MSG_CHECKING([for $i/lib library directory])
- if test -d $i/lib; then
- AC_MSG_RESULT(yes)
- LDFLAGS="$LDFLAGS -L$i/lib/ -R$i/lib/"
- else
- AC_MSG_RESULT(no)
- fi
-
- AC_MSG_CHECKING([for $i/bin command directory])
- if test -d $i/bin; then
- AC_MSG_RESULT(yes)
- optbindirs="$optbindirs $i/bin"
- else
- AC_MSG_RESULT(no)
- fi
-
-done
#
@@ -521,7 +484,6 @@
# Check for libiconv_open if we can't find iconv_open. Silly OS X does
# weird macro magic for the sole purpose of amusing me.
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_SEARCH_LIBS( libiconv_open, iconv, ,
[AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])]
)] )
LIBS_FISH=$LIBS
LIBS=$LIBS_COMMON
@@ -547,7 +509,6 @@
if test x$local_gettext != xno; then
AC_SEARCH_LIBS( gettext, intl,,)
fi
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv
implementation, needed to build fish])] )
LIBS_FISH_PAGER=$LIBS
LIBS=$LIBS_COMMON
@@ -560,7 +521,6 @@
if test x$local_gettext != xno; then
AC_SEARCH_LIBS( gettext, intl,,)
fi
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv
implementation, needed to build fish])] )
LIBS_FISHD=$LIBS
LIBS=$LIBS_COMMON
--- NEW FILE: scsh.patch ---
diff -u -r scsh-0.6.6-orig/c/unix/io.c scsh-0.6.6/c/unix/io.c
--- scsh-0.6.6-orig/c/unix/io.c Tue Sep 14 14:44:54 1999
+++ scsh-0.6.6/c/unix/io.c Tue May 17 20:26:47 2005
@@ -146,12 +146,12 @@
return 0; }
}
+static long write_integer(unsigned long n, FILE *port);
+
long
ps_write_integer(long n, FILE *port)
{
int status;
-
- static long write_integer(unsigned long n, FILE *port);
if (n == 0) {
WRITE_CHAR('0', port, status);
--- NEW FILE: fish.info ---
Package: fish
Version: 1.23.1
Revision: 1
Description: Friendly interactive shell
Source: http://www.fishshell.org/files/%v/%n-%v.tar.bz2
Source-MD5: ead6b7c6cdb21f35a3d4aa1d5fa596f1
PatchFile: %n.patch
PatchFile-MD5: 6bb3647159792f9bed425dbefa6284db
SetLDFLAGS: -L%p/lib -liconv
BuildDepends: <<
autoconf (>= 2.62-2),
automake1.10,
fink (>= 0.24.12),
gettext-bin,
libgettext3-dev,
libiconv-dev,
libncurses5
<<
Depends: <<
libgettext3-shlibs,
libiconv,
libncurses5-shlibs
<<
ConfigureParams: --without-xsel docdir='%p/share/doc/%n'
CompileScript: <<
autoreconf -fiv
%{default_script}
<<
InstallScript: make install DESTDIR=%d
DocFiles: ChangeLog README
License: GPL
Maintainer: Daniel Johnson <[email protected]>
Homepage: http://www.fishshell.org/
InfoTest: TestScript: make test || exit 2
DescUsage: <<
Please see the included help for how to use fish. Typing 'help'
at the command prompt will launch a browser window with the help file.
By default, the help command will try to launch an X11 browser like
firefox if present. If you want it to use your default Mac OS X browser,
set the environment variable BROWSER to 'open'. From bash use
export BROWSER=open
or from within fish use
set BROWSER 'open'
or you could use a text-based browser like lynx.
Also see http://lwn.net/Articles/136232/ for an introduction to fish.
If you wish to use fish as your login shell, add %p/bin/fish to
/etc/shells.
%p/bin is automatically added to the end of the PATH.
<<
--- NEW FILE: mksh.info ---
Info2: <<
Package: mksh%type_pkg[-llvm]
Version: 39
Revision: 3
Description: Enhanced version of the Korn shell
Type: -llvm (boolean)
License: OSI-Approved
Maintainer: Andreas Gockel <[email protected]>
Distribution: (%type_raw[-llvm] = -llvm) 10.5, (%type_raw[-llvm] = -llvm) 10.6
Replaces: mirbsdksh (<< 29.5-1), mksh, mksh-llvm
Conflicts: mirbsdksh (<< 29.5-1), mksh, mksh-llvm
CustomMirror: <<
Primary: http://www.mirbsd.org/MirOS/dist/mir/mksh/
asi-JP: http://pub.allbsd.org/MirOS/dist/mir/mksh/
<<
Source: mirror:custom:mksh-R%vc.cpio.gz
SourceRename: mksh-%v-%r.cpio.gz
Source-md5: 0c3cd172b47eefcdf9a302baa42f5092
NoSourceDirectory: true
PatchScript: /bin/pax -s ',^/*mksh//*,%f/,' -zf mksh-%v-%r.cpio.gz -r
CompileScript: <<
#!/bin/sh -e -x
cd %f
if [ "%type_raw[-llvm]" == "." ]; then
env /bin/sh ./Build.sh -r -Q -j
elif [ "%type_raw[-llvm]" == "-llvm" ]; then
env CC="$(xcode-select -print-path)/usr/bin/llvm-gcc" /bin/sh ./Build.sh -r
-Q -combine
fi
<<
InstallScript: <<
#!/bin/sh -e -x
cd %f
/usr/bin/install -d -m 755 %i/{bin,share/man/man1,etc/profile.d}
/usr/bin/install -c -s -m 555 mksh %i/bin/mksh
/usr/bin/install -c -m 444 mksh.1 %i/share/man/man1/mksh.1
/usr/bin/install -c -m 444 dot.mkshrc %i/etc/mkshrc
/bin/cat >%i/etc/profile.d/mksh.sh <<'EOF'
#!/bin/sh
case $KSH_VERSION in
*MIRBSD\ KSH*)
test \! -e ${HOME-/nonexistant}/.mkshrc && \
test -e %p/etc/mkshrc && \
. %p/etc/mkshrc
;;
esac
EOF
/bin/cat >%i/etc/profile.d/mksh.csh <<'EOF'
#!/bin/csh
exit 0
EOF
/bin/chmod 755 %i/etc/profile.d/*
<<
DocFiles: %f/dot.mkshrc
ConfFiles: %p/etc/mkshrc
Homepage: http://mirbsd.de/mksh
DescDetail: <<
mksh is the MirBSD enhanced version of the Public Domain Korn
shell (pdksh), a bourne-compatible and loosely POSIX compliant
shell which is largely similar to the original AT&T Korn shell.
It includes bug fixes and feature improvements in order to produce
a modern, robust shell good for interactive and especially script
use; emacs mode command line editing and input/script processing
have been made UTF-8 safe.
<<
DescUsage: <<
Add '%p/bin/mksh' to your /etc/shells so users can use
mksh as their default shell
<<
InfoTest: <<
TestScript: cd %f; ./test.sh -v || exit 2
<<
<<
--- NEW FILE: bash.info ---
Package: bash
Version: 3.2
Revision: 1
Depends: libgettext3-shlibs, libiconv
Recommends: bash-completion, bash-doc
BuildDepends: libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, fink
(>= 0.24.12)
Source: gnu
Source-MD5: 00bfa16d58e034e3c2aa27f390390d30
Source2: mirror:gnu:bash/bash-3.2-patches/bash32-001
Source2-MD5: d8e10c754f477e3f3a581af566b89301
Source3: mirror:gnu:bash/bash-3.2-patches/bash32-002
Source3-MD5: d38a5288b2f0ea6c9ac76b66cc74ef7d
Source4: mirror:gnu:bash/bash-3.2-patches/bash32-003
Source4-MD5: 0b90d37911827d8cb95f3b4353cc225e
Source5: mirror:gnu:bash/bash-3.2-patches/bash32-004
Source5-MD5: 8062f3a59631f58d78b180d83759b68a
Source6: mirror:gnu:bash/bash-3.2-patches/bash32-005
Source6-MD5: 585b5943fadf0875ced243b245adde58
Source7: mirror:gnu:bash/bash-3.2-patches/bash32-006
Source7-MD5: 1d5732e01ea938aeed42f3def131fa4d
Source8: mirror:gnu:bash/bash-3.2-patches/bash32-007
Source8-MD5: dcd0cc5d801607827f7c851e72b0eabc
Source9: mirror:gnu:bash/bash-3.2-patches/bash32-008
Source9-MD5: bb3c7dd11198c0ab93d0e960bebf6256
Source10: mirror:gnu:bash/bash-3.2-patches/bash32-009
Source10-MD5: 434a6f29b0ca5f1ab784b2437ae8eaed
ConfigureParams: --enable-restricted --with-curses
PatchFile: %n.patch
PatchFile-MD5: 0eb57c5b5b5232ac8b85c70927f3c8a9
PatchScript: <<
#!/bin/sh -ev
sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
for patch in ../bash32*; do
patch -p0 < $patch
done
<<
InstallScript: <<
install -d -m 755 %i/share/doc/%N
make -j1 install DESTDIR=%d infodir=%p/share/info mandir=%p/share/man
htmldir=%p/share/doc/%N/html
mkdir -p %i/share/init/bash
mv init/* %i/share/init/bash/
mkdir -p %i/etc
mv profile.fink %i/etc/profile
(cd %i/bin; ln -s bash rbash;)
install -m 644 doc/rbash.1 %i/share/man/man1/
rm %i/share/info/*.info
<<
DocFiles: doc/FAQ doc/INTRO CHANGES COPYING NEWS COMPAT README.Fink
Description: The GNU Bourne Again Shell
DescDetail: <<
Bash is an sh-compatible command language interpreter that executes
commands read from the standard input or from a file. Bash also
incorporates useful features from the Korn and C shells (ksh and csh).
Bash is ultimately intended to be a conformant implementation of the IEEE
Posix Shell and Tools specification (IEEE Working Group 1003.2).
<<
DescUsage: <<
See /sw/share/doc/bash/README.Fink for configuration advice.
<<
DescPort: <<
version >= 2.05a can now use the system version of readline instead
of building its own local copy. Installs correctly after
commenting out the install-info line in doc/Makefile.in. Compilation
fails if you define CPPFLAGS, so relevant switches are put into
CFLAGS instead.
Incorporates patch from bash-bug mailing list for tab-completion
of ./
<<
License: GPL
Maintainer: Benjamin Reed <[email protected]>
Homepage: http://www.gnu.org/software/bash/bash.html
--- NEW FILE: scsh.info ---
Package: scsh
Version: 0.6.6
Revision: 20
Architecture: i386, powerpc
Description: Unix shell embedded in Scheme
License: BSD
Maintainer: Jesse Alama <[email protected]>
Source: ftp://ftp.scsh.net/pub/scsh/0.6/%n-%v.tar.gz
Source-MD5: fa0a62f8ec7b0629c297144c59027ba4
BuildDepends: fink (>= 0.24.12-1)
PatchFile: %n.patch
PatchFile-MD5: 6feaa4ee1505b250dc6d001eec85abbf
ConfigureParams: --with-lib-dirs-list='("%p/share/scsh-0.6/modules")'
CompileScript: <<
./configure %c
make
<<
DocFiles: COPYING RELEASE
InstallScript: <<
make install DESTDIR=%d mandir=%p/share/man/man1
mkdir -p %i/share/doc/%n
ln -s ../../../lib/scsh/doc/scsh-manual/man.pdf %i/share/doc/%n/scsh-manual.pdf
ln -s ../../../lib/scsh/doc/scsh-manual/html %i/share/doc/%n/scsh-manual-html
echo "Additional documentation is available in directory %p/lib/scsh/doc" >
%i/share/doc/%n/README
<<
Homepage: http://www.scsh.net/
DescDetail: <<
Scsh is a Unix Scheme shell which uses Scheme as its scripting
language. It is currently aimed primarily at scripting, rather than
interactive use, and makes for a nice Perl/Python/... replacement.
Scsh uses Scheme48 as the underlying Scheme interpreter.
<<
DescUsage: <<
After starting the scsh interpreter (scsh), you can get help by typing
,help
at the prompt.
<<
--- NEW FILE: zsh.info ---
Package: zsh
Version: 4.2.6
Revision: 1002
Depends: libiconv, pcre-shlibs, libncurses5-shlibs (>= 5.4-20041023-1006)
BuildDepends: libiconv-dev, pcre, pcre-bin, libncurses5 (>= 5.4-20041023-1006)
CustomMirror: <<
Master: ftp://ftp.zsh.org/pub/
eur: ftp://ftp.lysator.liu.se/pub/unix/zsh/
eur-NL: ftp://ftp.demon.nl/pub/mirrors/zsh/
eur-DE: ftp://ftp.demon.nl/pub/mirrors/zsh/
aus-AU: ftp://ftp.zsh.org/zsh/
eur-DK: ftp://sunsite.dk/pub/unix/shells/zsh/
eur-FI: ftp://sunsite.dk/pub/unix/shells/zsh/
eur-FR: ftp://nephtys.lip6.fr/pub/unix/shells/zsh/
eur-HU: ftp://ftp.cs.elte.hu/pub/zsh/
eur-IL: ftp://ftp.math.technion.ac.il/pub/zsh/
asi-JP: ftp://ftp.math.technion.ac.il/pub/zsh/
asi-JP: ftp://ftp.ayamura.org/pub/zsh/
asi-KR: ftp://ftp.ayamura.org/pub/zsh/
eur-PL: ftp://sunsite.icm.edu.pl/pub/unix/shells/zsh/
eur-RO: ftp://ftp.roedu.net/pub/mirrors/ftp.zsh.org/pub/zsh/
eur-RO: ftp://ftp.kappa.ro/pub/mirrors/ftp.zsh.org/pub/zsh/
eur-SE: ftp://ftp.lysator.liu.se/pub/unix/zsh/
eur-UK: ftp://ftp.lysator.liu.se/pub/unix/zsh/
nam-US: http://mirrors.theonlinerecordstore.com/zsh/
<<
Source: mirror:custom:/%n-%v.tar.bz2
Source-MD5: 2cefebf742c190cbc611baded825db64
Source2: mirror:custom:%n-%v-doc.tar.bz2
Source2-MD5: 3ca3b7c199db6eb942f2a296e3fad270
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info
--enable-etcdir=%p/etc/%n --enable-maildir-support --enable-pcre
--enable-zsh-secure-free --enable-fndir=%p/share/%n --enable-function-subdirs
--with-curses-terminfo --with-tcsetpgrp
CompileScript:<<
./configure %c
perl -pi.bak -e "s;-ldl -ltinfo -lm -lc;-L%p/lib -lpcre -L%p/lib -lncurses
-L%p/lib -liconv -ltinfo -ldl -lm -lc;" Makefile
perl -pi.bak -e "s;-bundle -flat_namespace -undefined suppress;-bundle
-twolevel_namespace -undefined dynamic_lookup;" Makefile
#cp config.h config.h.bak
#grep -v "HAVE_POLL" config.h.bak > config.h
make
<<
InstallScript:<<
mkdir -p %i/etc/zsh
make install DESTDIR=%d
<<
DocFiles: Doc/zsh.dvi Doc/*.html StartupFiles/* ChangeLog* INSTALL LICENCE
META-FAQ README
Description: The Z Shell
DescDetail: <<
To make the Fink zsh your default user shell, do the following:
1. Add the line /sw/bin/zsh to the file /etc/shells
2. Execute the following command: chsh -s /sw/bin/zsh
3. Open a new terminal session.
.
Zsh is a shell designed for interactive use, although it is also
a powerful scripting language. Many of the useful features of bash,
ksh, and tcsh were incorporated into zsh; many original
features were added. Its syntax is that of an augmented ksh.
It is recommended that you read
http://zsh.sunsite.dk/Intro/intro_toc.html
after installing this shell.
You might also consider installing the zsh-templates package
and the zsh-helpfiles package.
<<
DescUsage: <<
All config files should be kept in %p/etc/zsh.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ATTENTION ATTENTION
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This shell is NOT preconfigured. Sample configure scripts
can be found in your %p/share/doc/zsh directory
You may manually move those sample files to
%p/etc/zsh or alter them to your liking!
Alternatively, the fink zsh-templates package provides a
fully configured set of enhanced configuration scripts
and functions, many specifically designed to facilitate
interaction with the OS X environment.
Documentation is included by default, please read
it carefully. In addition, the zsh-helpfiles package
provides additional documentation.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ATTENTION ATTENTION
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
<<
DescPort: <<
Recent updates by W. G. Scott <[email protected]>
Please complain to him, not dmalloc!
<<
License: GPL
Maintainer: Darian Lanx <[email protected]>
Homepage: http://zsh.sunsite.dk/
--- NEW FILE: tcsh.info ---
Package: tcsh
Version: 6.15.00
Revision: 1001
Description: TENEX C Shell, an enhanced Berkeley csh
License: BSD
Maintainer: Christian Swinehart <[email protected]>
Source: mirror:custom:%n-%v.tar.gz
#Source: mirror:custom:old/%n-%v.tar.gz
CustomMirror: <<
nam-US: ftp://ftp.astron.com/pub/tcsh
nam-US: ftp://ftp.gw.com/pub/unix/tcsh
eur-FI: ftp://ftp.funet.fi/pub/unix/shells/tcsh
<<
Source-MD5: 67a0611620b080bd0eb032b1774382b6
PatchScript: perl -pi -e 's/-mv/#-mv/' Makefile.in
BuildDepends: libiconv-dev, libncurses5 (>= 5.4-20041023-1001)
Depends: libiconv, libncurses5-shlibs (>= 5.4-20041023-1001)
ConfigureParams: --mandir=%p/share/man
CompileScript: <<
./configure %c
make
make tcsh.man
perl tcsh.man2html
<<
InstallScript: <<
make install DESTDIR=%d
make install.man DESTDIR=%d
mkdir -p %i/share/doc/%n/html
install -m0644 tcsh.html/* %i/share/doc/%n/html
<<
DocFiles: <<
BUGS Copyright FAQ Fixes NewThings Ported README WishList Y2K
complete.tcsh csh-mode.el
<<
DescDetail: <<
tcsh (TENEX C Shell) is an enhanced version of the Berkeley
Unix C shell (csh(1)). It includes all the features of 4.4BSD
C shell, plus a command-line editor, programmable word completion,
spelling correction and more.
<<
DescPackaging: <<
The homepage is actually from the Oreilly csh & tcsh
book. It may not be official, but a) it's unusually informative,
and b) astron.com doesn't appear to have a web presence at all.
<<
Homepage: http://www.tcsh.org/
--- NEW FILE: bash-doc.info ---
Package: bash-doc
Version: 3.2
Revision: 2
Suggests: bash
Depends: texinfo
BuildDepends: fink (>= 0.24.12), tetex3-base
Source: mirror:gnu:bash/bash-%v.tar.gz
Source-MD5: 00bfa16d58e034e3c2aa27f390390d30
Source2: mirror:gnu:bash/bash-3.2-patches/bash32-001
Source2-MD5: d8e10c754f477e3f3a581af566b89301
Source3: mirror:gnu:bash/bash-3.2-patches/bash32-002
Source3-MD5: d38a5288b2f0ea6c9ac76b66cc74ef7d
Source4: mirror:gnu:bash/bash-3.2-patches/bash32-003
Source4-MD5: 0b90d37911827d8cb95f3b4353cc225e
Source5: mirror:gnu:bash/bash-3.2-patches/bash32-004
Source5-MD5: 8062f3a59631f58d78b180d83759b68a
Source6: mirror:gnu:bash/bash-3.2-patches/bash32-005
Source6-MD5: 585b5943fadf0875ced243b245adde58
Source7: mirror:gnu:bash/bash-3.2-patches/bash32-006
Source7-MD5: 1d5732e01ea938aeed42f3def131fa4d
Source8: mirror:gnu:bash/bash-3.2-patches/bash32-007
Source8-MD5: dcd0cc5d801607827f7c851e72b0eabc
Source9: mirror:gnu:bash/bash-3.2-patches/bash32-008
Source9-MD5: bb3c7dd11198c0ab93d0e960bebf6256
Source10: mirror:gnu:bash/bash-3.2-patches/bash32-009
Source10-MD5: 434a6f29b0ca5f1ab784b2437ae8eaed
PatchFile: bash.patch
PatchFile-MD5: 0eb57c5b5b5232ac8b85c70927f3c8a9
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
SetCPPFLAGS: -DHAVE_STRERROR
CompileScript:<<
./configure %c
make doc
<<
InstallScript: <<
mkdir -p %i/share/doc/%n/html
install -m 644 doc/bash.html doc/bashref.html %i/share/doc/%n/html
mv examples %i/share/doc/%n
mkdir -p %i/share/info
install -m 644 doc/bashref.info %i/share/info/bash.info
<<
DocFiles: COPYING
InfoDocs: bash.info
Description: Extra documentation for the GNU bash shell
DescDetail: <<
Documentation in texinfo and html format and example files for bash.
<<
DescPort: <<
Man files installed as part of main bash package.
Texinfo is not required to build this package, only to read the
bash.info file.
Thanks to Carsten Klapp for help breaking bash-doc out into a
separate package.
<<
License: GPL
Maintainer: Benjamin Reed <[email protected]>
Homepage: http://www.gnu.org/software/bash/bash.html
--- NEW FILE: bash-completion.patch ---
diff -uNbwr bash_completion/bash-completion.sh
bash_completion-new/bash-completion.sh
--- bash_completion/bash-completion.sh 1969-12-31 19:00:00.000000000 -0500
+++ bash_completion-new/bash-completion.sh 2008-01-14 15:55:38.000000000
-0500
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+if [ -n "$BASH_VERSION" ]; then
+ bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
+ if [ $bmajor -eq 1 ]; then
+ exit 0
+ fi
+ if [ $bmajor -eq 2 ] && [ $bminor '<' 05 ]; then
+ exit 0
+ fi
+
+ if [ "$PS1" ] && [ -f @PREFIX@/etc/bash_completion ]; then #
interactive shell
+ # Source completion code
+ . @PREFIX@/etc/bash_completion
+ if [ -f @PREFIX@/share/init/bash/completions ]; then
+ . @PREFIX@/share/init/bash/completions
+ fi
+ fi
+ unset bash bmajor bminor
+fi
diff -uNbwr bash_completion/bash_completion bash_completion-new/bash_completion
--- bash_completion/bash_completion 2006-03-01 11:20:18.000000000 -0500
+++ bash_completion-new/bash_completion 2008-01-14 15:51:52.000000000 -0500
@@ -32,8 +32,8 @@
{
# These declarations must go within braces in order to be able to silence
# readonly variable errors.
- BASH_COMPLETION="${BASH_COMPLETION:-/etc/bash_completion}"
- BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}"
+ BASH_COMPLETION="${BASH_COMPLETION:-@PREFIX@/etc/bash_completion}"
+ BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=@PREFIX@/etc/bash_completion.d}"
} 2>/dev/null || :
readonly BASH_COMPLETION BASH_COMPLETION_DIR
@@ -89,7 +89,7 @@
complete -f -X '!*.@(dvi|DVI)?(.@(gz|Z|bz2))' xdvi
complete -f -X '!*.@(dvi|DVI)' dvips dviselect dvitype kdvi dvipdf advi
complete -f -X '!*.@(pdf|PDF)' acroread gpdf xpdf kpdf
-complete -f -X
'!*.@(@(?(e)ps|?(E)PS)?(.gz|.GZ)|pdf|PDF|gif|jp?(e)g|miff|tif?(f)|pn[gm]|p[bgp]m|bmp|xpm|ico|xwd|tga|pcx|GIF|JP?(E)G|MIFF|TIF?(F)|PN[GM]|P[BGP]M|BMP|XPM|ICO|XWD|TGA|PCX)'
evince
+complete -f -X
'!*.@(@(?(e)ps|?(E)PS)?(.gz|.GZ)|pdf|PDF|dvi|DVI|gif|jp?(e)g|miff|tif?(f)|pn[gm]|p[bgp]m|bmp|xpm|ico|xwd|tga|pcx|GIF|JP?(E)G|MIFF|TIF?(F)|PN[GM]|P[BGP]M|BMP|XPM|ICO|XWD|TGA|PCX)'
evince
complete -f -X '!*.@(?(e)ps|?(E)PS)' ps2pdf
complete -f -X '!*.texi*' makeinfo texi2html
complete -f -X '!*.@(?(la)tex|?(LA)TEX|texi|TEXI|dtx|DTX|ins|INS)' tex latex
slitex jadetex pdfjadetex pdftex pdflatex texi2dvi
@@ -169,7 +169,7 @@
# use GNU sed if we have it, since its extensions are still used in our code
#
-[ $UNAME != Linux ] && have gsed && alias sed=gsed
+[ $UNAME != Linux ] && [ $UNAME != Darwin ] && have gsed && alias sed=gsed
# This function checks whether a given readline variable
# is `on'.
@@ -226,7 +226,9 @@
#
_configured_interfaces()
{
- if [ -f /etc/debian_version ]; then
+ if [ $UNAME eq "Darwin" ]; then
+ COMPREPLY=( $( /sbin/ifconfig | grep -E '^[^[:space:]]+:' | cut
-d: -f1 ) )
+ elif [ -f /etc/debian_version ]; then
# Debian system
COMPREPLY=( $( sed -ne 's|^iface \([^ ]\+\).*$|\1|p' \
/etc/network/interfaces ) )
@@ -346,8 +348,8 @@
_services()
{
local sysvdir famdir
- [ -d /etc/rc.d/init.d ] && sysvdir=/etc/rc.d/init.d ||
sysvdir=/etc/init.d
- famdir=/etc/xinetd.d
+ [ -d @PREFIX@/etc/rc.d/init.d ] && sysvdir=@PREFIX@/etc/rc.d/init.d ||
sysvdir=@PREFIX@/etc/init.d
+ famdir=@PREFIX@/etc/xinetd.d
COMPREPLY=( $( builtin echo
$sysvdir/!(*.rpmsave|*.rpmorig|*~|functions)) )
if [ -d $famdir ]; then
@@ -535,7 +537,7 @@
# 'service' command and/or the SysV init.d directory, followed by
# that script's available commands
#
-{ have service || [ -d /etc/init.d/ ]; } &&
+{ have service || [ -d @PREFIX@/etc/init.d/ ]; } &&
_service()
{
local cur sysvdir
@@ -551,8 +553,8 @@
# don't complete past 2nd token
[ $COMP_CWORD -gt 2 ] && return 0
- [ -d /etc/rc.d/init.d ] && sysvdir=/etc/rc.d/init.d \
- || sysvdir=/etc/init.d
+ [ -d @PREFIX@/etc/rc.d/init.d ] && sysvdir=@PREFIX@/etc/rc.d/init.d \
+ || sysvdir=@PREFIX@/etc/init.d
if [[ $COMP_CWORD -eq 1 ]] && [[ $prev == "service" ]]; then
_services
@@ -565,8 +567,8 @@
return 0
} &&
complete -F _service service
-[ -d /etc/init.d/ ] && complete -F _service $default \
- $(for i in /etc/init.d/*; do echo ${i##*/}; done)
+[ -d @PREFIX@/etc/init.d/ ] && complete -F _service $default \
+ $(for i in @PREFIX@/etc/init.d/*; do echo ${i##*/}; done)
# chown(1) completion
#
@@ -806,7 +808,7 @@
[ $UNAME = GNU -o $UNAME = Linux -o $UNAME = Darwin \
-o $UNAME = FreeBSD -o $UNAME = SunOS -o $UNAME = Cygwin \
-o $UNAME = OpenBSD ] && \
-complete -F _man $filenames man
+complete -F _man $filenames man apropos whatis
# renice(8) completion
#
@@ -859,7 +861,7 @@
# Linux and FreeBSD killall(1) completion.
#
-[ $UNAME = Linux -o $UNAME = FreeBSD ] &&
+[ $UNAME = Linux -o $UNAME = FreeBSD -o $UNAME = Darwin ] &&
_killall()
{
local cur
@@ -877,7 +879,7 @@
return 0
}
-[ $UNAME = Linux -o $UNAME = FreeBSD ] && complete -F _killall killall pkill
+[ $UNAME = Linux -o $UNAME = FreeBSD -o $UNAME = Darwin ] && complete -F
_killall killall pkill
# Linux and FreeBSD pgrep(1) completion.
#
@@ -2034,7 +2036,7 @@
if [ -n "$special" ]; then
case $special in
remove)
- if [ -f /etc/debian_version ]; then
+ if [ -f /etc/debian_version ] || [ -x
"@PREFIX@/bin/fink" ]; then
# Debian system
COMPREPLY=( $( _comp_dpkg_installed_packages \
$cur ) )
@@ -2061,7 +2063,7 @@
-@(t|-target-release|-default-release))
COMPREPLY=( $( apt-cache policy | \
grep "release.o=Debian,a=$cur" | \
- sed -e "s/.*a=\(\w*\).*/\1/" | uniq ) )
+ sed -e "s/.*a=\(\w*\).*/\1/" | uniq 2>
/dev/null) )
return 0
;;
@@ -2108,7 +2110,7 @@
if [ "$cur" != show ]; then
for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
- if [[ ${COMP_WORDS[i]} ==
@(add|depends|dotty|policy|rdepends|show?(pkg|src|)) ]]; then
+ if [[ ${COMP_WORDS[i]} ==
@(add|depends|dotty|policy|rdepends|madison|show?(pkg|src|)) ]]; then
special=${COMP_WORDS[i]}
fi
done
@@ -2156,7 +2158,7 @@
COMPREPLY=( $( compgen -W 'add gencaches show showpkg showsrc \
stats dump dumpavail unmet search search \
depends rdepends pkgnames dotty xvcg \
- policy' -- $cur ) )
+ policy madison' -- $cur ) )
fi
@@ -2177,7 +2179,7 @@
} || {
_comp_dpkg_hold_packages()
{
- grep -B 2 'hold' /var/lib/dpkg/status | grep "Package: $1" \
+ grep -B 2 'hold' @PREFIX@/var/lib/dpkg/status | grep "Package: $1" \
| cut -d\ -f2
}
}
@@ -2200,7 +2202,7 @@
-Z -v --verbose'
for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
- if [[ ${COMP_WORDS[i]} ==
@(install|reinstall|hold|unhold|markauto|unmarkauto|dist-upgrade|download|show|forbid-version|purge|remove)
]]; then
+ if [[ ${COMP_WORDS[i]} ==
@(install|reinstall|hold|unhold|markauto|unmarkauto|dist-upgrade|download|show|forbid-version|purge|remove|changelog)
]]; then
special=${COMP_WORDS[i]}
fi
#exclude some mutually exclusive options
@@ -2210,7 +2212,7 @@
if [[ -n "$special" ]]; then
case $special in
- @(install|hold|markauto|unmarkauto|dist-upgrade|download|show))
+
@(install|hold|markauto|unmarkauto|dist-upgrade|download|show|changelog))
COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
return 0
;;
@@ -2240,7 +2242,7 @@
-@(t|-target-release|-default-release))
COMPREPLY=( $( apt-cache policy | \
grep "release.o=Debian,a=$cur" | \
- sed -e "s/.*a=\(\w*\).*/\1/" | uniq ) )
+ sed -e "s/.*a=\(\w*\).*/\1/" | uniq 2> /dev/null ) )
return 0
;;
@@ -2253,7 +2255,7 @@
autoclean install reinstall remove \
hold unhold purge markauto unmarkauto \
dist-upgrade download search show \
- forbid-version' -- $cur ) )
+ forbid-version changelog' -- $cur ) )
fi
@@ -2339,7 +2341,7 @@
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ "$prev" = "-s" ]; then
- if [ -f /etc/debian_version ]; then
+ if [ -f /etc/debian_version ] || [ -x @PREFIX@/bin/fink ]; then
COMPREPLY=( $( </etc/shells ) )
else
COMPREPLY=( $( chsh -l | grep "^$cur" ) )
@@ -2422,6 +2424,8 @@
kh=()
# ssh config files
+ [ -r @PREFIX@/etc/ssh/ssh_config ] &&
+ config=( ${config[@]} @PREFIX@/etc/ssh/ssh_config )
[ -r /etc/ssh/ssh_config ] &&
config=( ${config[@]} /etc/ssh/ssh_config )
[ -r ~/.ssh/config ] &&
@@ -2440,12 +2444,20 @@
if [ -r "$global_kh" ]; then
kh=( "$global_kh" )
else
+ [ -r @PREFIX@/etc/ssh/ssh_known_hosts ] &&
+ kh=( ${kh[@]} @PREFIX@/etc/ssh/ssh_known_hosts )
[ -r /etc/ssh/ssh_known_hosts ] &&
kh=( ${kh[@]} /etc/ssh/ssh_known_hosts )
+ [ -r @PREFIX@/etc/ssh/ssh_known_hosts2 ] &&
+ kh=( ${kh[@]} @PREFIX@/etc/ssh/ssh_known_hosts2 )
[ -r /etc/ssh/ssh_known_hosts2 ] &&
kh=( ${kh[@]} /etc/ssh/ssh_known_hosts2 )
+ [ -r @PREFIX@/etc/known_hosts ] &&
+ kh=( ${kh[@]} @PREFIX@/etc/known_hosts )
[ -r /etc/known_hosts ] &&
kh=( ${kh[@]} /etc/known_hosts )
+ [ -r @PREFIX@/etc/known_hosts2 ] &&
+ kh=( ${kh[@]} @PREFIX@/etc/known_hosts2 )
[ -r /etc/known_hosts2 ] &&
kh=( ${kh[@]} /etc/known_hosts2 )
[ -d /etc/ssh2/knownhosts ] &&
@@ -3323,7 +3335,7 @@
have bzip2 &&
_bzip2()
{
- local cur prev xspec
+ local cur prev xspec IFS=$'\t\n'
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
@@ -3363,8 +3375,8 @@
{
local config
- config=/etc/ssl/openssl.cnf
- [ ! -f $config ] && config=/usr/share/ssl/openssl.cnf
+ config=@PREFIX@/etc/ssl/openssl.cnf
+ [ ! -f $config ] && config=/System/Library/OpenSSL/openssl.cnf
for (( i=2; i < COMP_CWORD; i++ )); do
if [[ "${COMP_WORDS[i]}" == -config ]]; then
config=${COMP_WORDS[i+1]}
@@ -4206,7 +4218,7 @@
} || {
_comp_dpkg_installed_packages()
{
- grep -A 2 "Package: $1" /var/lib/dpkg/status | \
+ grep -A 2 "Package: $1" @PREFIX@/var/lib/dpkg/status | \
grep -B 2 'ok installed' | grep "Package: $1" | cut -d\ -f2
}
}
@@ -4981,7 +4993,7 @@
--no-cc --package-version -z --no-compress \
--ui --interface -u \
wnpp boot-floppies kernel-image' -- $cur ) \
- $( apt-cache pkgnames -- $cur ) )
+ $( apt-cache pkgnames -- $cur 2> /dev/null ) )
_filedir
return 0
} &&
@@ -5016,7 +5028,7 @@
-B --bts -l --ldap --no-ldap --proxy= --http_proxy= \
-s --source -w --web -u --ui --interface \
wnpp boot-floppies' -- $cur ) \
- $( apt-cache pkgnames -- $cur ) )
+ $( apt-cache pkgnames -- $cur 2> /dev/null ) )
} &&
complete -F _querybts $filenames querybts
@@ -5029,6 +5041,7 @@
# find the admin dir
for i in alternatives dpkg/alternatives rpm/alternatives; do
[ -d /var/lib/$i ] && admindir=/var/lib/$i && break
+ [ -d "@PREFIX@/etc/$i" ] && admindir="@PREFIX@/etc/$i" && break
done
for (( i=1; i < COMP_CWORD; i++ )); do
if [[ "${COMP_WORDS[i]}" == --admindir ]]; then
@@ -5888,7 +5901,7 @@
-xvidencopts -of --verbose' -- $cur) )
;;
*)
- _filedir
'@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3gp|mpc|MPC|flac|FLAC)'
+ _filedir
'@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3gp|mpc|MPC|flac|FLAC|flv|FLV)'
;;
esac
@@ -8803,7 +8816,7 @@
COMPREPLY=( $( compgen -W '-s -o -m -M -z -l -L -w -a -t \
-c -S -d -p -C -T -8' -- $cur ) )
else
- COMPREPLY=( $( command ls /etc/minirc.* | sed -e
's|/etc/minirc.||' | grep "^$cur" ) )
+ COMPREPLY=( $( command ls /etc/minicom/minirc.* 2>/dev/null |
sed -e 's|/etc/minicom/minirc.||' | grep "^$cur" ) )
fi
} &&
complete -F _minicom minicom
@@ -9253,6 +9266,7 @@
\"${cur#[\`\"\']}\" 2>/dev/null ) \
$( compgen -d -- $cur ) )
}
+
list=( $( sed -ne '/^# START exclude/,/^# FINISH exclude/p' \
$BASH_COMPLETION | \
# read exclusion compspecs
diff -uNbwr bash_completion/fink.sh bash_completion-new/fink.sh
--- bash_completion/fink.sh 1969-12-31 19:00:00.000000000 -0500
+++ bash_completion-new/fink.sh 2008-01-14 15:51:52.000000000 -0500
@@ -0,0 +1,128 @@
+#!/bin/bash
+
+#
+# Copyright (c) 2004, Lukas Westermann <contact AT openos DOT ch>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# - Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# - Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials
+# provided with the distribution.
+# - The names of its contributors may not be used to endorse or
+# promote products derived from this software without specific
+# prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# Completion for Fink command
+#
+# History
+# ---------------------------------
+# Version 1.0.0 - initial release
+# Version 1.0.1 - added test to check fink availability
+# Version 1.0.2 - simplified checks for fink availabiltiy
+# Version 1.0.3 - fixed problems with spaces in completion
+#
+
+[ $UNAME = Darwin ] && have fink && {
+_fink_installed() {
+ fink list -i --tab "$*" | cut -f2 2>/dev/null
+}
+
+_fink_all() {
+ apt-cache pkgnames "$*" 2>/dev/null
+}
+
+_fink_trees() {
+ cat @PREFIX@/etc/fink.conf | sed -e '/^Trees/!d; s/^Trees://' 2>/dev/null
+}
+
+_fink()
+{
+ local cur prev special i
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ for (( i=0; i < ${#COMP_WORDS}-1; i++ )); do
+ if [[ ${COMP_WORDS[i]} ==
@(install|update|enable|activate|use|list|remove|disable|deactivate|unuse|delete
\
+
|purge|apropos|describe|desc|description|info|fetch-missing|fetch \
+
|build|rebuild|reinstall|validate|check|scanpackages) ]]; then
+ special=${COMP_WORDS[i]}
+ fi
+ done
+
+ if [ -n "${special}" ]; then
+ case $special in
+
install|enable|activate|use|apropos|describe|desc|description|info|fetch|build)
+ COMPREPLY=( $( _fink_all $cur ) )
+ ;;
+
remove|disable|deactivate|unuse|delete|purge|update|rebuild|reinstall)
+ COMPREPLY=( $( _fink_installed $cur ) )
+ ;;
+ fetch-missing)
+ COMPREPLY=( $( compgen -W '-i --ignore-restrictive' --
$cur ) )
+ ;;
+ validate|check)
+ local IFS=$'\t\n'
+ _filedir '@(deb|info)'
+ #COMPREPLY=( $( compgen -f -- $cur ) )
+ ;;
+ scanpackages)
+ COMPREPLY=( $( compgen -W '$( _fink_trees )' -- $cur ) )
+ ;;
+ list)
+ if [[ "$cur" == -* ]]; then
+ # TODO: Fix problems with --tree=
+ #if [[ $cur == --tree=* || $cur == -t=* ]]; then
+ #local pfx las #res
+ #pfx=$( echo $cur | sed -e
's/^\([^=]*\)=.*$/\1/' )
+ #las=$( echo "$cur" | sed -e 's/^[^=]*=//' )
+ #[[ $las == $cur ]] && las=()
+ #res=$( cat @PREFIX@/etc/fink.conf | sed -e
'/^Trees/!d; s/^Trees://' 2>/dev/null )
+ #COMPREPLY=( $( compgen -W '$( _fink_trees )'
-- "${las}" ) )
+ #else
+ COMPREPLY=( $( compgen -W '-h --help -t --tab
-i --installed -o --outdated -u --uptodate -n --notinstalled \
+ -s --section -m
--maintainer --tree -w --width' -- $cur ) )
+ #fi
+ else
+ COMPREPLY=( $( _fink_all $cur ) )
+ fi
+ ;;
+ esac
+
+ return 0
+ fi
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-h -q -V -v -y --help --quite
--version --verbose --yes' -- $cur ) )
+ else
+ COMPREPLY=( $( compgen -W 'install remove purge update
selfupdate update-all configure list \
+ apropos describe fetch fetch-all
fetch-missing index validate scanpackages \
+ build rebuild reinstall checksums
cleanup' -- $cur ) )
+ fi
+
+ return 0
+}
+complete $filenames -F _fink fink
+}
\ No newline at end of file
diff -uNbwr bash_completion/open.sh bash_completion-new/open.sh
--- bash_completion/open.sh 1969-12-31 19:00:00.000000000 -0500
+++ bash_completion-new/open.sh 2008-01-14 15:51:52.000000000 -0500
@@ -0,0 +1,106 @@
+#!/bin/bash
+
+#
+# Copyright (c) 2004, Lukas Westermann <contact AT openos DOT ch>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# - Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# - Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials
+# provided with the distribution.
+# - The names of its contributors may not be used to endorse or
+# promote products derived from this software without specific
+# prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# Bash Auto-Completion for the NextStep command 'open'
+#
+# History
+# ----------------------------------
+# Version 1.0.0 - initial release
+# Version 1.0.1 - added test for availabilty (Darwin only
+# and check for open)
+# Version 1.0.2 - fixed problems with IFS for -a and -e
+# Version 1.0.3 - simplified availability check
+# Version 1.0.4 - fixed problem with spaces and completion
+#
+
+[ $UNAME = Darwin ] && have open && {
+_list_apps() {
+ local IFS=$'\n'
+ find '/Applications' "${HOME}"'/Applications' '/Developer/Applications'
-name "${1}*.app" -maxdepth 2 2>/dev/null
+ #TODO: MS Word and other carbon apps...HOW ???
+}
+
+_open()
+{
+
+ local cur prev IFS=$'\t\n'
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ if [[ $prev == -a ]]; then
+ local res ncur
+ ncur=$( echo "$cur" | sed -e 's/\\//g' 2>/dev/null )
+ res=$( _list_apps "${ncur}" | sed -e 's/.*\/\([^\/]*\)\.app/\1/' )
+ COMPREPLY=( $( compgen -W "${res}" -- "${ncur}" ) )
+ elif [[ $prev == -e ]]; then
+ _filedir '@(txt|doc|rtf|rtfd|pdf|png|jpg|gif)'
+ elif [[ $cur == -* ]]; then
+ local IFS=$' \t\n'
+ COMPREPLY=( $( compgen -W '-a -e' -- "$cur" ) )
+ else
+ local first="${COMP_WORDS[1]}" second="${COMP_WORDS[2]}"
+ if [[ $first == -a ]]; then
+ case "$second" in
+ QuickTime*)
+ _filedir '@(mp3|mpg|mpeg|avi|m4*|mov|alc)'
+ ;;
+ iTunes)
+ _filedir '@(mp3|m4*|ogg|alc)'
+ ;;
+ Safari|Mozilla|Camino|Opera|Firebird)
+ # TODO: complete from history/bookmarks ?
+ _filedir '@(htm|html|xhtm|xhtml|php|php3|php3|xml)'
+ ;;
+ VLC)
+ # TODO: complete for CD/DVD too...
+ _filedir '@(avi|mpg)'
+ ;;
+ BitTorrent*)
+ _filedir '@(torrent)'
+ ;;
+ *)
+ # others, complete all
+ _filedir
+ ;;
+ esac
+ else
+ _filedir
+ fi
+ fi
+
+}
+complete $filenames -F _open open
+}
\ No newline at end of file
--- NEW FILE: bash-completion.info ---
Package: bash-completion
Version: 20060301
Revision: 3
Source: http://www.caliban.org/files/bash/%n-%v.tar.gz
Source-MD5: 9bca1cf97e8f8c73e3ef560cc9dead21
SourceDirectory: bash_completion
BuildDepends: fink (>= 0.24.12)
PatchFile: %n.patch
PatchFile-MD5: 08ce8dbd03eef5b3db89f0a6cc718c21
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: echo "none needed"
InstallScript: <<
install -d -m 755 %i/etc
install -d -m 755 %i/etc/bash_completion.d
install -d -m 755 %i/etc/profile.d
install -m 755 bash_completion %i/etc/
install -m 755 bash-completion.sh %i/etc/profile.d/
install -m 755 fink.sh open.sh contrib/* %i/etc/bash_completion.d/
rm -rf %i/etc/bash_completion.d/hg
<<
DocFiles: BUGS COPYING Changelog README
Description: Command-line completions for bash
DescDetail: <<
This is a set of addons for doing command-line completion for
common tasks, using the bash shell.
<<
DescPort: <<
Added var prefix to use fink's apt-get/dpkg and rpm dbs
<<
License: GPL
Maintainer: Benjamin Reed <[email protected]>
Homepage: http://www.caliban.org/bash/index.shtml
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs