#!/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 ) }