diff options
author | James Geboski <jgeboski@gmail.com> | 2010-12-05 23:35:30 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-12-06 23:26:21 -0600 |
commit | 63445f1d61fbc554a45b19fa04f482dc21ee2867 (patch) | |
tree | 844025b6e7751ce3c073b64a217beac0ace57b56 /misc | |
parent | 78c8a79b92f1022575331a7c0cf74ba0183aa127 (diff) |
misc/WhatPulse: Added (keystroke/mouse stat monitor)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/WhatPulse/99-whatpulse-input.rules | 1 | ||||
-rw-r--r-- | misc/WhatPulse/README | 6 | ||||
-rw-r--r-- | misc/WhatPulse/WhatPulse.SlackBuild | 72 | ||||
-rw-r--r-- | misc/WhatPulse/WhatPulse.info | 10 | ||||
-rw-r--r-- | misc/WhatPulse/slack-desc | 19 |
5 files changed, 108 insertions, 0 deletions
diff --git a/misc/WhatPulse/99-whatpulse-input.rules b/misc/WhatPulse/99-whatpulse-input.rules new file mode 100644 index 0000000000000..0a213b1b2d404 --- /dev/null +++ b/misc/WhatPulse/99-whatpulse-input.rules @@ -0,0 +1 @@ +KERNEL=="event*", NAME="input/%k", MODE:="640", GROUP:"whatpulse" diff --git a/misc/WhatPulse/README b/misc/WhatPulse/README new file mode 100644 index 0000000000000..903c8842bbddd --- /dev/null +++ b/misc/WhatPulse/README @@ -0,0 +1,6 @@ +WhatPulse is an application which monitors the number of keystrokes +and mouse clicks/movement. All of a user's keystrokes and mouse +statistics are pulsed and compiled into a nice view on whatpulse.org. + +You will need to create a "whatpulse" group before building this, and +users will need to be in that group in order to use WhatPulse. diff --git a/misc/WhatPulse/WhatPulse.SlackBuild b/misc/WhatPulse/WhatPulse.SlackBuild new file mode 100644 index 0000000000000..e5f12b69c7eed --- /dev/null +++ b/misc/WhatPulse/WhatPulse.SlackBuild @@ -0,0 +1,72 @@ +#!/bin/sh + +# Slackware build script for WhatPulse + +# Copyright 2010 James Geboski <jgeboski@gmail.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=WhatPulse +VERSION=${VERSION:-1.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "x86_64" ]; then + PKG_ARCH="64" +else + PKG_ARCH="32" +fi + +if ! getent group whatpulse ; then + printf "\n\tYou must have a \"whatpulse\" group to build/use WhatPulse.\n" + printf "\t\tgroupadd -g 242 whatpulse \n\n" + exit 1 +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +mkdir -p $PKG/usr/bin +tar xf $CWD/$PRGNAM-Linux$PKG_ARCH-$VERSION.tar.gz -C $PKG/usr/bin +chown root:whatpulse $PKG/usr/bin/WhatPulse +chmod 0750 $PKG/usr/bin/WhatPulse + +mkdir -p $PKG/lib/udev/rules.d +cat $CWD/99-whatpulse-input.rules > $PKG/lib/udev/rules.d/99-whatpulse-input.rules + +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.${PKGTYPE:-tgz} diff --git a/misc/WhatPulse/WhatPulse.info b/misc/WhatPulse/WhatPulse.info new file mode 100644 index 0000000000000..d7044a4fd5351 --- /dev/null +++ b/misc/WhatPulse/WhatPulse.info @@ -0,0 +1,10 @@ +PRGNAM="WhatPulse" +VERSION="1.2" +HOMEPAGE="http://jmrk.whatpulse.org/" +DOWNLOAD="http://jmrk.whatpulse.org/1.2/WhatPulse-Linux32-1.2.tar.gz" +MD5SUM="e0c32bc91563bbccb362cad215df0b94" +DOWNLOAD_x86_64="http://jmrk.whatpulse.org/1.2/WhatPulse-Linux64-1.2.tar.gz" +MD5SUM_x86_64="85c171b3cffdc378ff0fe947ebd246bb" +MAINTAINER="James Geboski" +EMAIL="jgeboski@gmail.com" +APPROVED="rworkman" diff --git a/misc/WhatPulse/slack-desc b/misc/WhatPulse/slack-desc new file mode 100644 index 0000000000000..731bb4506c284 --- /dev/null +++ b/misc/WhatPulse/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +WhatPulse: WhatPulse (Keystrokes and mouse clicks/movement statistics) +WhatPulse: +WhatPulse: WhatPulse is an application which monitors the number of keystrokes +WhatPulse: and mouse clicks/movement. All of a user's keystrokes and mouse +WhatPulse: statistics are pulsed and compiled into a nice view on whatpulse.org. +WhatPulse: +WhatPulse: Homepage: http://whatpulse.org/ +WhatPulse: +WhatPulse: +WhatPulse: +WhatPulse: |