diff options
Diffstat (limited to 'misc/ccze')
-rw-r--r-- | misc/ccze/README | 4 | ||||
-rw-r--r-- | misc/ccze/ccze.SlackBuild | 16 |
2 files changed, 15 insertions, 5 deletions
diff --git a/misc/ccze/README b/misc/ccze/README index aecca5ded1..a38b720f02 100644 --- a/misc/ccze/README +++ b/misc/ccze/README @@ -1,3 +1,3 @@ CCZE is a robust and modular log colorizer with plugins for apm, exim, -fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, vsftpd, xferlog, -and more. +fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, vsftpd, +xferlog, and more. diff --git a/misc/ccze/ccze.SlackBuild b/misc/ccze/ccze.SlackBuild index b106f1e82a..7e3630da62 100644 --- a/misc/ccze/ccze.SlackBuild +++ b/misc/ccze/ccze.SlackBuild @@ -1,13 +1,16 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for ccze # Written by Zbigniew Baniewski, <Zbigniew [dot] Baniewski [at] gmail [dot] com> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=ccze VERSION=${VERSION:-0.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -17,7 +20,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -81,4 +91,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |