1 # Maintainer: Christian Hesse <mail@eworm.de>
6 pkgdesc="MySQLTuner - review configuration quickly and make adjustments to increase performance and stability - git checkout"
8 url="http://www.mysqltuner.com"
13 conflicts=(mysqltuner)
15 _gitroot="git://github.com/rackerhacker/MySQLTuner-perl.git"
20 msg "Connecting to GIT server...."
22 if [ -d ${_gitname} ] ; then
23 cd ${_gitname} && git pull origin
24 msg "The local files are updated."
26 git clone ${_gitroot} ${_gitname}
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "${srcdir}/${_gitname}-build"
33 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
34 cd "${srcdir}/${_gitname}-build"
36 install -D -m755 mysqltuner.pl ${pkgdir}/usr/sbin/mysqltuner
37 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/mysqltuner/LICENSE
38 install -D -m644 README ${pkgdir}/usr/share/doc/mysqltuner/README