wok view phppgadmin/receipt @ rev 1166

postfix: fix depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 30 12:09:40 2008 +0000 (2008-07-30)
parents 443dbfefc6bf
children 534023d6e005
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 echo "$src compiled..."
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/share/phppgadmin $fs/etc
24 cp -a $src/. $fs/usr/share/phppgadmin
25 mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin
26 ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf
27 sed -i -e "s/conf\['extra_login_security'\] = true/conf['extra_login_security'] = false/" $fs/etc/phppgadmin/config.inc.php
28 chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin
29 chmod 700 $fs/etc/phppgadmin
30 chmod 600 $fs/etc/phppgadmin/*
31 }
33 post_install()
34 {
35 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
36 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
37 etc/phppgadmin/config.inc.php
38 EOT
39 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
40 if ! grep -q /usr/share/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then
41 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|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 }