diff options
-rw-r--r-- | system/yash/doinst.sh | 8 | ||||
-rw-r--r-- | system/yash/yash.SlackBuild | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/system/yash/doinst.sh b/system/yash/doinst.sh new file mode 100644 index 0000000000..0c3b7b70e9 --- /dev/null +++ b/system/yash/doinst.sh @@ -0,0 +1,8 @@ +if [ ! -r etc/shells ]; then + touch etc/shells + chmod 644 etc/shells +fi + +if ! grep -q /bin/yash etc/shells ; then + printf %s\\n /bin/yash >> etc/shells +fi diff --git a/system/yash/yash.SlackBuild b/system/yash/yash.SlackBuild index dd65ca9faf..f9a35c2cd6 100644 --- a/system/yash/yash.SlackBuild +++ b/system/yash/yash.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for yash # Copyright 2015-2018 Leonard Schmidt <lems@gmx.net> -# Copyright 2018 Hunter Sezen <orbea@fredslev.dk> +# Copyright 2018-2019 Hunter Sezen <orbea@fredslev.dk> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ PRGNAM=yash VERSION=${VERSION:-2.48} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -80,7 +80,7 @@ make make install DESTDIR=$PKG mkdir -p $PKG/usr/bin -( cd $PKG/usr/bin ; ln -sf /bin/yash yash ) +ln -sf /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 @@ -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} |