summaryrefslogtreecommitdiff
path: root/system/u3-tool
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-22 17:26:06 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:34 +0700
commite2ce4356c0549308da1c5903fe0f2c113d07e271 (patch)
tree8cb44e33b4ac96c25dea7574ea75392f51d3bf2f /system/u3-tool
parentf51dbcd5c14e580516fc4c0663da91c154b139aa (diff)
downloadslackbuilds-e2ce4356c0549308da1c5903fe0f2c113d07e271.tar.gz
system/u3-tool: Updated for version 1.0.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/u3-tool')
-rw-r--r--system/u3-tool/README16
-rw-r--r--system/u3-tool/slack-desc10
-rw-r--r--system/u3-tool/u3-tool.SlackBuild27
-rw-r--r--system/u3-tool/u3-tool.info8
4 files changed, 32 insertions, 29 deletions
diff --git a/system/u3-tool/README b/system/u3-tool/README
index a93a75dc7d..97ca32fe15 100644
--- a/system/u3-tool/README
+++ b/system/u3-tool/README
@@ -3,13 +3,13 @@ u3-tool (utility for U3 flash drives, including SanDisk and Verbatim)
Tool for controlling USB flash devices that confirm to the U3
specifications. This program can control the following features:
-Replacing of CD image
-Changing of virtual CD allocated size and completely removing it
-Enabling and disabling Security
-Unlocking and changing password of secured U3 device
-Obtaining various device information
+- Replacing the virtual CD image
+- Changing the virtual CD's allocated size, or completely removing it
+- Enabling and disabling device security (password protection).
+- Unlocking and changing the password password of secured U3 device
+- Obtaining various device information
-In general all U3 USB flash devices should be supported. A list of devices
-that are reported to work with this tool is available in the forum:
+In general all U3 USB flash devices should be supported. A list of
+devices that are reported to work with this tool is available here:
-http://sourceforge.net/projects/u3-tool/forums/forum/746414/topic/3559573
+https://sourceforge.net/projects/u3-tool/forums/forum/746414/topic/3559573
diff --git a/system/u3-tool/slack-desc b/system/u3-tool/slack-desc
index 32e8ff90a2..f590b7acb5 100644
--- a/system/u3-tool/slack-desc
+++ b/system/u3-tool/slack-desc
@@ -11,9 +11,9 @@ u3-tool:
u3-tool: Tool for controlling USB flash devices that confirm to the U3
u3-tool: specifications. This program can control the following features:
u3-tool:
-u3-tool: Replacing of CD image
-u3-tool: Changing of virtual CD allocated size and completely removing it
-u3-tool: Enabling and disabling Security
-u3-tool: Unlocking and changing password of secured U3 device
-u3-tool: Obtaining various device information
+u3-tool: - Replacing the virtual CD image
+u3-tool: - Changing the virtual CD's allocated size, or completely removing it
+u3-tool: - Enabling and disabling device security (password protection).
+u3-tool: - Unlocking and changing the password password of secured U3 device
+u3-tool: - Obtaining various device information
u3-tool:
diff --git a/system/u3-tool/u3-tool.SlackBuild b/system/u3-tool/u3-tool.SlackBuild
index 32cb8ecfcc..8d40090971 100644
--- a/system/u3-tool/u3-tool.SlackBuild
+++ b/system/u3-tool/u3-tool.SlackBuild
@@ -6,10 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210822 bkw:
+# - new upstream, which released a 1.0 in 2012. old, but not as old as
+# the 0.3 version from 2009.
+# - include commands.txt in the doc dir.
+# - fix grammar issues with README and slack-desc.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=u3-tool
-VERSION=${VERSION:-0.3}
+VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +28,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
@@ -53,15 +56,14 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$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 640 -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 {} \+
+
+autoreconf -ivf
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -80,6 +82,7 @@ gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS TODO README $PKG/usr/doc/$PRGNAM-$VERSION
+cat doc/commands.txt > $PKG/usr/doc/$PRGNAM-$VERSION/commands.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/u3-tool/u3-tool.info b/system/u3-tool/u3-tool.info
index 6905e8ff6f..8294295bbd 100644
--- a/system/u3-tool/u3-tool.info
+++ b/system/u3-tool/u3-tool.info
@@ -1,8 +1,8 @@
PRGNAM="u3-tool"
-VERSION="0.3"
-HOMEPAGE="http://u3-tool.sourceforge.net/"
-DOWNLOAD="http://downloads.sourceforge.net/project/u3-tool/u3-tool/0.3/u3-tool-0.3.tar.gz"
-MD5SUM="4c7268614b30ba118f6dea6c85137f43"
+VERSION="1.0"
+HOMEPAGE="https://github.com/marcusrugger/u3-tool/"
+DOWNLOAD="https://github.com/marcusrugger/u3-tool/archive/u3-tool-1.0/u3-tool-u3-tool-1.0.tar.gz"
+MD5SUM="f17d9917a2a6edf7c5988746c72549f4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""