diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2022-07-01 22:07:07 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-02 09:55:34 +0700 |
commit | 56ff22b7c7e6f8939f3c9d1657e7d55dfb90c227 (patch) | |
tree | b4dc50bf0154fbd4e970d4f6d7f70da896f0d45f /system | |
parent | 126c8b01bf4931afffb461c6a7bd49f74e81516b (diff) | |
download | slackbuilds-56ff22b7c7e6f8939f3c9d1657e7d55dfb90c227.tar.gz |
system/sst: Added (Solidigm Storage Tool)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/sst/README | 7 | ||||
-rw-r--r-- | system/sst/slack-desc | 19 | ||||
-rw-r--r-- | system/sst/sst.SlackBuild | 91 | ||||
-rw-r--r-- | system/sst/sst.info | 10 |
4 files changed, 127 insertions, 0 deletions
diff --git a/system/sst/README b/system/sst/README new file mode 100644 index 0000000000..74f398284a --- /dev/null +++ b/system/sst/README @@ -0,0 +1,7 @@ +sst (Solidigm Storage Tool) is a proprietary command-line tool to +manage Solidigm SSDs (former Intel SSDs). It provides firmware update +capability as well as reading and setting many configuration settings. + +To work with SATA drives sst requires the sg kernel module. To have +this module loaded on boot, please uncomment the corresponding line in +/etc/rc.d/rc.modules.local diff --git a/system/sst/slack-desc b/system/sst/slack-desc new file mode 100644 index 0000000000..8f7f43ce12 --- /dev/null +++ b/system/sst/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +sst: sst (Solidigm Storage Tool) +sst: +sst: sst (Solidigm Storage Tool) is a proprietary command-line tool to +sst: manage Solidigm SSDs (former Intel SSDs). It provides firmware +sst: update capability as well as reading and setting many configuration +sst: settings. +sst: +sst: +sst: Homepage: https://www.intel.com/content/www/us/en/download/715595/ +sst: +sst: diff --git a/system/sst/sst.SlackBuild b/system/sst/sst.SlackBuild new file mode 100644 index 0000000000..aa95d291a7 --- /dev/null +++ b/system/sst/sst.SlackBuild @@ -0,0 +1,91 @@ +#!/bin/bash + +# Slackware build script for sst + +# Copyright 2022, Alexander Verbovetsky, Moscow, Russia +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=sst +VERSION=${VERSION:-1.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +case "$ARCH" in + i?86) RPMARCH=i386 ;; + x86_64) RPMARCH=x86_64 ;; + *) printf "\n$ARCH is unsupported for the Solidigm Storage Tool.\n\n" + exit 1 ;; +esac + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION + +unzip "$CWD/${PRGNAM^^}_CLI_Linux_${VERSION}.zip" +rpm2cpio ${PRGNAM}-${VERSION}*.$RPMARCH.rpm | cpio -imdv + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# The library path is hard-coded, so we stick with /usr/lib +cp -a usr $PKG +mv $PKG/usr/bin $PKG/usr/sbin + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.pdf $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/sst/sst.info b/system/sst/sst.info new file mode 100644 index 0000000000..84fb44e3d3 --- /dev/null +++ b/system/sst/sst.info @@ -0,0 +1,10 @@ +PRGNAM="sst" +VERSION="1.1" +HOMEPAGE="https://www.intel.com/content/www/us/en/download/715595/" +DOWNLOAD="https://downloadmirror.intel.com/728230/SST_CLI_Linux_1.1.zip" +MD5SUM="e52deedcbc1cd60f1678f4aed2fdc7f0" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Alexander Verbovetsky" +EMAIL="alik@ejik.org" |