diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-12 23:33:50 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:33:50 +0200 |
commit | c9d45bd585cc9af43898350230ae21779c6e826c (patch) | |
tree | 566a02c3256684bf806e08d5c834e23504c1a1b1 /system/usbmon | |
parent | 15447044a34ee059b64c00e6734fcbb708751258 (diff) |
system/usbmon: Added to 12.2 repository
Diffstat (limited to 'system/usbmon')
-rw-r--r-- | system/usbmon/README | 3 | ||||
-rw-r--r-- | system/usbmon/slack-desc | 19 | ||||
-rw-r--r-- | system/usbmon/usbmon.SlackBuild | 53 | ||||
-rw-r--r-- | system/usbmon/usbmon.info | 8 |
4 files changed, 83 insertions, 0 deletions
diff --git a/system/usbmon/README b/system/usbmon/README new file mode 100644 index 0000000000000..c67ced79dd081 --- /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 0000000000000..3c285b5a1911c --- /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 0000000000000..d2f8411e12c39 --- /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 0000000000000..532e1d25d5b32 --- /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" |