wok-next annotate 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 |
rev | line source |
---|---|
pascal@1149 | 1 # SliTaz package receipt. |
pascal@1149 | 2 |
pascal@1149 | 3 PACKAGE="phppgadmin" |
pascal@1149 | 4 VERSION="4.2" |
pascal@1149 | 5 CATEGORY="misc" |
pascal@1149 | 6 SHORT_DESC="Administration of postgresql over the Web." |
pascal@1149 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1149 | 8 SOURCE="phpPgAdmin" |
pascal@1149 | 9 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@1149 | 10 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@1149 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@1149 | 12 DEPENDS="php-pgsql" |
pascal@1149 | 13 |
pascal@1149 | 14 # Rules to configure and make the package. |
pascal@1149 | 15 compile_rules() |
pascal@1149 | 16 { |
pascal@1149 | 17 echo "$src compiled..." |
pascal@1149 | 18 } |
pascal@1149 | 19 |
pascal@1149 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1149 | 21 genpkg_rules() |
pascal@1149 | 22 { |
pascal@1149 | 23 mkdir -p $fs/usr/share/phppgadmin $fs/etc |
pascal@1149 | 24 cp -a $src/. $fs/usr/share/phppgadmin |
pascal@1149 | 25 mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin |
pascal@1149 | 26 ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf |
pascal@1149 | 27 chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin |
pascal@1149 | 28 chmod 700 $fs/etc/phppgadmin |
pascal@1149 | 29 chmod 600 $fs/etc/phppgadmin/* |
pascal@1149 | 30 } |
pascal@1149 | 31 |
pascal@1149 | 32 post_install() |
pascal@1149 | 33 { |
pascal@1149 | 34 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then |
pascal@1149 | 35 if ! grep -q /usr/share/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then |
pascal@1149 | 36 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf |
pascal@1149 | 37 if [ -z "$1" ]; then |
pascal@1149 | 38 # Start Web server. |
pascal@1149 | 39 /etc/init.d/lighttpd stop |
pascal@1149 | 40 /etc/init.d/lighttpd start |
pascal@1149 | 41 fi |
pascal@1149 | 42 fi |
pascal@1149 | 43 fi |
pascal@1149 | 44 } |
pascal@1149 | 45 |