[arch-commits] CVS update of core/base/bash (PKGBUILD profile.bash)
Aaron Griffin
aaron at archlinux.org
Thu Dec 20 08:25:23 UTC 2007
Date: Thursday, December 20, 2007 @ 03:25:23
Author: aaron
Path: /home/cvs-core/core/base/bash
Added: profile.bash (1.1)
Modified: PKGBUILD (1.52 -> 1.53)
upgpkg: bash 3.2.025-5
Remove /etc/profile from package. Move bashisms to /etc/profile.bash - FS#4766
--------------+
PKGBUILD | 10 +++++-----
profile.bash | 25 +++++++++++++++++++++++++
2 files changed, 30 insertions(+), 5 deletions(-)
Index: core/base/bash/PKGBUILD
diff -u core/base/bash/PKGBUILD:1.52 core/base/bash/PKGBUILD:1.53
--- core/base/bash/PKGBUILD:1.52 Mon Dec 3 16:55:25 2007
+++ core/base/bash/PKGBUILD Thu Dec 20 03:25:22 2007
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD,v 1.52 2007/12/03 21:55:25 aaron Exp $
+# $Id: PKGBUILD,v 1.53 2007/12/20 08:25:22 aaron Exp $
# Maintainer: Aaron Griffin <aaron at archlinux.org>
pkgname=bash
_patchlevel=025
pkgver=3.2.$_patchlevel
-pkgrel=4
+pkgrel=5
pkgdesc="The GNU Bourne Again shell"
arch=(i686 x86_64)
license=('GPL')
@@ -14,13 +14,13 @@
depends=('readline>=5.2' 'glibc')
provides=('sh')
source=(ftp://ftp.cwru.edu/pub/bash/bash-3.2.tar.gz
- bash-noinfo.patch profile bashrc)
+ bash-noinfo.patch profile.bash bashrc)
for p in $(seq -w 001 $_patchlevel); do
source=(${source[@]} ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/bash32-$p)
done
md5sums=('00bfa16d58e034e3c2aa27f390390d30'
'f2a3cf51e58f9b82af50b861191d96fd'
- '9d301aa965c0e8be9d74298085f0905d'
+ 'c2fae355facefcac8a732cce877da194'
'9451109f3fe09d6381cbf36de9fbf06f'
'd8e10c754f477e3f3a581af566b89301'
'd38a5288b2f0ea6c9ac76b66cc74ef7d'
@@ -61,7 +61,7 @@
make || return 1
make DESTDIR=${startdir}/pkg install
- install -D -m644 ${startdir}/src/profile ${startdir}/pkg/etc/profile
+ install -D -m644 ${startdir}/src/profile.bash ${startdir}/pkg/etc/profile.bash
# for now, bash is our default /bin/sh
cd ${startdir}/pkg/bin
Index: core/base/bash/profile.bash
diff -u /dev/null core/base/bash/profile.bash:1.1
--- /dev/null Thu Dec 20 03:25:23 2007
+++ core/base/bash/profile.bash Thu Dec 20 03:25:23 2007
@@ -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
More information about the arch-commits
mailing list