summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author Dimitar Nikov <dimitar at nikov dot net>2024-02-17 22:20:50 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-02-17 23:33:55 +0700
commit89b23aaccca971e4fd104eda1958f3c79739c933 (patch)
treede161e3257df72acd1e612b5955ac915ecbbeb88 /system
parent0c4b2dfd7c7dbe81213f0ea1d0165350ce59a427 (diff)
downloadslackbuilds-89b23aaccca971e4fd104eda1958f3c79739c933.tar.gz
slackbuilds-89b23aaccca971e4fd104eda1958f3c79739c933.tar.xz
system/hw-probe: Added (Hardware detection).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/hw-probe/README6
-rw-r--r--system/hw-probe/hw-probe.SlackBuild71
-rw-r--r--system/hw-probe/hw-probe.info10
-rw-r--r--system/hw-probe/slack-desc19
4 files changed, 106 insertions, 0 deletions
diff --git a/system/hw-probe/README b/system/hw-probe/README
new file mode 100644
index 0000000000..bf1e622827
--- /dev/null
+++ b/system/hw-probe/README
@@ -0,0 +1,6 @@
+A project to anonymously collect hardware details of Linux/BSD
+powered computers over the world and help people to
+collaboratively debug hardware problems.
+
+This script repackages the Debian package provided by Linux
+Hardware Project.
diff --git a/system/hw-probe/hw-probe.SlackBuild b/system/hw-probe/hw-probe.SlackBuild
new file mode 100644
index 0000000000..8f938e56de
--- /dev/null
+++ b/system/hw-probe/hw-probe.SlackBuild
@@ -0,0 +1,71 @@
+#!/bin/bash
+
+# Slackware build script for hw-probe
+
+# Copyright 2024 Dimitar Nikov, Alfreton, United Kingdom
+# 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=hw-probe
+VERSION=${VERSION:-1.5}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+ARCH="noarch"
+
+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 $PKG
+ar p $CWD/${PRGNAM}_${VERSION}-1_all.deb data.tar.xz | tar -xvJ
+
+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 {} \;
+
+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
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/usr/man/man1
+mv $PKG/usr/share/man/man1/$PRGNAM.1.gz $PKG/usr/man/man1
+rm -fr $PKG/usr/share
+
+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/hw-probe/hw-probe.info b/system/hw-probe/hw-probe.info
new file mode 100644
index 0000000000..86fc47b22d
--- /dev/null
+++ b/system/hw-probe/hw-probe.info
@@ -0,0 +1,10 @@
+PRGNAM="hw-probe"
+VERSION="1.5"
+HOMEPAGE="https://github.com/linuxhw/hw-probe"
+DOWNLOAD="http://ftp.de.debian.org/debian/pool/main/h/hw-probe/hw-probe_1.5-1_all.deb"
+MD5SUM="b728c861887d26c75752e142e4488338"
+DOWNLOAD_x86_64="UNSUPPORTED"
+MD5SUM_x86_64=""
+REQUIRES="acpica hwinfo perl-Digest-SHA libwww-perl lsb-release cpuid i2c-tools memtester vdpauinfo"
+MAINTAINER="Dimitar Nikov"
+EMAIL="dimitar at nikov dot net"
diff --git a/system/hw-probe/slack-desc b/system/hw-probe/slack-desc
new file mode 100644
index 0000000000..765f1507bc
--- /dev/null
+++ b/system/hw-probe/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------------------------------------------------------|
+hw-probe: hw-probe (hardware probe tool)
+hw-probe:
+hw-probe: hw-probe - a tool to probe for hardware, check operability and find
+hw-probe: drivers with the help of Linux hardware database available at:
+hw-probe: https://linux-hardware.org
+hw-probe:
+hw-probe: Homepage: https://github.com/linuxhw/hw-probe
+hw-probe:
+hw-probe:
+hw-probe:
+hw-probe: