aboutsummaryrefslogtreecommitdiff
path: root/system/secure-delete
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-07-30 08:28:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-30 10:26:05 +0700
commitb7e0ef77e8cabb78400d70767818745f923da5a5 (patch)
treeb16749c687bb1a6ab1fd039a60871941c7249216 /system/secure-delete
parent5d7c4301d211c320883ce438053feb8f97e0ed48 (diff)
system/secure-delete: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/secure-delete')
-rw-r--r--system/secure-delete/secure-delete.SlackBuild25
-rw-r--r--system/secure-delete/secure-delete.info6
-rw-r--r--system/secure-delete/slack-desc2
3 files changed, 16 insertions, 17 deletions
diff --git a/system/secure-delete/secure-delete.SlackBuild b/system/secure-delete/secure-delete.SlackBuild
index bcaca870f26e..538c63015670 100644
--- a/system/secure-delete/secure-delete.SlackBuild
+++ b/system/secure-delete/secure-delete.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for secure-delete.
#
-# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,12 +24,12 @@
PRGNAM=secure-delete
VERSION=${VERSION:-3.1}
-BUILD=${BUILD:-5}
+BUILD=${BUILD:-6}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ 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,16 +54,17 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+SRCNAM=${SRCNAM:-secure-delete}
+SRCVER=${SRCVER:-3.1.orig}
-SRCNAM="secure_delete"
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-mv $SRCNAM-$VERSION $PRGNAM-$VERSION
+tar xvf $CWD/${SRCNAM}_${SRCVER}.tar.gz
+mv $SRCNAM-$SRCVER $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -83,7 +84,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man1
-cp -a sfill.1 smem.1 srm.1 sswap.1 $PKG/usr/man/man1
+cp sfill.1 smem.1 srm.1 sswap.1 $PKG/usr/man/man1
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
@@ -91,10 +92,8 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/bin
cp -a sfill smem srm sswap $PKG/usr/bin
-DOCS="CHANGES README secure_delete.doc TODO usenix6-gutmann.doc"
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp CHANGES README secure_delete.doc TODO usenix6-gutmann.doc $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/secure-delete/secure-delete.info b/system/secure-delete/secure-delete.info
index 958f8ccd5512..2bcd92575db8 100644
--- a/system/secure-delete/secure-delete.info
+++ b/system/secure-delete/secure-delete.info
@@ -1,8 +1,8 @@
PRGNAM="secure-delete"
VERSION="3.1"
-HOMEPAGE="https://www.thc.org/releases.php?q=delete/"
-DOWNLOAD="https://www.thc.org/releases/secure_delete-3.1.tar.gz"
-MD5SUM="aabbd7e77bf96b326d260f16fb7f8bba"
+HOMEPAGE="https://packages.debian.org/search?keywords=secure-delete/"
+DOWNLOAD="https://snapshot.debian.org/archive/debian/20170729T033133Z/pool/main/s/secure-delete/secure-delete_3.1.orig.tar.gz"
+MD5SUM="1a9d31a049f9ee916c994cb613a2754e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/system/secure-delete/slack-desc b/system/secure-delete/slack-desc
index 67a5452d55a3..4b8772474ee2 100644
--- a/system/secure-delete/slack-desc
+++ b/system/secure-delete/slack-desc
@@ -10,7 +10,7 @@ secure-delete: secure-delete (wipe files, free disk space, swap and memory)
secure-delete:
secure-delete: Gutmann method based tools for securely wiping data.
secure-delete:
-secure-delete: Home page: https://www.thc.org/releases.php?q=delete/
+secure-delete: Home page: https://packages.debian.org/search?keywords=secure-delete/
secure-delete:
secure-delete:
secure-delete: