summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2011-07-04 09:31:32 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-04 09:31:32 -0300
commit47466a339626a0246bc1570f608a60011ba1075a (patch)
tree27fa4d07716ab64b0a569ce7e2a775200aa3a7f9
parent389b97623af77572a0de8f02c8f9ec894f624c75 (diff)
downloadslackbuilds-47466a339626a0246bc1570f608a60011ba1075a.tar.gz
system/maatkit: Added (CLI database helper tools)
-rw-r--r--system/maatkit/README10
-rw-r--r--system/maatkit/maatkit.SlackBuild73
-rw-r--r--system/maatkit/maatkit.info10
-rw-r--r--system/maatkit/slack-desc19
4 files changed, 112 insertions, 0 deletions
diff --git a/system/maatkit/README b/system/maatkit/README
new file mode 100644
index 0000000000..03f1a9c0fe
--- /dev/null
+++ b/system/maatkit/README
@@ -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.
diff --git a/system/maatkit/maatkit.SlackBuild b/system/maatkit/maatkit.SlackBuild
new file mode 100644
index 0000000000..45e14b6ac3
--- /dev/null
+++ b/system/maatkit/maatkit.SlackBuild
@@ -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}
diff --git a/system/maatkit/maatkit.info b/system/maatkit/maatkit.info
new file mode 100644
index 0000000000..3eba2476a2
--- /dev/null
+++ b/system/maatkit/maatkit.info
@@ -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"
diff --git a/system/maatkit/slack-desc b/system/maatkit/slack-desc
new file mode 100644
index 0000000000..328824f75a
--- /dev/null
+++ b/system/maatkit/slack-desc
@@ -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/