system/sleuthkit: Disable Java support by default.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-23 16:40:57 -05:00 committed by Willy Sudiarto Raharjo
parent b65d4ceaa5
commit f84a4648ae
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 12 additions and 3 deletions

View file

@ -16,3 +16,10 @@ various disk image formats:
Note: If you are building TSK for use with Plaso or the DFVFS, it is Note: If you are building TSK for use with Plaso or the DFVFS, it is
strongly recommended that you build libewf, libvhdi and libvmdk strongly recommended that you build libewf, libvhdi and libvmdk
support into TSK by installing those libraries first. support into TSK by installing those libraries first.
Note: by default, Java support is disabled in this build. If you
require Java support, install a JDK (jdk, openjdk8, etc), source its
profile script, and run sleuthkit.SlackBuild with JAVA=yes in the
environment. Be warned that the Java build process downloads many
files, therefore it requires network access (something SlackBuild
scripts normally don't do).

View file

@ -86,6 +86,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -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 {} \;
JAVAOPT="--disable-java"
[ "${JAVA:-no}" = "yes" ] && JAVAOPT="--enable-java"
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
@ -95,13 +98,12 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--disable-static \ --disable-static \
$JAVAOPT \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
make install-strip DESTDIR=$PKG make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man*/*
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
# "docs" directory now contains a simple pointer to the wiki. # "docs" directory now contains a simple pointer to the wiki.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION