summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/usbmon/README3
-rw-r--r--system/usbmon/slack-desc19
-rw-r--r--system/usbmon/usbmon.SlackBuild53
-rw-r--r--system/usbmon/usbmon.info8
4 files changed, 83 insertions, 0 deletions
diff --git a/system/usbmon/README b/system/usbmon/README
new file mode 100644
index 0000000000..c67ced79dd
--- /dev/null
+++ b/system/usbmon/README
@@ -0,0 +1,3 @@
+The usbmon(8) utility is a user interface to its namesake "usbmon",
+a facility in Linux kernel. It allows monitoring of raw USB traffic in
+a manner similar to the way tcpdump monitors network traffic.
diff --git a/system/usbmon/slack-desc b/system/usbmon/slack-desc
new file mode 100644
index 0000000000..3c285b5a19
--- /dev/null
+++ b/system/usbmon/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------------------------------------------------------|
+usbmon: usbmon (allows monitoring of raw USB traffic)
+usbmon:
+usbmon: The usbmon(8) utility is a user interface to its namesake "usbmon",
+usbmon: a facility in Linux kernel. It allows monitoring of raw USB traffic
+usbmon: in a manner similar to the way tcpdump monitors network traffic.
+usbmon:
+usbmon:
+usbmon:
+usbmon:
+usbmon:
+usbmon:
diff --git a/system/usbmon/usbmon.SlackBuild b/system/usbmon/usbmon.SlackBuild
new file mode 100644
index 0000000000..d2f8411e12
--- /dev/null
+++ b/system/usbmon/usbmon.SlackBuild
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Slackware build script for usbmon
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=usbmon
+VERSION=${VERSION:-5.4}
+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"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+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 a-s,u+w,go+r-w .
+
+make CFLAGS="$SLKCFLAGS"
+strip $PRGNAM
+mkdir -p $PKG/usr/sbin
+install -m0755 -o root -g root $PRGNAM $PKG/usr/sbin
+
+mkdir -p $PKG/usr/man/man8
+gzip -9c $PRGNAM.8 > $PKG/usr/man/man8/$PRGNAM.8.gz
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp COPYING README $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/usbmon/usbmon.info b/system/usbmon/usbmon.info
new file mode 100644
index 0000000000..532e1d25d5
--- /dev/null
+++ b/system/usbmon/usbmon.info
@@ -0,0 +1,8 @@
+PRGNAM="usbmon"
+VERSION="5.4"
+HOMEPAGE="http://people.redhat.com/zaitcev/linux/"
+DOWNLOAD="http://people.redhat.com/zaitcev/linux/usbmon-5.4.tar.gz"
+MD5SUM="b4a9579d95f34b99b7c7c5e06cd62db5"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
+APPROVED="dsomero"