From d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 16 Sep 2018 18:48:36 +0200 Subject: Add ports. --- base/bash/bash.build | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100755 base/bash/bash.build (limited to 'base/bash/bash.build') diff --git a/base/bash/bash.build b/base/bash/bash.build new file mode 100755 index 0000000..28d4a75 --- /dev/null +++ b/base/bash/bash.build @@ -0,0 +1,114 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate + +source /usr/src/ports/Build/build.sh + +NAME=bash +MAJOR=4.2 +VERSION=${MAJOR}.45 +BUILD=1 + +# Description + +cat > ${PKG}/install/slack-desc <> ${PKG}/install/doinst.sh < /dev/null + fi + done +} + +install_info bash + +if [ -r usr/bin/bash ]; then + mv usr/bin/bash usr/bin/bash.old +fi + +mv usr/bin/bash4.new usr/bin/bash + +if [ -f usr/bin/bash.old ]; then + rm -f usr/bin/bash.old +fi + +if [ ! -r etc/shells ]; then + touch etc/shells + chmod 0644 etc/shells +fi + +if fgrep "/usr/bin/bash" etc/shells 1> /dev/null 2> /dev/null ; then + true +else + echo "/usr/bin/bash" >> etc/shells +fi + +if fgrep "/usr/bin/rbash" etc/shells 1> /dev/null 2> /dev/null ; then + true +else + echo "/usr/bin/rbash" >> etc/shells +fi +EOF + +# Sources + +SRCNAME[0]=${NAME} +SRCVERS[0]=${MAJOR} +SRCPACK[0]=ftp://ftp.gnu.org/gnu/bash/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz +SRCCOPY[0]="GPL3" + +build0() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --infodir="${SYS_DIR[info]}" \ + --sysconfdir="${SYS_DIR[etc]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --bindir="${SYS_DIR[bin]}" \ + --with-curses +make ${JOBS} +make install DESTDIR="${PKG}" +doc AUTHORS COMPAT +changelog NEWS +install.man doc/*.1 ${PKG}${SYS_DIR[man]}/man1 +mv ${PKG}${SYS_DIR[bin]}/bash ${PKG}${SYS_DIR[bin]}/bash4.new +rm -f \ + ${PKG}${SYS_DIR[bin]}/bashbug \ + ${PKG}${SYS_DIR[man]}/man1/bashbug.1 +#FIXME: compat +( + cd ${PKG}${SYS_DIR[bin]} + ln -sf bash rbash + ln -sf bash sh +) +} -- cgit v1.2.3-70-g09d2