diff options
Diffstat (limited to 'system/msr-tools')
-rw-r--r-- | system/msr-tools/README | 7 | ||||
-rw-r--r-- | system/msr-tools/msr-tools.SlackBuild | 16 |
2 files changed, 17 insertions, 6 deletions
diff --git a/system/msr-tools/README b/system/msr-tools/README index 79632612ef..6591a08a19 100644 --- a/system/msr-tools/README +++ b/system/msr-tools/README @@ -1,7 +1,8 @@ -MSR Tools project provides utilities to access the processor MSRs and CPU ID -directly. +MSR Tools project provides utilities to access the processor MSRs and +CPU ID directly. -This project is composed of three different user space console applications. +This project is composed of three different user space console +applications. rdmsr – read MSR from any CPU or all CPUs wrmsr – write values to MSR on any CPU or all CPUs diff --git a/system/msr-tools/msr-tools.SlackBuild b/system/msr-tools/msr-tools.SlackBuild index aaa2e511bb..a2e436d2ab 100644 --- a/system/msr-tools/msr-tools.SlackBuild +++ b/system/msr-tools/msr-tools.SlackBuild @@ -1,12 +1,15 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for <msr-tools> # # Michales (clavisound) Michaloudes korgie@gmail.com <2017> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=msr-tools VERSION=${VERSION:-1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -16,7 +19,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +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} @@ -73,4 +83,4 @@ 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:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |