summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/usbview/README13
-rw-r--r--system/usbview/doinst.sh10
-rw-r--r--system/usbview/usbview.SlackBuild5
-rw-r--r--system/usbview/usbview.info6
4 files changed, 16 insertions, 18 deletions
diff --git a/system/usbview/README b/system/usbview/README
index 03ae2de1e8..575f346f1f 100644
--- a/system/usbview/README
+++ b/system/usbview/README
@@ -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
diff --git a/system/usbview/doinst.sh b/system/usbview/doinst.sh
new file mode 100644
index 0000000000..4a25de5e6f
--- /dev/null
+++ b/system/usbview/doinst.sh
@@ -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
+
diff --git a/system/usbview/usbview.SlackBuild b/system/usbview/usbview.SlackBuild
index 8fcf9947ae..2d4e8cf8c8 100644
--- a/system/usbview/usbview.SlackBuild
+++ b/system/usbview/usbview.SlackBuild
@@ -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
diff --git a/system/usbview/usbview.info b/system/usbview/usbview.info
index cb9fc51dec..8e60af61e0 100644
--- a/system/usbview/usbview.info
+++ b/system/usbview/usbview.info
@@ -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=""