aboutsummaryrefslogtreecommitdiff
path: root/system/ssdeep
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-09-05 02:35:15 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-07 09:08:50 +0700
commita6b16d8c966471be81364d86f886e0aff879d6dd (patch)
treeab8974f5c6b3f4c05e7c9c754a68c2616ba62d95 /system/ssdeep
parent9c81726d502e7b0c362852bf0e74763e9a8ef692 (diff)
system/ssdeep: Updated for version 2.14.1, new maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ssdeep')
-rw-r--r--system/ssdeep/README6
-rw-r--r--system/ssdeep/slack-desc4
-rw-r--r--system/ssdeep/ssdeep.SlackBuild42
-rw-r--r--system/ssdeep/ssdeep.info10
4 files changed, 32 insertions, 30 deletions
diff --git a/system/ssdeep/README b/system/ssdeep/README
index c24077537bbe7..c5ad5f5f44967 100644
--- a/system/ssdeep/README
+++ b/system/ssdeep/README
@@ -1,5 +1,7 @@
+ssdeep (program for computing context triggered piecewise hashes)
+
ssdeep computes a checksum based on context triggered piecewise
-hashes (fuzzy hashes) for each input file. If requested, the program
+hashes (fuzzy hashes) for each input file. If requested, the program
matches those checksums against a file of known checksums and reports
-any possible matches. It can also examine one or more of signatures
+any possible matches. It can also examine one or more of signatures
and find any matches in those signatures.
diff --git a/system/ssdeep/slack-desc b/system/ssdeep/slack-desc
index afd7bf72d63d2..64b197459bcd1 100644
--- a/system/ssdeep/slack-desc
+++ b/system/ssdeep/slack-desc
@@ -9,9 +9,9 @@
ssdeep: ssdeep (program for computing context triggered piecewise hashes)
ssdeep:
ssdeep: ssdeep computes a checksum based on context triggered piecewise
-ssdeep: hashes (fuzzy hashes) for each input file. If requested, the program
+ssdeep: hashes (fuzzy hashes) for each input file. If requested, the program
ssdeep: matches those checksums against a file of known checksums and reports
-ssdeep: any possible matches. It can also examine one or more of signatures
+ssdeep: any possible matches. It can also examine one or more of signatures
ssdeep: and find any matches in those signatures.
ssdeep:
ssdeep: Homepage: http://ssdeep.sourceforge.net/
diff --git a/system/ssdeep/ssdeep.SlackBuild b/system/ssdeep/ssdeep.SlackBuild
index c2506ee18497a..087467262e62f 100644
--- a/system/ssdeep/ssdeep.SlackBuild
+++ b/system/ssdeep/ssdeep.SlackBuild
@@ -1,13 +1,21 @@
#!/bin/bash
# Slackware build script for ssdeep
-# Written by Oleg O. Chukaev <oleg.chukaev@mail.ru>
+# Written by Oleg O. Chukaev
+# Modified and now maintained by B. Watson <urchlay@slackware.uk>
+
+# Original version of this script had no license; modified version
+# licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20240905 bkw:
+# - new maintainer.
+# - update for v2.14.1.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ssdeep
-VERSION=${VERSION:-2.10}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.14.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -19,9 +27,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -54,11 +59,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -66,21 +68,19 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
+ --disable-static \
+ --enable-shared \
--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
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog FILEFORMAT INSTALL NEWS README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
rm -f $PKG/usr/lib*/*.la
+gzip -9 $PKG/usr/man/man*/*
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a AUTHORS COPYING ChangeLog FILEFORMAT NEWS README TODO $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/system/ssdeep/ssdeep.info b/system/ssdeep/ssdeep.info
index f47a3bffc1786..4179b04da337d 100644
--- a/system/ssdeep/ssdeep.info
+++ b/system/ssdeep/ssdeep.info
@@ -1,10 +1,10 @@
PRGNAM="ssdeep"
-VERSION="2.10"
+VERSION="2.14.1"
HOMEPAGE="http://ssdeep.sourceforge.net/"
-DOWNLOAD="http://download.sourceforge.net/ssdeep/ssdeep-2.10.tar.gz"
-MD5SUM="8f65e2c555b61b9209c0854fc7f2731b"
+DOWNLOAD="https://github.com/ssdeep-project/ssdeep/releases/download/release-2.14.1/ssdeep-2.14.1.tar.gz"
+MD5SUM="ed4f374e20ffec72e679f56c32218581"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Oleg O. Chukaev"
-EMAIL="oleg.chukaev@mail.ru"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"