wok view phpmyadmin/receipt @ rev 1212

Add missing CONFIG_FILES=
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 17:50:04 2008 +0000 (2008-08-09)
parents dd2aa8326cbc
children 6bfa3b761dd2
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"
13 CONFIG_FILES="/etc/phpmyadmin/config.inc.php"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 [ -L $src ] || ln -s $PHPMYADM $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 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
36 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
37 etc/phpmyadmin/config.inc.php
38 EOT
39 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
40 if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then
41 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
42 if [ -z "$1" ]; then
43 # Start Web server.
44 /etc/init.d/lighttpd stop
45 /etc/init.d/lighttpd start
46 fi
47 fi
48 fi
49 }
51 repack_cleanup()
52 {
53 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
54 }