wok view phppgadmin/receipt @ rev 1296

Up: pidgin (2.5.0)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Aug 21 15:41:04 2008 +0200 (2008-08-21)
parents 534023d6e005
children 2b4792182cf0
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 $fs/usr/share/applications
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 cp stuff/phppgadmin.desktop $fs/usr/share/applications
30 chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin
31 chmod 700 $fs/etc/phppgadmin
32 chmod 600 $fs/etc/phppgadmin/*
33 }
35 post_install()
36 {
37 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
38 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
39 etc/phppgadmin/config.inc.php
40 EOT
41 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
42 if ! grep -q /usr/share/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then
43 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|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 }