diff options
Diffstat (limited to 'system/system76-power/system76-power.SlackBuild')
-rw-r--r-- | system/system76-power/system76-power.SlackBuild | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/system/system76-power/system76-power.SlackBuild b/system/system76-power/system76-power.SlackBuild index 391536fba8..ba3303aa2f 100644 --- a/system/system76-power/system76-power.SlackBuild +++ b/system/system76-power/system76-power.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for system76-power -# Copyright 2019-2022 Erich Ritz, Jenks, Oklahoma, USA +# Copyright 2019-2024 Erich Ritz, Jenks, Oklahoma, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -33,7 +33,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=system76-power -VERSION=${VERSION:-1.1.20} +VERSION=${VERSION:-1.1.25_fc8eb49} +SRCVER=${SRCVER:-fc8eb49fae5222da56dcfa414ef2b190e9f870c7} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -52,9 +53,6 @@ case "$ARCH" in *) echo "Unsupported ARCH '$ARCH'"; exit 1 ;; esac -# 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 @@ -83,9 +81,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz +cd $PRGNAM-$SRCVER # build offline # configuration tells cargo to use the configured directory @@ -157,7 +155,7 @@ mkdir vendor printf ' "package": "%s"' "$cksum" printf "}\n" - } | python -c "import sys, json; data = sys.stdin.read(); print json.dumps(json.loads(data), sort_keys=True, indent=4, separators=(',', ' : '))" > $dep-$ver/.cargo-checksum.json + } | python3 -c "import sys, json; data = sys.stdin.read(); print (json.dumps(json.loads(data), sort_keys=True, indent=4, separators=(',', ' : ')))" > $dep-$ver/.cargo-checksum.json done ) @@ -170,6 +168,10 @@ find -L . \ # Prevent syslog messasge 'Unknown group "sudo" in message bus configuration file'. patch -p1 < $CWD/fix_groups.patch +# Prevent CPU from overheating +patch -p1 < $CWD/xeon_fan_curve.patch +# Prevent NVMe U.2 SSD from overheating +patch -p1 < $CWD/nvme_temp.patch export CARGO_HOME=.cargo @@ -181,8 +183,7 @@ make install DESTDIR=$PKG 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 -rm -rf $PKG/etc/systemd -mv $PKG/etc/dbus-1 $PKG/usr/share/ +rm -rf $PKG/usr/lib mkdir -p $PKG/etc/logrotate.d $PKG/etc/rc.d install -m 0644 $CWD/config/system76-power.logrotate $PKG/etc/logrotate.d/system76-power.new install -m 0644 $CWD/config/rc.system76-power $PKG/etc/rc.d/rc.system76-power.new |