mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
system/percona-toolkit: Added (CLI MySQL helper utilities)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
ad76b106b4
commit
2f5de6ed66
4 changed files with 113 additions and 0 deletions
15
system/percona-toolkit/README
Normal file
15
system/percona-toolkit/README
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
- Find duplicate indexes
|
||||
- Summarize MySQL servers
|
||||
- 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.
|
||||
|
||||
This requires perl-TermReadKey.
|
69
system/percona-toolkit/percona-toolkit.SlackBuild
Normal file
69
system/percona-toolkit/percona-toolkit.SlackBuild
Normal file
|
@ -0,0 +1,69 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for percona-toolkit
|
||||
|
||||
# Copyright 2012 Heinz Wiesinger, Amsterdam, The Netherlands
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=percona-toolkit
|
||||
VERSION=2.1.1
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
ARCH="noarch"
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
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
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
#Move man-pages to appropriate place
|
||||
mv $PKG/usr/share/man $PKG/usr/
|
||||
|
||||
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
|
||||
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 \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
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}
|
10
system/percona-toolkit/percona-toolkit.info
Normal file
10
system/percona-toolkit/percona-toolkit.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="percona-toolkit"
|
||||
VERSION="2.1.1"
|
||||
HOMEPAGE="http://www.percona.com/software/percona-toolkit/"
|
||||
DOWNLOAD="http://www.percona.com/downloads/percona-toolkit/2.1.1/percona-toolkit-2.1.1.tar.gz"
|
||||
MD5SUM="14be6a3e31c7b20aeca78e3e0aed6edc"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Heinz Wiesinger"
|
||||
EMAIL="pprkut@liwjatan.at"
|
||||
APPROVED="dsomero"
|
19
system/percona-toolkit/slack-desc
Normal file
19
system/percona-toolkit/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
percona-toolkit: percona-toolkit (CLI MySQL helper utilities)
|
||||
percona-toolkit:
|
||||
percona-toolkit: Percona Toolkit is a collection of advanced command-line tools used
|
||||
percona-toolkit: by Percona support staff to perform a variety of MySQL and system
|
||||
percona-toolkit: tasks that are too difficult or complex to perform manually.
|
||||
percona-toolkit:
|
||||
percona-toolkit: Percona Toolkit is derived from Maatkit and Aspersa, two of the best-
|
||||
percona-toolkit: known utility toolkits for MySQL server administration.
|
||||
percona-toolkit:
|
||||
percona-toolkit: Homepage: http://www.percona.com/software/percona-toolkit/
|
||||
percona-toolkit:
|
Loading…
Reference in a new issue