aboutsummaryrefslogtreecommitdiff
path: root/system/goaccess/goaccess.SlackBuild
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2020-05-12 03:42:43 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-05-16 08:44:09 +0700
commitec3ec90337997af4331999df0d9bc13c79aca20e (patch)
tree2cb1388047a71009099a4e042c1b551c2f83cf2c /system/goaccess/goaccess.SlackBuild
parent79a7a488253166af1f403d64facddb52ad49332c (diff)
system/goaccess: Updated for version 1.3.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/goaccess/goaccess.SlackBuild')
-rw-r--r--system/goaccess/goaccess.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/system/goaccess/goaccess.SlackBuild b/system/goaccess/goaccess.SlackBuild
index 58d71e0b9752..2e83305eba82 100644
--- a/system/goaccess/goaccess.SlackBuild
+++ b/system/goaccess/goaccess.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for goaccess
-# Copyright David Woodfall <dave@slackbuilds.org>
+# Copyright Dave Woodfall <dave@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=goaccess
-VERSION=${VERSION:-1.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -54,13 +54,8 @@ else
LIBDIRSUFFIX=""
fi
-if [ -n "$GEOIP" ]; then
- geoip="--enable-geoip=$GEOIP"
-fi
-
-if [ -n "$TCB" ]; then
- tcb="--enable-tcb=$TCB"
-fi
+geoip="--enable-geoip=${GEOIP:-no}"
+tcb="--enable-tcb=${TCB:-no}"
set -e
@@ -103,10 +98,12 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
-mv $PKG/etc/goaccess.conf $PKG/etc/goaccess.conf.new
+install -D -m644 config/goaccess.conf $PKG/etc/goaccess.conf.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install