mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
system/usbview: Updated for version 3.0
Signed-off-by: Kyle Guinn <elyk03@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
eef9b4c6e9
commit
f19463bce8
4 changed files with 16 additions and 18 deletions
|
@ -2,16 +2,3 @@ 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.
|
||||
|
||||
For this program to be useful, you will need to mount the debug filesystem
|
||||
(debugfs). Add this line to your /etc/fstab:
|
||||
|
||||
debugfs /sys/kernel/debug debugfs noauto 0 0
|
||||
|
||||
Now a simple `mount debugfs` will make the USB info available to USBView.
|
||||
|
||||
The debugfs root directory is accessible only to the root user by default.
|
||||
You can grant access to the USB device info (as well as the rest of the
|
||||
debugfs tree) with the "uid", "gid", and "mode" mount options. For example:
|
||||
|
||||
debugfs /sys/kernel/debug debugfs noauto,mode=755 0 0
|
||||
|
|
10
system/usbview/doinst.sh
Normal file
10
system/usbview/doinst.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=usbview
|
||||
VERSION=${VERSION:-2.1}
|
||||
VERSION=${VERSION:-3.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -47,7 +47,7 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM-$VERSION
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
DOCS="AUTHORS ChangeLog INSTALL README TODO LICENSES/GPL-2.0-only.txt"
|
||||
DOCS="AUTHORS ChangeLog README LICENSES/*"
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
|
@ -102,6 +102,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="usbview"
|
||||
VERSION="2.1"
|
||||
VERSION="3.0"
|
||||
HOMEPAGE="http://www.kroah.com/linux/usb/"
|
||||
DOWNLOAD="https://github.com/gregkh/usbview/archive/v2.1/usbview-2.1.tar.gz"
|
||||
MD5SUM="a9b455e4cad1d2839c38f864b4deb810"
|
||||
DOWNLOAD="https://github.com/gregkh/usbview/archive/v3.0/usbview-3.0.tar.gz"
|
||||
MD5SUM="cf82e838acad955e787b8a825bc264cd"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue