From 3f09cac00b409b6e441037f2f7e789fb9801a174 Mon Sep 17 00:00:00 2001 From: Kyle Guinn Date: Tue, 11 May 2010 20:02:10 +0200 Subject: system/usbview: Added to 12.0 repository --- system/usbview/README | 4 +++ system/usbview/slack-desc | 19 ++++++++++++++ system/usbview/usbview.SlackBuild | 54 +++++++++++++++++++++++++++++++++++++++ system/usbview/usbview.info | 8 ++++++ 4 files changed, 85 insertions(+) create mode 100644 system/usbview/README create mode 100644 system/usbview/slack-desc create mode 100644 system/usbview/usbview.SlackBuild create mode 100644 system/usbview/usbview.info (limited to 'system/usbview') diff --git a/system/usbview/README b/system/usbview/README new file mode 100644 index 0000000000..575f346f1f --- /dev/null +++ b/system/usbview/README @@ -0,0 +1,4 @@ +USBView is a GTK program that displays the topography of the devices that are +plugged into the USB bus on a Linux machine. It also displays information on +each of the devices. This can be useful to determine if a device is working +properly or not. diff --git a/system/usbview/slack-desc b/system/usbview/slack-desc new file mode 100644 index 0000000000..1722e1707b --- /dev/null +++ b/system/usbview/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------------------------------------------------------| +usbview: USBView (GTK program that displays the topography of USB devices) +usbview: +usbview: USBView is a GTK program that displays the topography of the +usbview: devices that are plugged into the USB bus on a Linux machine. +usbview: It also displays information on each of the devices. This can +usbview: be useful to determine if a device is working properly or not. +usbview: +usbview: Homepage: http://www.kroah.com/linux/usb/ +usbview: +usbview: +usbview: diff --git a/system/usbview/usbview.SlackBuild b/system/usbview/usbview.SlackBuild new file mode 100644 index 0000000000..158bdd1a15 --- /dev/null +++ b/system/usbview/usbview.SlackBuild @@ -0,0 +1,54 @@ +#!/bin/sh + +# Slackware build script for usbview +# Written by Kyle Guinn + +PRGNAM="usbview" +VERSION="1.0" +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +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 +chown -R root:root . +chmod -R u+w,go+r-w,a-st . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $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.tgz diff --git a/system/usbview/usbview.info b/system/usbview/usbview.info new file mode 100644 index 0000000000..49ec6c841b --- /dev/null +++ b/system/usbview/usbview.info @@ -0,0 +1,8 @@ +PRGNAM="usbview" +VERSION="1.0" +HOMEPAGE="http://www.kroah.com/linux/usb/" +DOWNLOAD="http://downloads.sourceforge.net/usbview/usbview-1.0.tar.gz" +MD5SUM="2ac1bdae03a858b965e895b211a75ad7" +MAINTAINER="Kyle Guinn" +EMAIL="elyk03@gmail.com" +APPROVED="rworkman" -- cgit v1.2.3