diff options
Diffstat (limited to 'system/etsh/etsh.SlackBuild')
-rw-r--r-- | system/etsh/etsh.SlackBuild | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/system/etsh/etsh.SlackBuild b/system/etsh/etsh.SlackBuild index 6e87ea5bdf..4122b46507 100644 --- a/system/etsh/etsh.SlackBuild +++ b/system/etsh/etsh.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for etsh -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. @@ -18,14 +18,21 @@ # The name means "Extended Thompson Shell", it's nothing to do with # phoning home... +# 20220507 bkw, BUILD=2: +# - add doinst.sh: add /bin/etsh to /etc/shells, but not /bin/tsh +# per upstream's recommendation. +# 20191201 bkw: updated for v5.4.0. # 20180902 bkw: updated for v5.3.1. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=etsh -VERSION=${VERSION:-5.3.1} # main etsh version +VERSION=${VERSION:-5.4.0} # main etsh version V6S_VER=${V6S_VER:-20180109} # v6scripts version LT_VER=${LT_VER:-20180115} # looptest version -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +42,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -63,11 +74,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \+ -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ ./configure # not a GNU autoconf script, does not take standard args make PREFIX=/usr BINDIR=/bin DESTDIR=$PKG WARNINGS="$SLKCFLAGS" install @@ -90,13 +98,14 @@ cd - # binaries already stripped gzip -9 $PKG/usr/man/man?/*.? -cp -a AUTHORS CHANGES* DEDICATIONS History \ +cp -a AUTHORS CHANGES* DEDICATIONS \ LICENSE NOTES PROJECT README* examples \ $DOCDIR cat $CWD/$PRGNAM.SlackBuild > $DOCDIR/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |