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-4.2-man.patch.xz | Bin 0 -> 1196 bytes base/bash/bash-4.2-paths.patch.xz | Bin 0 -> 628 bytes base/bash/bash-4.2-pgrpsync.patch.xz | Bin 0 -> 344 bytes base/bash/bash-4.2-readlineoom.patch.xz | Bin 0 -> 336 bytes base/bash/bash-4.2-security.patch.xz | Bin 0 -> 296 bytes base/bash/bash-4.2-update045.patch.xz | Bin 0 -> 15352 bytes base/bash/bash.build | 114 ++++++++++++++++++++++++++++++++ 7 files changed, 114 insertions(+) create mode 100644 base/bash/bash-4.2-man.patch.xz create mode 100644 base/bash/bash-4.2-paths.patch.xz create mode 100644 base/bash/bash-4.2-pgrpsync.patch.xz create mode 100644 base/bash/bash-4.2-readlineoom.patch.xz create mode 100644 base/bash/bash-4.2-security.patch.xz create mode 100644 base/bash/bash-4.2-update045.patch.xz create mode 100755 base/bash/bash.build (limited to 'base/bash') diff --git a/base/bash/bash-4.2-man.patch.xz b/base/bash/bash-4.2-man.patch.xz new file mode 100644 index 0000000..7171ecb Binary files /dev/null and b/base/bash/bash-4.2-man.patch.xz differ diff --git a/base/bash/bash-4.2-paths.patch.xz b/base/bash/bash-4.2-paths.patch.xz new file mode 100644 index 0000000..7d0b01d Binary files /dev/null and b/base/bash/bash-4.2-paths.patch.xz differ diff --git a/base/bash/bash-4.2-pgrpsync.patch.xz b/base/bash/bash-4.2-pgrpsync.patch.xz new file mode 100644 index 0000000..869cbed Binary files /dev/null and b/base/bash/bash-4.2-pgrpsync.patch.xz differ diff --git a/base/bash/bash-4.2-readlineoom.patch.xz b/base/bash/bash-4.2-readlineoom.patch.xz new file mode 100644 index 0000000..8e58b9d Binary files /dev/null and b/base/bash/bash-4.2-readlineoom.patch.xz differ diff --git a/base/bash/bash-4.2-security.patch.xz b/base/bash/bash-4.2-security.patch.xz new file mode 100644 index 0000000..3b38b1b Binary files /dev/null and b/base/bash/bash-4.2-security.patch.xz differ diff --git a/base/bash/bash-4.2-update045.patch.xz b/base/bash/bash-4.2-update045.patch.xz new file mode 100644 index 0000000..44ca452 Binary files /dev/null and b/base/bash/bash-4.2-update045.patch.xz differ 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