aboutsummaryrefslogtreecommitdiff
path: root/libraries/log4shib/log4shib.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/log4shib/log4shib.SlackBuild')
-rw-r--r--libraries/log4shib/log4shib.SlackBuild25
1 files changed, 11 insertions, 14 deletions
diff --git a/libraries/log4shib/log4shib.SlackBuild b/libraries/log4shib/log4shib.SlackBuild
index 14c7459f5f..125cb94e3c 100644
--- a/libraries/log4shib/log4shib.SlackBuild
+++ b/libraries/log4shib/log4shib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for log4shib
-# Copyright 2012-2015 Thibaut Notteboom, Paris, FRANCE
+# Copyright 2012-2025 Thibaut Notteboom, Paris, FRANCE
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,19 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 20220301 bkw: Modified by SlackBuilds.org, BUILD=3:
-# - add --disable-dot to the configure command. dot is part of
-# our graphviz build, and wouldn't be installed on a clean install
-# of Slackware. if it's installed on the build host, it causes the
-# build to consume lots of time and resources, and possibly fail
-# on lower-spec machines (e.g. ones with 8GB of RAM).
-# - remove useless INSTALL from doc dir.
-
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=log4shib
-VERSION=${VERSION:-2.0.0}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-2.0.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -64,6 +56,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -96,7 +91,11 @@ CXXFLAGS="$SLKCFLAGS -std=c++14" \
make
make install-strip DESTDIR=$PKG
-gzip -9 $PKG/usr/man/man*/*
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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/usr/share/doc $PKG/usr/doc
rmdir $PKG/usr/share 2>/dev/null || true
@@ -105,8 +104,6 @@ cp -a \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -f $PKG/usr/lib*/*.la
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc