summaryrefslogtreecommitdiffstats
path: root/system/hw-probe
diff options
context:
space:
mode:
Diffstat (limited to 'system/hw-probe')
-rw-r--r--system/hw-probe/README6
-rw-r--r--system/hw-probe/hw-probe.SlackBuild73
-rw-r--r--system/hw-probe/hw-probe.info10
-rw-r--r--system/hw-probe/slack-desc19
4 files changed, 108 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..e5b562c257
--- /dev/null
+++ b/system/hw-probe/hw-probe.SlackBuild
@@ -0,0 +1,73 @@
+#!/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.6}
+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 $TMP
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz $PRGNAM-$VERSION/$PRGNAM.pl
+cd $PRGNAM-$VERSION
+
+mkdir -p $PKG/usr/bin
+chmod 0755 $PRGNAM.pl
+mv $PRGNAM.pl $PKG/usr/bin/$PRGNAM
+
+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 {} \;
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/usr/man/man1
+help2man -n $PRGNAM -s 1 $PKG/usr/bin/${PRGNAM} -o $PKG/usr/man/man1/${PRGNAM}.1
+gzip -9 $PKG/usr/man/man1/${PRGNAM}.1
+
+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..bd52bc134d
--- /dev/null
+++ b/system/hw-probe/hw-probe.info
@@ -0,0 +1,10 @@
+PRGNAM="hw-probe"
+VERSION="1.6"
+HOMEPAGE="https://github.com/linuxhw/hw-probe"
+DOWNLOAD="https://github.com/linuxhw/hw-probe/archive/1.6/hw-probe-1.6.tar.gz"
+MD5SUM="0d35a322c1c619bc23b3c247b2c8772e"
+DOWNLOAD_x86_64=""
+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: