aboutsummaryrefslogtreecommitdiff
path: root/system/etsh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-05-07 14:25:16 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-14 19:27:47 +0700
commit3822b9d63d0b89fce6facf36b334f6197cb9cfe8 (patch)
tree05d7f97fb7c22d7dace87a3c1a242274ba924450 /system/etsh
parent9acd8ddac963118834c07026ed129d5f3ef7567c (diff)
system/etsh: Add /bin/etsh to /etc/shells.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/etsh')
-rw-r--r--system/etsh/doinst.sh1
-rw-r--r--system/etsh/etsh.SlackBuild6
2 files changed, 6 insertions, 1 deletions
diff --git a/system/etsh/doinst.sh b/system/etsh/doinst.sh
new file mode 100644
index 0000000000000..2e23c0776929e
--- /dev/null
+++ b/system/etsh/doinst.sh
@@ -0,0 +1 @@
+grep -q '^/bin/etsh$' etc/shells 2>/dev/null || echo "/bin/etsh" >> etc/shells
diff --git a/system/etsh/etsh.SlackBuild b/system/etsh/etsh.SlackBuild
index c43a73efd2478..a759ec07e75c3 100644
--- a/system/etsh/etsh.SlackBuild
+++ b/system/etsh/etsh.SlackBuild
@@ -18,6 +18,9 @@
# 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.
@@ -27,7 +30,7 @@ PRGNAM=etsh
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}
@@ -102,6 +105,7 @@ 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