From a71ce2cf6011f351366afb4013f4a58e044694ea Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Fri, 8 Feb 2019 20:56:34 +0700 Subject: system/yash: Added doinst.sh. Signed-off-by: Willy Sudiarto Raharjo --- system/yash/doinst.sh | 8 ++++++++ system/yash/yash.SlackBuild | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 system/yash/doinst.sh (limited to 'system') diff --git a/system/yash/doinst.sh b/system/yash/doinst.sh new file mode 100644 index 0000000000000..0c3b7b70e934f --- /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 dd65ca9fafd21..f9a35c2cd613d 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 -# Copyright 2018 Hunter Sezen +# Copyright 2018-2019 Hunter Sezen # 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} -- cgit v1.2.3