diff options
-rw-r--r-- | system/hwinfo/README | 7 | ||||
-rw-r--r-- | system/hwinfo/hwinfo.SlackBuild | 92 | ||||
-rw-r--r-- | system/hwinfo/hwinfo.info | 10 | ||||
-rw-r--r-- | system/hwinfo/slack-desc | 19 |
4 files changed, 128 insertions, 0 deletions
diff --git a/system/hwinfo/README b/system/hwinfo/README new file mode 100644 index 0000000000000..e3c10e20d8291 --- /dev/null +++ b/system/hwinfo/README @@ -0,0 +1,7 @@ +A simple program that lists results from the hardware detection +library. + +On compilation a binary called "check_hd" is run. This can take quite +some time to complete and may look like the compilation process is stuck. + +hwinfo requires libx86emu, which is also available from SlackBuilds.org
\ No newline at end of file diff --git a/system/hwinfo/hwinfo.SlackBuild b/system/hwinfo/hwinfo.SlackBuild new file mode 100644 index 0000000000000..6dbb81eb8dddd --- /dev/null +++ b/system/hwinfo/hwinfo.SlackBuild @@ -0,0 +1,92 @@ +#!/bin/sh + +# Slackware build script for hwinfo + +# Copyright 2009-2010 Heinz Wiesinger, Amsterdam, The Netherlands +# 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. + +PRGNAM=hwinfo +VERSION=16.10 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +# remove suse specific syscall +sed -i '145,149 d' src/hd/kbd.c + +# use our CFLAGS +sed -i "s/?= -O2/?= $SLKCFLAGS/" Makefile.common + +make \ + LIBDIR=/usr/lib$LIBDIRSUFFIX + +make \ + LIBDIR=/usr/lib$LIBDIRSUFFIX \ + DESTDIR=$PKG \ + install + +mkdir -p $PKG/usr/man/man8 +install -m 644 doc/hwinfo.8 $PKG/usr/man/man8/ + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a Changelog COPYING MAINTAINER README VERSION \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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} diff --git a/system/hwinfo/hwinfo.info b/system/hwinfo/hwinfo.info new file mode 100644 index 0000000000000..c2365885aaec8 --- /dev/null +++ b/system/hwinfo/hwinfo.info @@ -0,0 +1,10 @@ +PRGNAM="hwinfo" +VERSION="16.10" +HOMEPAGE="http://gitorious.org/opensuse/hwinfo" +DOWNLOAD="http://www.liwjatan.at/files/src/hwinfo/hwinfo-16.10.tar.xz" +MD5SUM="be6c9736602b31a5508d6e7a3833add9" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Heinz Wiesinger" +EMAIL="pprkut@liwjatan.at" +APPROVED="dsomero" diff --git a/system/hwinfo/slack-desc b/system/hwinfo/slack-desc new file mode 100644 index 0000000000000..e0b23a458439c --- /dev/null +++ b/system/hwinfo/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 ':'. + + |-----handy-ruler--------------------------------------------------| +hwinfo: hwinfo (Hardware detection tool) +hwinfo: +hwinfo: A simple program that lists results from the hardware detection +hwinfo: library. +hwinfo: +hwinfo: Homepage: http://gitorious.org/opensuse/hwinfo +hwinfo: +hwinfo: +hwinfo: +hwinfo: +hwinfo: |