# HG changeset patch # User Eric Joseph-Alexandre # Date 1255529505 0 # Node ID 7b34f56aed9b9b3a513737abc990d010a654e19d # Parent 9bd65835e8d1f4ed28d84029b7df7663dcab28e0 Up: phpmyadmin(3.2.2.1) diff -r 9bd65835e8d1 -r 7b34f56aed9b phpmyadmin/receipt --- a/phpmyadmin/receipt Wed Oct 14 14:11:07 2009 +0000 +++ b/phpmyadmin/receipt Wed Oct 14 14:11:45 2009 +0000 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="phpmyadmin" -VERSION="2.11.9.5" +VERSION="3.2.2.1" CATEGORY="misc" SHORT_DESC="Administration of MySQL over the Web." MAINTAINER="pascal.bellard@slitaz.org" @@ -9,6 +9,7 @@ TARBALL="$PHPMYADM.tar.bz2" WEB_SITE="http://www.$PACKAGE.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +SUGGESTED="php-mcrypt" DEPENDS="php-mysql" CONFIG_FILES="/etc/phpmyadmin/config.inc.php" @@ -23,13 +24,26 @@ { mkdir -p $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin $fs/usr/share/applications cp -a $src/. $fs/usr/share/phpmyadmin - ln -s /etc/phpmyadmin $fs/usr/share/phpmyadmin/config + ln -s /etc/phpmyadmin/config.inc.php $fs/usr/share/phpmyadmin/config.inc.php cp $src/config.sample.inc.php $fs/etc/phpmyadmin/config.inc.php rm -f $fs/usr/share/phpmyadmin/phpMyAdmin-$VERSION-all-languages cp stuff/phpmyadmin.desktop $fs/usr/share/applications chown -R www.www $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin chmod 700 $fs/etc/phpmyadmin - chmod 600 $fs/etc/phpmyadmin/config.inc.php + chmod 644 $fs/etc/phpmyadmin/config.inc.php + + sed -i s'/\?>//' $fs/etc/phpmyadmin/config.inc.php + + cat <<"EOT">> $fs/etc/phpmyadmin/config.inc.php + +$cfg['McryptDisableWarning'] = true; +// For public use you may comment the following lines +// to enforce the security. +$cfg['Servers'][$i]['AllowNoPassword'] = true; +$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true; +$cfg['Servers'][$i]['AllowRoot'] = true; +?> +EOT } post_install()