summaryrefslogtreecommitdiffstats
path: root/system/percona-toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'system/percona-toolkit')
-rw-r--r--system/percona-toolkit/README10
-rw-r--r--system/percona-toolkit/percona-toolkit.SlackBuild22
-rw-r--r--system/percona-toolkit/percona-toolkit.info8
3 files changed, 25 insertions, 15 deletions
diff --git a/system/percona-toolkit/README b/system/percona-toolkit/README
index a547b595d5..f24fb2c504 100644
--- a/system/percona-toolkit/README
+++ b/system/percona-toolkit/README
@@ -1,6 +1,6 @@
-Percona Toolkit is a collection of advanced command-line tools used by Percona
-support staff to perform a variety of MySQL and system tasks that are too
-difficult or complex to perform manually, including:
+Percona Toolkit is a collection of advanced command-line tools used by
+Percona support staff to perform a variety of MySQL and system tasks
+that are too difficult or complex to perform manually, including:
- Verify master and replica data consistency
- Efficiently archive rows
@@ -9,5 +9,5 @@ difficult or complex to perform manually, including:
- Analyze queries from logs and tcpdump
- Collect vital system information when problems occur
-Percona Toolkit is derived from Maatkit and Aspersa, two of the best-known
-utility toolkits for MySQL server administration.
+Percona Toolkit is derived from Maatkit and Aspersa, two of the
+best-known utility toolkits for MySQL server administration.
diff --git a/system/percona-toolkit/percona-toolkit.SlackBuild b/system/percona-toolkit/percona-toolkit.SlackBuild
index b0f8727539..e322fc83a3 100644
--- a/system/percona-toolkit/percona-toolkit.SlackBuild
+++ b/system/percona-toolkit/percona-toolkit.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for percona-toolkit
-# Copyright 2012-2014 Heinz Wiesinger, Amsterdam, The Netherlands
+# Copyright 2012-2022 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +22,24 @@
# 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=percona-toolkit
-VERSION=${VERSION:-2.2.12}
+VERSION=${VERSION:-3.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH="noarch"
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -62,7 +72,7 @@ find $PKG -depth -type d -empty -exec rm -rf {} \;
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a Changelog COPYING INSTALL MANIFEST README \
+cp -a Changelog CONTRIBUTE.md CONTRIBUTING.md COPYING INSTALL MANIFEST README.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -70,4 +80,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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/percona-toolkit/percona-toolkit.info b/system/percona-toolkit/percona-toolkit.info
index b2fc579c66..df825a14b0 100644
--- a/system/percona-toolkit/percona-toolkit.info
+++ b/system/percona-toolkit/percona-toolkit.info
@@ -1,10 +1,10 @@
PRGNAM="percona-toolkit"
-VERSION="2.2.12"
+VERSION="3.3.1"
HOMEPAGE="http://www.percona.com/software/percona-toolkit/"
-DOWNLOAD="http://www.percona.com/downloads/percona-toolkit/2.2.12/tarball/percona-toolkit-2.2.12.tar.gz"
-MD5SUM="7c39b06b97ebab97ae5d3c78d1186258"
+DOWNLOAD="https://downloads.percona.com/downloads/percona-toolkit/3.3.1/source/tarball/percona-toolkit-3.3.1.tar.gz"
+MD5SUM="c32521e6a43671db41cb0a9685876831"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Heinz Wiesinger"
-EMAIL="pprkut@liwjatan.at"
+EMAIL="pprkut@slackbuilds.org"