wok-next view phppgadmin/receipt @ rev 1219
squirrelmail-vkeyboard: fix config path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 10 07:49:10 2008 +0000 (2008-08-10) |
parents | dd2aa8326cbc |
children | 6bfa3b761dd2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="phppgadmin"
4 VERSION="4.2"
5 CATEGORY="misc"
6 SHORT_DESC="Administration of postgresql over the Web."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="phpPgAdmin"
9 TARBALL="$SOURCE-$VERSION.tar.bz2"
10 WEB_SITE="http://$PACKAGE.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="php-pgsql"
13 CONFIG_FILES="/etc/phppgadmin/config.inc.php"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 echo "$src compiled..."
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/share/phppgadmin $fs/etc
25 cp -a $src/. $fs/usr/share/phppgadmin
26 mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin
27 ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf
28 sed -i -e "s/conf\['extra_login_security'\] = true/conf['extra_login_security'] = false/" $fs/etc/phppgadmin/config.inc.php
29 chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin
30 chmod 700 $fs/etc/phppgadmin
31 chmod 600 $fs/etc/phppgadmin/*
32 }
34 post_install()
35 {
36 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
37 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
38 etc/phppgadmin/config.inc.php
39 EOT
40 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
41 if ! grep -q /usr/share/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then
42 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
43 if [ -z "$1" ]; then
44 # Start Web server.
45 /etc/init.d/lighttpd stop
46 /etc/init.d/lighttpd start
47 fi
48 fi
49 fi
50 }
52 repack_cleanup()
53 {
54 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
55 }