wok-next rev 1144
Add phpmyadmin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 25 08:40:14 2008 +0000 (2008-07-25) |
parents | a6ba323029ac |
children | db9c8dc3f489 |
files | phpmyadmin/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/phpmyadmin/receipt Fri Jul 25 08:40:14 2008 +0000 1.3 @@ -0,0 +1,46 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="phpmyadmin" 1.7 +VERSION="2.11.7.1" 1.8 +CATEGORY="misc" 1.9 +SHORT_DESC="Administration of MySQL over the Web." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +PHPMYADM="phpMyAdmin-$VERSION-all-languages" 1.12 +TARBALL="$PHPMYADM.tar.bz2" 1.13 +WEB_SITE="http://www.$PACKAGE.net/" 1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 +DEPENDS="php-mysql" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + ln -s $PHPMYADM $src 1.21 + cd $src 1.22 +} 1.23 + 1.24 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.25 +genpkg_rules() 1.26 +{ 1.27 + mkdir -p $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin 1.28 + cp -a $src/. $fs/usr/share/phpmyadmin 1.29 + ln -s /etc/phpmyadmin $fs/usr/share/phpmyadmin/config 1.30 + cp $src/config.sample.inc.php $fs/etc/phpmyadmin/config.inc.php 1.31 + chown -R www.www $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin 1.32 + chmod 700 $fs/etc/phpmyadmin 1.33 + chmod 600 $fs/etc/phpmyadmin/config.inc.php 1.34 +} 1.35 + 1.36 +post_install() 1.37 +{ 1.38 + if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.39 + if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then 1.40 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.41 + if [ -z "$1" ]; then 1.42 + # Start Web server. 1.43 + /etc/init.d/lighttpd stop 1.44 + /etc/init.d/lighttpd start 1.45 + fi 1.46 + fi 1.47 + fi 1.48 +} 1.49 +