diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2019-02-08 20:56:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-02-08 20:56:34 +0700 |
commit | a71ce2cf6011f351366afb4013f4a58e044694ea (patch) | |
tree | 1f52408e08c1e41eb4fb126fbbce75f05418160a /system | |
parent | 5b6792910552a5abe9f81bd68c6eaf0f0baafb81 (diff) | |
download | slackbuilds-a71ce2cf6011f351366afb4013f4a58e044694ea.tar.gz |
system/yash: Added doinst.sh.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-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} |