diff options
author | Willy Sudiarto Raharjo <willysr@slackware-id.org> | 2012-12-16 08:44:02 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-16 08:44:56 +0100 |
commit | 604e4843cf68d2461f6d565b1a6496a669371fc8 (patch) | |
tree | 519b74cbd3e7e70b8843124fe7b6b8decf73d96c /system | |
parent | 2815315853f6b2b7b790def49f7d7a3e0673ecca (diff) |
system/swatch: Added (Simple Log Watcher).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/swatch/README | 3 | ||||
-rw-r--r-- | system/swatch/slack-desc | 19 | ||||
-rw-r--r-- | system/swatch/swatch.SlackBuild | 100 | ||||
-rw-r--r-- | system/swatch/swatch.info | 10 |
4 files changed, 132 insertions, 0 deletions
diff --git a/system/swatch/README b/system/swatch/README new file mode 100644 index 0000000000000..7c309c2ff3a61 --- /dev/null +++ b/system/swatch/README @@ -0,0 +1,3 @@ +Swatch.pl started out as the "simple watchdog" for activly monitoring +log files produced by UNIX's syslog facility. It has since been +evolving into a utility that can monitor just about any type of log. diff --git a/system/swatch/slack-desc b/system/swatch/slack-desc new file mode 100644 index 0000000000000..7e4e62916b9dc --- /dev/null +++ b/system/swatch/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------------------------------------------------------| +swatch: swatch (Simple Log Watcher) +swatch: +swatch: Swatch.pl started out as the "simple watchdog" for activly monitoring +swatch: log files produced by UNIX's syslog facility. It has since been +swatch: evolving into a utility that can monitor just about any type of log. +swatch: +swatch: Project Website: http://sourceforge.net/projects/swatch/ +swatch: +swatch: +swatch: +swatch: diff --git a/system/swatch/swatch.SlackBuild b/system/swatch/swatch.SlackBuild new file mode 100644 index 0000000000000..3353e6d12c928 --- /dev/null +++ b/system/swatch/swatch.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/sh + +# Slackware build script for swatch + +# Copyright 2012 Willy Sudiarto Raharjo <willysr@slackware-id.org> +# 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=swatch +VERSION=${VERSION:-3.2.3} +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" = "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" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +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 . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +perl Makefile.PL \ + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 +make +make test +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true + +find $PKG -depth -type d -empty -delete || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGES COPYING COPYRIGHT INSTALL KNOWN_BUGS MANIFEST 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.${PKGTYPE:-tgz} diff --git a/system/swatch/swatch.info b/system/swatch/swatch.info new file mode 100644 index 0000000000000..011515f89dc70 --- /dev/null +++ b/system/swatch/swatch.info @@ -0,0 +1,10 @@ +PRGNAM="swatch" +VERSION="3.2.3" +HOMEPAGE="http://sourceforge.net/projects/swatch/" +DOWNLOAD="http://downloads.sourceforge.net/swatch/swatch-3.2.3.tar.gz" +MD5SUM="1162f1024cf07fc750ed4960d61ac4e8" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="perl-Date-Calc perl-Date-Manip perl-File-Tail perl-TimeDate" +MAINTAINER="Willy Sudiarto Raharjo" +EMAIL="willysr@slackware-id.org" |