From 329245f397a3551f5eb2040c9f8edac62483da83 Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Fri, 8 Feb 2019 20:54:44 +0700 Subject: system/loksh: Added doinst.sh. Signed-off-by: Willy Sudiarto Raharjo --- system/loksh/doinst.sh | 8 ++++++++ system/loksh/loksh.SlackBuild | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 system/loksh/doinst.sh (limited to 'system/loksh') diff --git a/system/loksh/doinst.sh b/system/loksh/doinst.sh new file mode 100644 index 0000000000..84285f3b07 --- /dev/null +++ b/system/loksh/doinst.sh @@ -0,0 +1,8 @@ +if [ ! -r etc/shells ]; then + touch etc/shells + chmod 644 etc/shells +fi + +if ! grep -q /bin/loksh etc/shells ; then + printf %s\\n /bin/loksh >> etc/shells +fi diff --git a/system/loksh/loksh.SlackBuild b/system/loksh/loksh.SlackBuild index 267dfa915c..dd948e5be7 100644 --- a/system/loksh/loksh.SlackBuild +++ b/system/loksh/loksh.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for loksh -# Copyright 2018 Hunter Sezen California, USA +# Copyright 2018-2019 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=loksh VERSION=${VERSION:-6.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -83,8 +83,8 @@ make install \ mkdir -p $PKG/usr/bin ln -s /bin/$PRGNAM $PKG/usr/bin/$PRGNAM -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | + grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done @@ -94,6 +94,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$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} -- cgit v1.2.3