wok-current view phpmyadmin/receipt @ rev 1310

openldap: add openssl dependancy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 26 20:19:16 2008 +0000 (2008-08-26)
parents 534023d6e005
children 32fa0b9984a6
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 $fs/usr/share/applications
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 rm -f $fs/usr/share/phpmyadmin/phpMyAdmin-$VERSION-all-languages
29 cp stuff/phpmyadmin.desktop $fs/usr/share/applications
30 chown -R www.www $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin
31 chmod 700 $fs/etc/phpmyadmin
32 chmod 600 $fs/etc/phpmyadmin/config.inc.php
33 }
35 post_install()
36 {
37 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
38 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
39 etc/phpmyadmin/config.inc.php
40 EOT
41 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
42 if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then
43 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
44 if [ -z "$1" ]; then
45 # Start Web server.
46 /etc/init.d/lighttpd stop
47 /etc/init.d/lighttpd start
48 fi
49 fi
50 fi
51 }
53 repack_cleanup()
54 {
55 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
56 }