diff options
author | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
---|---|---|
committer | Deposite Pirate | 2018-09-16 18:48:36 +0200 |
commit | d150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch) | |
tree | ce5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /base/bash | |
parent | f29d3519ce073ec30f99754d93304324f7f26d65 (diff) |
Add ports.
Diffstat (limited to 'base/bash')
-rw-r--r-- | base/bash/bash-4.2-man.patch.xz | bin | 0 -> 1196 bytes | |||
-rw-r--r-- | base/bash/bash-4.2-paths.patch.xz | bin | 0 -> 628 bytes | |||
-rw-r--r-- | base/bash/bash-4.2-pgrpsync.patch.xz | bin | 0 -> 344 bytes | |||
-rw-r--r-- | base/bash/bash-4.2-readlineoom.patch.xz | bin | 0 -> 336 bytes | |||
-rw-r--r-- | base/bash/bash-4.2-security.patch.xz | bin | 0 -> 296 bytes | |||
-rw-r--r-- | base/bash/bash-4.2-update045.patch.xz | bin | 0 -> 15352 bytes | |||
-rwxr-xr-x | base/bash/bash.build | 114 |
7 files changed, 114 insertions, 0 deletions
diff --git a/base/bash/bash-4.2-man.patch.xz b/base/bash/bash-4.2-man.patch.xz Binary files differnew file mode 100644 index 0000000..7171ecb --- /dev/null +++ b/base/bash/bash-4.2-man.patch.xz diff --git a/base/bash/bash-4.2-paths.patch.xz b/base/bash/bash-4.2-paths.patch.xz Binary files differnew file mode 100644 index 0000000..7d0b01d --- /dev/null +++ b/base/bash/bash-4.2-paths.patch.xz diff --git a/base/bash/bash-4.2-pgrpsync.patch.xz b/base/bash/bash-4.2-pgrpsync.patch.xz Binary files differnew file mode 100644 index 0000000..869cbed --- /dev/null +++ b/base/bash/bash-4.2-pgrpsync.patch.xz diff --git a/base/bash/bash-4.2-readlineoom.patch.xz b/base/bash/bash-4.2-readlineoom.patch.xz Binary files differnew file mode 100644 index 0000000..8e58b9d --- /dev/null +++ b/base/bash/bash-4.2-readlineoom.patch.xz diff --git a/base/bash/bash-4.2-security.patch.xz b/base/bash/bash-4.2-security.patch.xz Binary files differnew file mode 100644 index 0000000..3b38b1b --- /dev/null +++ b/base/bash/bash-4.2-security.patch.xz diff --git a/base/bash/bash-4.2-update045.patch.xz b/base/bash/bash-4.2-update045.patch.xz Binary files differnew file mode 100644 index 0000000..44ca452 --- /dev/null +++ b/base/bash/bash-4.2-update045.patch.xz 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 <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=bash +MAJOR=4.2 +VERSION=${MAJOR}.45 +BUILD=1 + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: bash (sh-compatible shell) +${NAME}: +${NAME}: The GNU Bourne-Again SHell. Bash is a sh-compatible command +${NAME}: interpreter that executes commands read from the standard input or +${NAME}: from a file. Bash also incorporates useful features from the Korn +${NAME}: and C shells (ksh and csh). Bash is ultimately intended to be a +${NAME}: conformant implementation of the IEEE Posix Shell and Tools +${NAME}: specification (IEEE Working Group 1003.2). +${NAME}: +${NAME}: Bash must be present for the system to boot properly. +${NAME}: +EOF + +cat >> ${PKG}/install/doinst.sh <<EOF +#!/bin/sh + +# Install texinfo files + +install_info() +{ + for file in "\${*}"; do + if [ -x usr/bin/install-info ]; then + usr/bin/install-info --info-dir=usr/share/info usr/share/info/\${file}.info.xz 2> /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 +) +} |