wok-stable view phpmyadmin/receipt @ rev 1145

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