summaryrefslogtreecommitdiffstats
path: root/system/testdisk
diff options
context:
space:
mode:
Diffstat (limited to 'system/testdisk')
-rw-r--r--system/testdisk/README5
-rw-r--r--system/testdisk/doinst.sh2
-rw-r--r--system/testdisk/slack-desc2
-rw-r--r--system/testdisk/testdisk.SlackBuild39
-rw-r--r--system/testdisk/testdisk.info10
5 files changed, 32 insertions, 26 deletions
diff --git a/system/testdisk/README b/system/testdisk/README
index 0e15d7fff8..ac04e7f21d 100644
--- a/system/testdisk/README
+++ b/system/testdisk/README
@@ -6,9 +6,10 @@ accidentally deleting a Partition Table). Partition table recovery
using TestDisk is really easy.
PhotoRec is file data recovery software designed to recover lost files
-including video, documents and archives from Hard Disks and CDRom and
+including video, documents and archives from Hard Disks and CD-ROM and
lost pictures from digital camera memory.
-If you want to enable the use of sudo run the script with SUDO=true
+To enable the use of sudo, run the script with SUDO=true, i.e.:
+SUDO=true ./testdisk.SlackBuild
libewf is an optional dependency.
diff --git a/system/testdisk/doinst.sh b/system/testdisk/doinst.sh
index d8b0d0d87b..65c7e2eeb9 100644
--- a/system/testdisk/doinst.sh
+++ b/system/testdisk/doinst.sh
@@ -1,4 +1,3 @@
-
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
@@ -8,4 +7,3 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
-
diff --git a/system/testdisk/slack-desc b/system/testdisk/slack-desc
index c460e28ee4..2311e8f137 100644
--- a/system/testdisk/slack-desc
+++ b/system/testdisk/slack-desc
@@ -15,5 +15,5 @@ testdisk: error (such as accidentally deleting a Partition Table).
testdisk:
testdisk: PhotoRec is file data recovery software designed to recover lost
testdisk: files including video, documents and archives from Hard Disks and
-testdisk: CDRom and lost pictures from digital camera memory.
+testdisk: CD-ROM and lost pictures from digital camera memory.
testdisk:
diff --git a/system/testdisk/testdisk.SlackBuild b/system/testdisk/testdisk.SlackBuild
index 222fd76c0b..b7a3a4f2f6 100644
--- a/system/testdisk/testdisk.SlackBuild
+++ b/system/testdisk/testdisk.SlackBuild
@@ -1,10 +1,12 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for testdisk
# Originally Written by Michales Michaloudes korgie@gmail.com
# Copyright 2011 Grigorios Bouzakis <grbzks@imap.cc>
-# Copyright 2014-2015 Aaditya Bagga <aaditya_gnulinux@zoho.com>
+# Copyright 2014-2024 Aaditya <aaditya_gnulinux@zoho.com>
+# All rights reserved.
+# Copyright 2024 Bloyburt
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -22,26 +24,33 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=testdisk
-VERSION=${VERSION:-7.0}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-7.2}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -54,8 +63,6 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="COPYING INFO"
-
set -e
rm -rf $PKG
@@ -66,12 +73,12 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
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 {} \;
+ \( -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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-[ "$SUDO" = "true" ] && ENABLE_SUDO="--enable-sudo"
+[ "${SUDO:-false}" != "false" ] && ENABLE_SUDO="--enable-sudo"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -101,4 +108,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/testdisk/testdisk.info b/system/testdisk/testdisk.info
index 04b09727be..11de6544a5 100644
--- a/system/testdisk/testdisk.info
+++ b/system/testdisk/testdisk.info
@@ -1,10 +1,10 @@
PRGNAM="testdisk"
-VERSION="7.0"
+VERSION="7.2"
HOMEPAGE="https://www.cgsecurity.org"
-DOWNLOAD="https://www.cgsecurity.org/testdisk-7.0.tar.bz2"
-MD5SUM="f0cfe4ca9dd35f2878b2704251665e9f"
+DOWNLOAD="https://www.cgsecurity.org/testdisk-7.2.tar.bz2"
+MD5SUM="c6809b6fd06b5022467c8faa32d49a27"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Aaditya Bagga"
-EMAIL="aaditya_gnulinux@zoho.com"
+MAINTAINER="Bloyburt"
+EMAIL="alexpen@startmail.com"