CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bash: added overlayed port
authorVictor Martinez <pitillo@ono.com>
Thu, 26 May 2016 08:39:39 +0000 (10:39 +0200)
committerVictor Martinez <pitillo@ono.com>
Thu, 26 May 2016 08:39:39 +0000 (10:39 +0200)
bash/.footprint [new file with mode: 0644]
bash/.md5sum [new file with mode: 0644]
bash/Pkgfile [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..45306de
--- /dev/null
@@ -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 (file)
index 0000000..5d208fb
--- /dev/null
@@ -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 (file)
index 0000000..5f5599e
--- /dev/null
@@ -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 (file)
index 0000000..1379554
--- /dev/null
@@ -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