From: Victor Martinez Date: Wed, 14 Mar 2012 15:59:34 +0000 (+0000) Subject: bash: Added again to fix the triplet and MACHTYPE used X-Git-Url: http://gitweb/?a=commitdiff_plain;h=21a7237e4bbbe07d407f9b59141bfb5f8258e3a0;p=ports%2Fcore-arm.git bash: Added again to fix the triplet and MACHTYPE used --- diff --git a/bash/.footprint b/bash/.footprint new file mode 100644 index 0000000..98fcb55 --- /dev/null +++ b/bash/.footprint @@ -0,0 +1,10 @@ +drwxr-xr-x root/root bin/ +-rwxr-xr-x root/root bin/bash +lrwxrwxrwx root/root bin/sh -> bash +drwxr-xr-x root/root etc/ +-rw-r--r-- root/root etc/profile +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/bash.1.gz +lrwxrwxrwx root/root usr/man/man1/sh.1.gz -> bash.1.gz diff --git a/bash/.md5sum b/bash/.md5sum new file mode 100644 index 0000000..89d9227 --- /dev/null +++ b/bash/.md5sum @@ -0,0 +1,3 @@ +94c62906ac02f322f2fbe02c3baa99bf bash-4.2.24.patch.gz +3fb927c7c33022f1c327f14a81c0d4b0 bash-4.2.tar.gz +3fee206195d50dbd8a3560a8a77f341b profile diff --git a/bash/Pkgfile b/bash/Pkgfile new file mode 100644 index 0000000..1f99646 --- /dev/null +++ b/bash/Pkgfile @@ -0,0 +1,33 @@ +# Description: An sh-compatible command language interpreter +# URL: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html +# Maintainer: CRUX System Team, core-ports at crux dot nu +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: ncurses readline + +name=bash +version=4.2.24 +release=1 +source=(http://ftp.gnu.org/gnu/$name/$name-${version::3}.tar.gz \ + $name-$version.patch.gz profile) + +build() { + cd $name-${version::3} + + gunzip -c $SRC/$name-$version.patch.gz | patch -p0 + + ./configure --prefix=/usr \ + --build=arm-unknown-linux-gnueabihf \ + --exec-prefix= \ + --mandir=/usr/man \ + --disable-nls \ + --with-curses \ + --with-installed-readline + make -j1 + + install -D -m 755 bash $PKG/bin/bash + install -D -m 644 doc/bash.1 $PKG/usr/man/man1/bash.1 + install -D -m 644 $SRC/profile $PKG/etc/profile + + ln -s bash $PKG/bin/sh + ln -s bash.1 $PKG/usr/man/man1/sh.1 +} diff --git a/bash/bash-4.2.24.patch.gz b/bash/bash-4.2.24.patch.gz new file mode 100644 index 0000000..13142d4 Binary files /dev/null and b/bash/bash-4.2.24.patch.gz differ diff --git a/bash/profile b/bash/profile new file mode 100644 index 0000000..8e3b9fe --- /dev/null +++ b/bash/profile @@ -0,0 +1,23 @@ +# +# /etc/profile: system-wide defaults for bash(1) login shells +# + +if [ "$UID" = "0" ]; then + export PATH="/sbin:/usr/sbin:/opt/sbin:/bin:/usr/bin:/opt/bin" +else + export PATH="/bin:/usr/bin:/opt/bin" +fi + +if [ ! -f ~/.inputrc ]; then + export INPUTRC="/etc/inputrc" +fi + +export LESSCHARSET="latin1" +export LESS="-R" +export CHARSET="ISO-8859-1" +export PS1="\[\033[1m\]\\$ \[\033[0m\]" +export PS2="\[\033[1m\]> \[\033[0m\]" + +umask 022 + +# End of file