summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/bash
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/bash')
-rw-r--r--abs/core-testing/bash/PKGBUILD87
-rw-r--r--abs/core-testing/bash/bash-noinfo.patch12
-rw-r--r--abs/core-testing/bash/bashrc3
-rw-r--r--abs/core-testing/bash/profile35
-rw-r--r--abs/core-testing/bash/profile.bash25
5 files changed, 162 insertions, 0 deletions
diff --git a/abs/core-testing/bash/PKGBUILD b/abs/core-testing/bash/PKGBUILD
new file mode 100644
index 0000000..24f80ef
--- /dev/null
+++ b/abs/core-testing/bash/PKGBUILD
@@ -0,0 +1,87 @@
+# $Id: PKGBUILD 5542 2008-07-18 15:21:56Z aaron $
+# Maintainer: Aaron Griffin <aaron@archlinux.org>
+
+pkgname=bash
+_patchlevel=039
+pkgver=3.2.$_patchlevel
+pkgrel=11
+pkgdesc="The GNU Bourne Again shell"
+arch=(i686 x86_64)
+license=('GPL')
+url="http://www.gnu.org/software/bash/bash.html"
+groups=('base')
+backup=(etc/profile.bash etc/skel/.bashrc etc/skel/.bash_profile)
+depends=('readline>=5.2' 'glibc')
+provides=('sh')
+source=(http://ftp.gnu.org/gnu/bash/bash-3.2.tar.gz
+ bash-noinfo.patch profile.bash bashrc)
+for p in $(seq -w 001 $_patchlevel); do
+ source=(${source[@]} http://ftp.gnu.org/gnu/bash/bash-3.2-patches/bash32-$p)
+done
+md5sums=('00bfa16d58e034e3c2aa27f390390d30'
+ 'f2a3cf51e58f9b82af50b861191d96fd'
+ 'c2fae355facefcac8a732cce877da194'
+ '9451109f3fe09d6381cbf36de9fbf06f'
+ 'd8e10c754f477e3f3a581af566b89301'
+ 'd38a5288b2f0ea6c9ac76b66cc74ef7d'
+ '0b90d37911827d8cb95f3b4353cc225e'
+ '8062f3a59631f58d78b180d83759b68a'
+ '585b5943fadf0875ced243b245adde58'
+ '1d5732e01ea938aeed42f3def131fa4d'
+ 'dcd0cc5d801607827f7c851e72b0eabc'
+ 'bb3c7dd11198c0ab93d0e960bebf6256'
+ '434a6f29b0ca5f1ab784b2437ae8eaed'
+ '2efff04dd246fcf63bd4b99f77c9a081'
+ '1dd104342f6920dfaf5efb3131e922e0'
+ '4f24b696ab78bdfae4f9cb7eb59b835d'
+ '7c40addbf1187a26ae1c8373ed383442'
+ '28e88c9f8679e99ac590d4a4a8227c56'
+ '7c17d29675bd0d49470f162774385f80'
+ 'a1edaa98b4449fe2205fa75448b7b105'
+ '889ed119bbf9d363660b9a0127f35efa'
+ 'a7d3f85fa687d2c1b5a134839f6d395d'
+ 'f0399da4007e46fc5820ce25d07425b9'
+ 'b76602281c3104d904fd064510fe0c21'
+ '923374ae4403c92820f711e62e1d01a5'
+ 'c82d3bd14e373878b2a680dce18d1596'
+ '987c949a77b4b0ffe4a2597141e77635'
+ '5a2b976e761ab83f0fc7daae11451b86'
+ '08668dc2825f65eced9cac6b09ce1b45'
+ 'f35b2b217f088ff009f956894550d41d'
+ 'b5ff2b9610c61290f773c4b02cc1a37d'
+ '016f5b56c93404d32aea09385f0fc13e'
+ 'a81420626d4d88d0dce2ffac0ac56341'
+ '11f91baf970c132949f9072ee93f2ea6'
+ 'f6bbc1e8ec0246740731c728ef476191'
+ '8180ec936770579bce69f0816c2dd878'
+ '3cec33c3711860c4c6b7614afeec7870'
+ '7bc6c5b5f38b7027152f8db0458a2e14'
+ 'a2db61fe90e39371d0e6cd2285ec9208'
+ '95c70c7ae9de5bd3659c86284be7fb76'
+ '62b876a3d7cd192cc8db2476fbb6b7b9'
+ 'aca3afc341bd3e5a0d8a3b4ca40dbb3f'
+ 'e240c34f979b64bcb83c5f6567110bb1')
+
+build() {
+ cd ${startdir}/src/${pkgname}-3.2
+ for p in ../bash32-*; do
+ msg "applying patch ${p}"
+ patch -Np0 -i ${p} || return 1
+ done
+ patch -Np1 -i ../bash-noinfo.patch || return 1
+ ./configure --prefix=/usr --with-curses --enable-readline \
+ --without-bash-malloc --with-installed-readline \
+ --bindir=/bin --mandir=/usr/share/man
+ make || return 1
+ make DESTDIR=${startdir}/pkg install
+
+ install -D -m644 ${startdir}/src/profile.bash ${startdir}/pkg/etc/profile.bash
+
+ # for now, bash is our default /bin/sh
+ cd ${startdir}/pkg/bin
+ ln -s bash sh
+
+ mkdir -p $startdir/pkg/etc/skel/
+ install -D -m644 $startdir/src/bashrc $startdir/pkg/etc/skel/.bashrc
+ echo ". \$HOME/.bashrc" >$startdir/pkg/etc/skel/.bash_profile
+}
diff --git a/abs/core-testing/bash/bash-noinfo.patch b/abs/core-testing/bash/bash-noinfo.patch
new file mode 100644
index 0000000..856ec80
--- /dev/null
+++ b/abs/core-testing/bash/bash-noinfo.patch
@@ -0,0 +1,12 @@
+diff -Naur bash-3.0-orig/doc/Makefile.in bash-3.0/doc/Makefile.in
+--- bash-3.0-orig/doc/Makefile.in 2004-07-27 05:57:48.000000000 -0700
++++ bash-3.0/doc/Makefile.in 2005-02-11 22:44:49.000000000 -0800
+@@ -220,7 +220,7 @@
+ $(SHELL) $(SUPPORT_SRCDIR)/mkinstalldirs $(DESTDIR)$(htmldir) ; \
+ fi
+
+-install: info installdirs bash.info
++install: installdirs
+ -$(INSTALL_DATA) $(srcdir)/bash.1 $(DESTDIR)$(man1dir)/bash${man1ext}
+ -$(INSTALL_DATA) $(srcdir)/bashbug.1 $(DESTDIR)$(man1dir)/bashbug${man1ext}
+ # uncomment the next line to install the builtins man page
diff --git a/abs/core-testing/bash/bashrc b/abs/core-testing/bash/bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/abs/core-testing/bash/bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/abs/core-testing/bash/profile b/abs/core-testing/bash/profile
new file mode 100644
index 0000000..ca1d402
--- /dev/null
+++ b/abs/core-testing/bash/profile
@@ -0,0 +1,35 @@
+#
+# /etc/profile
+#
+
+export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin"
+
+export MANPATH="/usr/man:/usr/X11R6/man"
+export LESSCHARSET="latin1"
+export INPUTRC="/etc/inputrc"
+export LESS="-R"
+
+export LC_COLLATE="C"
+
+export COLUMNS LINES
+
+export PS1='[\u@\h \W]\$ '
+export PS2='> '
+
+umask 022
+
+if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "rxvt" -o "$TERM" = "xterm-xfree86" ]; then
+ PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
+fi
+
+# load profiles from /etc/profile.d
+# (to disable a profile, just remove execute permission on it)
+if [ `ls -A1 /etc/profile.d/ | wc -l` -gt 0 ]; then
+ for profile in /etc/profile.d/*.sh; do
+ if [ -x $profile ]; then
+ . $profile
+ fi
+ done
+ unset profile
+fi
+# End of file
diff --git a/abs/core-testing/bash/profile.bash b/abs/core-testing/bash/profile.bash
new file mode 100644
index 0000000..8a7e1aa
--- /dev/null
+++ b/abs/core-testing/bash/profile.bash
@@ -0,0 +1,25 @@
+#
+# /etc/profile.bash
+# Global settings for bash shells
+#
+
+PS1='[\u@\h \W]\$ '
+PS2='> '
+PS3='> '
+PS4='+ '
+
+export PS1 PS2 PS3 PS4
+
+#In the future we may want to add more ulimit entries here,
+# in the offchance that /etc/security/limits.conf is skipped
+ulimit -Sc 0 #Don't create core files
+
+if test "$TERM" = "xterm" -o \
+ "$TERM" = "xterm-color" -o \
+ "$TERM" = "xterm-256color" -o \
+ "$TERM" = "rxvt" -o \
+ "$TERM" = "rxvt-unicode" -o \
+ "$TERM" = "xterm-xfree86"; then
+ PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
+ export PROMPT_COMMAND
+fi