wok-6.x annotate phpmyadmin/receipt @ rev 1146
phpmyadmin: fix recook
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 25 22:27:52 2008 +0000 (2008-07-25) |
parents | db9c8dc3f489 |
children | dd2aa8326cbc |
rev | line source |
---|---|
pascal@1144 | 1 # SliTaz package receipt. |
pascal@1144 | 2 |
pascal@1144 | 3 PACKAGE="phpmyadmin" |
pascal@1144 | 4 VERSION="2.11.7.1" |
pascal@1144 | 5 CATEGORY="misc" |
pascal@1144 | 6 SHORT_DESC="Administration of MySQL over the Web." |
pascal@1145 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1144 | 8 PHPMYADM="phpMyAdmin-$VERSION-all-languages" |
pascal@1144 | 9 TARBALL="$PHPMYADM.tar.bz2" |
pascal@1144 | 10 WEB_SITE="http://www.$PACKAGE.net/" |
pascal@1144 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@1144 | 12 DEPENDS="php-mysql" |
pascal@1144 | 13 |
pascal@1144 | 14 # Rules to configure and make the package. |
pascal@1144 | 15 compile_rules() |
pascal@1144 | 16 { |
pascal@1146 | 17 [ -L $src ] || ln -s $PHPMYADM $src |
pascal@1144 | 18 } |
pascal@1144 | 19 |
pascal@1144 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1144 | 21 genpkg_rules() |
pascal@1144 | 22 { |
pascal@1144 | 23 mkdir -p $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin |
pascal@1144 | 24 cp -a $src/. $fs/usr/share/phpmyadmin |
pascal@1144 | 25 ln -s /etc/phpmyadmin $fs/usr/share/phpmyadmin/config |
pascal@1144 | 26 cp $src/config.sample.inc.php $fs/etc/phpmyadmin/config.inc.php |
pascal@1144 | 27 chown -R www.www $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin |
pascal@1144 | 28 chmod 700 $fs/etc/phpmyadmin |
pascal@1144 | 29 chmod 600 $fs/etc/phpmyadmin/config.inc.php |
pascal@1144 | 30 } |
pascal@1144 | 31 |
pascal@1144 | 32 post_install() |
pascal@1144 | 33 { |
pascal@1144 | 34 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then |
pascal@1144 | 35 if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then |
pascal@1144 | 36 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf |
pascal@1144 | 37 if [ -z "$1" ]; then |
pascal@1144 | 38 # Start Web server. |
pascal@1144 | 39 /etc/init.d/lighttpd stop |
pascal@1144 | 40 /etc/init.d/lighttpd start |
pascal@1144 | 41 fi |
pascal@1144 | 42 fi |
pascal@1144 | 43 fi |
pascal@1144 | 44 } |
pascal@1144 | 45 |