wok-6.x view phpmyadmin/receipt @ rev 7136

Fixed ndiswrapper-driver (again).
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Nov 05 18:48:43 2010 +0000 (2010-11-05)
parents 7b34f56aed9b
children feb95a7126ea
line source
1 # SliTaz package receipt.
3 PACKAGE="phpmyadmin"
4 VERSION="3.3.8"
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 SUGGESTED="php-mcrypt"
13 DEPENDS="php-mysql"
14 CONFIG_FILES="/etc/phpmyadmin/config.inc.php"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 [ -L $src ] || ln -s $PHPMYADM $src
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin $fs/usr/share/applications
26 cp -a $src/. $fs/usr/share/phpmyadmin
27 ln -s /etc/phpmyadmin/config.inc.php $fs/usr/share/phpmyadmin/config.inc.php
28 cp $src/config.sample.inc.php $fs/etc/phpmyadmin/config.inc.php
29 rm -f $fs/usr/share/phpmyadmin/phpMyAdmin-$VERSION-all-languages
30 cp stuff/phpmyadmin.desktop $fs/usr/share/applications
31 chown -R www.www $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin
32 chmod 700 $fs/etc/phpmyadmin
33 chmod 644 $fs/etc/phpmyadmin/config.inc.php
35 sed -i s'/\?>//' $fs/etc/phpmyadmin/config.inc.php
37 cat <<"EOT">> $fs/etc/phpmyadmin/config.inc.php
39 $cfg['McryptDisableWarning'] = true;
40 // For public use you may comment the following lines
41 // to enforce the security.
42 $cfg['Servers'][$i]['AllowNoPassword'] = true;
43 $cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
44 $cfg['Servers'][$i]['AllowRoot'] = true;
45 ?>
46 EOT
47 }
49 post_install()
50 {
51 # Configure lighttpd server
52 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
53 if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then
54 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
55 if [ -z "$1" ]; then
56 # Start Web server.
57 /etc/init.d/lighttpd stop
58 /etc/init.d/lighttpd start
59 fi
60 fi
61 fi
62 # Configure apache server
63 if [ -f $1/etc/apache/httpd.conf ]; then
64 if [ ! -f $1/etc/apache/conf.d/phpmyadmin ]; then
65 cat > $1/etc/apache/conf.d/phpmyadmin <<EOT
66 <IfModule mod_alias.c>
67 Alias /phpmyadmin /usr/share/phpmyadmin
68 </IfModule>
69 <DirectoryMatch /usr/share/phpmyadmin/>
70 DirectoryIndex index.php
71 Options +FollowSymLinks
72 AllowOverride None
73 Order allow,deny
74 Allow from all
75 </DirectoryMatch>
76 EOT
77 if [ -z "$1" ]; then
78 # Start Web server.
79 /etc/init.d/apache stop
80 /etc/init.d/apache start
81 fi
82 fi
83 fi
84 }