system/maatkit: Added (CLI database helper tools)

This commit is contained in:
Heinz Wiesinger 2011-07-04 09:31:32 -03:00 committed by Niels Horn
parent 389b97623a
commit 47466a3396
4 changed files with 112 additions and 0 deletions

10
system/maatkit/README Normal file
View file

@ -0,0 +1,10 @@
Maatkit is a set of high-quality command-line tools for open-
source databases, such as MySQL and PostgreSQL. The tools
enable power users to do their work more safely and quickly by
relying on tested software instead of scripting things
themselves. The toolkit includes functionality such as table
checksums, a query profiler, and a visual EXPLAIN tool. It
also provides missing features such as checking whether slaves
have the same data as the master.
This requires perl-TermReadKey.

View file

@ -0,0 +1,73 @@
#!/bin/sh
# Slackware build script for maatkit
# Copyright 2011 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=maatkit
VERSION=7540
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" \
-o -name maatkit.pod \
| 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}

View file

@ -0,0 +1,10 @@
PRGNAM="maatkit"
VERSION="7540"
HOMEPAGE="http://www.maatkit.org/"
DOWNLOAD="http://maatkit.googlecode.com/files/maatkit-7540.tar.gz"
MD5SUM="55457f98500b096a6bf549356d3445fe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Heinz Wiesinger"
EMAIL="pprkut@liwjatan.at"
APPROVED="Niels Horn"

19
system/maatkit/slack-desc Normal file
View 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------------------------------------------------------|
maatkit: maatkit (CLI database helper tools)
maatkit:
maatkit: Maatkit is a set of high-quality command-line tools for open-source
maatkit: databases, such as MySQL and PostgreSQL. The tools enable power users
maatkit: to do their work more safely and quickly by relying on tested software
maatkit: instead of scripting things themselves. The toolkit includes
maatkit: functionality such as table checksums, a query profiler, and a visual
maatkit: EXPLAIN tool. It also provides missing features such as checking
maatkit: whether slaves have the same data as the master.
maatkit:
maatkit: Homepage: http://www.maatkit.org/