wok-6.x view phppgadmin/receipt @ rev 1149

Add postgresql
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 26 14:23:50 2008 +0000 (2008-07-26)
parents
children dd2aa8326cbc
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 chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin
28 chmod 700 $fs/etc/phppgadmin
29 chmod 600 $fs/etc/phppgadmin/*
30 }
32 post_install()
33 {
34 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
35 if ! grep -q /usr/share/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then
36 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
37 if [ -z "$1" ]; then
38 # Start Web server.
39 /etc/init.d/lighttpd stop
40 /etc/init.d/lighttpd start
41 fi
42 fi
43 fi
44 }