desktop/root-tail: Updated for version 1.2

This commit is contained in:
slakmagik 2010-05-13 00:23:09 +02:00 committed by David Somero
parent f175be0ebb
commit 5bc3b272ec
3 changed files with 30 additions and 6 deletions

View file

@ -9,3 +9,15 @@ it a sort of multi-tail.
For example:
root-tail -g 800x250+100+50 -font 10x20 /var/log/messages,green \
-font 12x24 /var/log/secure,red,'ALERT'
By default root-tail doesn't seem to work on XFCE. You need to explicitly
specify the ID of the display to use it (by using the "-id" flag of root-tail).
Use the xprop command to find the active root display, and run this through
the cut command to strip out the ID number for insertion into the
root-tail `-id` field.
It looks a little something like this:
root-tail -g 800x250+100+50 -font fixed /var/log/messages,green \
/var/log/secure,red,'ALERT' -id $(xprop -root XFCE_DESKTOP_WINDOW |\
awk '{ print $NF }')

View file

@ -5,7 +5,7 @@
# Released under the WTFPL
PRGNAM=root-tail
VERSION=1.2
VERSION=${VERSION:-1.2}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -17,8 +17,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -29,7 +34,6 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@ -44,17 +48,23 @@ make DESTDIR=$PKG install
make DESTDIR=$PKG INSTMANFLAGS="-m 0644" install.man
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : |
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |
xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [CR]* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
gzip -9 $PKG/usr/man/man1/$PRGNAM.1x
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
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -3,6 +3,8 @@ VERSION="1.2"
HOMEPAGE="http://www.goof.com/pcg/marc/root-tail.html"
DOWNLOAD="http://www.goof.com/pcg/marc/data/root-tail-1.2.tar.gz"
MD5SUM="5a4b3c4c7ab3bed1f4575e9688aac5de"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="slakmagik"
EMAIL="jsun@freeshell.org"
APPROVED="David Somero"