From eba836c338bc479063a1c247e19962234f192030 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 26 May 2016 10:39:39 +0200 Subject: [PATCH] bash: added overlayed port --- bash/.footprint | 9 +++++++++ bash/.md5sum | 3 +++ bash/Pkgfile | 29 +++++++++++++++++++++++++++++ bash/profile | 21 +++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 bash/.footprint create mode 100644 bash/.md5sum create mode 100644 bash/Pkgfile create mode 100644 bash/profile diff --git a/bash/.footprint b/bash/.footprint new file mode 100644 index 0000000..45306de --- /dev/null +++ b/bash/.footprint @@ -0,0 +1,9 @@ +drwxr-xr-x root/root bin/ +-rwxr-xr-x root/root bin/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/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/bash.1.gz diff --git a/bash/.md5sum b/bash/.md5sum new file mode 100644 index 0000000..5d208fb --- /dev/null +++ b/bash/.md5sum @@ -0,0 +1,3 @@ +e9bced547088b3805ea929ec56b6f20a bash-4.3.42.patch.gz +81348932d5da294953e15d4814c74dd1 bash-4.3.tar.gz +be4c698ea8bb7d52eab2d6ce2c3fab8e profile diff --git a/bash/Pkgfile b/bash/Pkgfile new file mode 100644 index 0000000..5f5599e --- /dev/null +++ b/bash/Pkgfile @@ -0,0 +1,29 @@ +# 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.3.42 +release=1 +source=(http://ftp.gnu.org/gnu/$name/$name-${version:0:3}.tar.gz \ + $name-$version.patch.gz profile) + +build() { + cd $name-${version:0:3} + + gunzip -c $SRC/$name-$version.patch.gz | patch -p0 + + ./configure --prefix=/usr \ + --build=aarch64-unknown-linux-gnueabi \ + --exec-prefix= \ + --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/share/man/man1/bash.1 + install -D -m 644 $SRC/profile $PKG/etc/profile +} diff --git a/bash/profile b/bash/profile new file mode 100644 index 0000000..1379554 --- /dev/null +++ b/bash/profile @@ -0,0 +1,21 @@ +# +# /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 LESS="-R" +export PS1="\[\033[1m\]\\$ \[\033[0m\]" +export PS2="\[\033[1m\]> \[\033[0m\]" + +umask 022 + +# End of file -- 2.26.2