system/swatch: Updated for version 3.2.4.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2015-11-02 20:46:29 +07:00
parent a680462acd
commit 6d1198d66b
4 changed files with 25 additions and 20 deletions

View File

@ -1,3 +1,3 @@
Swatch.pl started out as the "simple watchdog" for activly monitoring
Swatchdog.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.

View File

@ -8,12 +8,12 @@
|-----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: Swatchdog.pl started out as the "simple watchdog" for activly
swatch: monitoring log files produced by UNIX's syslog facility. It has since
swatch: been evolving into a utility that can monitor just about any type of
swatch: log
swatch:
swatch: Project Website: http://sourceforge.net/projects/swatch/
swatch:
swatch:
swatch:
swatch:

View File

@ -2,7 +2,7 @@
# Slackware build script for swatch
# Copyright 2012 Willy Sudiarto Raharjo <willysr@slackware-id.org>
# Copyright 2012-2015 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=swatch
VERSION=${VERSION:-3.2.3}
SRCNAM=swatchdog
VERSION=${VERSION:-3.2.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -59,22 +60,22 @@ 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
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
INSTALLVENDORMAN1DIR=/usr/man/man1 \
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 \
@ -87,10 +88,14 @@ find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
find $PKG -depth -type d -empty -delete || true
# create symlink so that applications depending on this package will not be broken
(
cd $PKG/usr/bin
ln -s $SRCNAM $PRGNAM
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CHANGES COPYING COPYRIGHT INSTALL KNOWN_BUGS MANIFEST README \
$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

View File

@ -1,8 +1,8 @@
PRGNAM="swatch"
VERSION="3.2.3"
VERSION="3.2.4"
HOMEPAGE="http://sourceforge.net/projects/swatch/"
DOWNLOAD="http://downloads.sourceforge.net/swatch/swatch-3.2.3.tar.gz"
MD5SUM="1162f1024cf07fc750ed4960d61ac4e8"
DOWNLOAD="http://downloads.sourceforge.net/swatch/swatchdog-3.2.4.tar.gz"
MD5SUM="df4c20ff7d3f6a46a2efd72a42078011"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-Date-Calc perl-Date-Manip perl-File-Tail perl-TimeDate"