aboutsummaryrefslogtreecommitdiff
path: root/system/memtester/memtester.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/memtester/memtester.SlackBuild')
-rw-r--r--system/memtester/memtester.SlackBuild38
1 files changed, 17 insertions, 21 deletions
diff --git a/system/memtester/memtester.SlackBuild b/system/memtester/memtester.SlackBuild
index 332035a7fe..54c1230e8d 100644
--- a/system/memtester/memtester.SlackBuild
+++ b/system/memtester/memtester.SlackBuild
@@ -6,7 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
-# The _1 is the debian patchlevel.
+# 20250127 bkw: update for v4.7.1. upstream homepage is still broken,
+# though it turns out it will display in some browsers, but not others.
+# Sent email to upstream, hopefully this can get resolved soon.
+# Also, move the binary to /usr/sbin, since it's a sysadmin utility
+# with a section 8 man page.
+
+# 20241203 bkw: update for v4.7.0. upstream homepage is still broken.
+# use freebsd archive URL for download.
# 20221228 bkw: update for v4.6.0_1. switched to debian's renamed
# source, since the upstream site is broken (temporarily?)
@@ -14,14 +21,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=memtester
-VERSION=${VERSION:-4.6.0_1}
+VERSION=${VERSION:-4.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-SRCVER="$( echo $VERSION | cut -d_ -f1 )"
-DEBVER="$( echo $VERSION | cut -d_ -f2 )"
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -41,16 +45,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
fi
set -e
@@ -58,22 +58,18 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG/usr $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVER
-tar xvf $CWD/${PRGNAM}_$SRCVER.orig.tar.gz
-cd $PRGNAM-$SRCVER
-tar xvf $CWD/${PRGNAM}_$SRCVER-$DEBVER.debian.tar.xz
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
-# These patches don't do much, but they're worth having.
-for i in $( cat debian/patches/series ); do
- patch -p1 < debian/patches/$i
-done
+sed -i "s,-O2,$SLKCFLAGS," conf-cc
-# After applying the debian patches, CC doesn't get a default value (?)
-make CC=${CC:-gcc} CFLAGS="$SLKCFLAGS"
+make CFLAGS="$SLKCFLAGS"
make install INSTALLPATH=$PKG/usr
+mv $PKG/usr/bin $PKG/usr/sbin
# Binary already stripped, manpage already gzipped.