aboutsummaryrefslogtreecommitdiff
path: root/system/sleuthkit/sleuthkit.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-23 16:40:57 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-25 22:58:03 +0700
commitf84a4648ae0374a36d30fd67856719fe4feb313b (patch)
tree4d64bfacd1e3e830077bb770afe32105dcbb499a /system/sleuthkit/sleuthkit.SlackBuild
parentb65d4ceaa532337617c46776d576fa15b0f1ddf0 (diff)
system/sleuthkit: Disable Java support by default.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/sleuthkit/sleuthkit.SlackBuild')
-rw-r--r--system/sleuthkit/sleuthkit.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/system/sleuthkit/sleuthkit.SlackBuild b/system/sleuthkit/sleuthkit.SlackBuild
index d75c35a09167..259f309367eb 100644
--- a/system/sleuthkit/sleuthkit.SlackBuild
+++ b/system/sleuthkit/sleuthkit.SlackBuild
@@ -86,6 +86,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+JAVAOPT="--disable-java"
+[ "${JAVA:-no}" = "yes" ] && JAVAOPT="--enable-java"
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -95,13 +98,12 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
+ $JAVAOPT \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
-
-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
+gzip -9 $PKG/usr/man/man*/*
# "docs" directory now contains a simple pointer to the wiki.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION