#Maintainer: Pedro Pinto (pnboy~AT~pinguix.com) pkgname=phpmyadmin pkgver=3.2.5 pkgrel=1 zenver=64 arch=noarch source=(http://ovh.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-$pkgver-all-languages.tar.bz2) sourcetemplate=http://pnboy.pinguix.com/my_packages/zenwalk/$pkgname/$pkgver/ docs=(CREDITS ChangeLog Documentation.html Documentation.txt INSTALL LICENSE README RELEASE-DATE* TODO) url=http://www.phpmyadmin.net/home_page/index.php extradepends=(apache2 bzip2 curl cxxlibs cyrus-sasl e2fsprogs expat freetype gcc gdbm gmp krb5 libgcrypt libgpg-error libidn libjpeg libmcrypt libpng libpostgresql libtool libxml2 libxslt mysql ncurses openldap-client openssl perl php zlib) options=('norequiredbuilder') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (adminstration of MySQL over the web)" "phpMyAdmin is intended to handle the adminstration of MySQL over the" "web. Currently it can : create and drop databases, create, copy, drop" "and alter tables, delete, edit and add fields, execute any" "SQL-statement, even batch-queries, manage keys on fields, load text" "files into tables, create and read dumps of tables, export data to" "CSV value, administer multiple servers and single databases." ) doinst(){ docroot="$(grep -E '^[[:space:]]*DocumentRoot' etc/apache/httpd.conf | sed -r 's@^[[:space:]]*DocumentRoot[[:space:]]*\"/?(.*)\"@\1@g')" if ! [ -a phpmyadmin ]; then ln -s /usr/share/phpmyadmin $docroot fi } build() { # Relocate mkdir -p $startdir/pkg/usr/share/$pkgname cp -r $startdir/src/phpMyAdmin-$pkgver-all-languages/* $startdir/pkg/usr/share/$pkgname sed -i -e "s|'config';|'http';|g" $startdir/pkg/usr/share/$pkgname/libraries/config.default.php }