CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bash: Initial import. Verified compilation.
authorVictor Martinez <pitillo@ono.com>
Tue, 13 Dec 2011 08:56:11 +0000 (09:56 +0100)
committerVictor Martinez <pitillo@ono.com>
Tue, 13 Dec 2011 08:56:11 +0000 (09:56 +0100)
bash/.footprint [new file with mode: 0644]
bash/.md5sum [new file with mode: 0644]
bash/Pkgfile [new file with mode: 0644]
bash/bash-4.2.20.patch.gz [new file with mode: 0644]
bash/profile [new file with mode: 0644]

diff --git a/bash/.footprint b/bash/.footprint
new file mode 100644 (file)
index 0000000..98fcb55
--- /dev/null
@@ -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 (file)
index 0000000..33d1711
--- /dev/null
@@ -0,0 +1,3 @@
+0ce98aaef0d1e4b930ddd9443d99883f  bash-4.2.20.patch.gz
+3fb927c7c33022f1c327f14a81c0d4b0  bash-4.2.tar.gz
+3fee206195d50dbd8a3560a8a77f341b  profile
diff --git a/bash/Pkgfile b/bash/Pkgfile
new file mode 100644 (file)
index 0000000..eda5777
--- /dev/null
@@ -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.20
+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 --build=arm-crux-linux-gnueabihf \
+              --prefix=/usr \
+              --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.20.patch.gz b/bash/bash-4.2.20.patch.gz
new file mode 100644 (file)
index 0000000..fca1d1c
Binary files /dev/null and b/bash/bash-4.2.20.patch.gz differ
diff --git a/bash/profile b/bash/profile
new file mode 100644 (file)
index 0000000..8e3b9fe
--- /dev/null
@@ -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