wok-stable view phpldapadmin/receipt @ rev 1277
Add: libexif (images info manipulation)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Aug 18 14:14:53 2008 +0200 (2008-08-18) |
parents | 534023d6e005 |
children | 2b4792182cf0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="phpldapadmin"
4 VERSION="1.1.0.5"
5 CATEGORY="misc"
6 SHORT_DESC="Administration of LDAP over the Web."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://$PACKAGE.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 DEPENDS="php-ldap"
12 CONFIG_FILES="/etc/phpldapadmin/config.php"
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/phpldapadmin $fs/etc $fs/usr/share/applications
24 cp -a $src/. $fs/usr/share/phpldapadmin
25 mv $fs/usr/share/phpldapadmin/config $fs/etc/phpldapadmin
26 ln -s /etc/phpldapadmin $fs/usr/share/phpldapadmin/config
27 mv $fs/etc/phpldapadmin/config.php.example $fs/etc/phpldapadmin/config.php
28 cp stuff/phpldapadmin.desktop $fs/usr/share/applications
29 chown -R www.www $fs/usr/share/phpldapadmin $fs/etc/phpldapadmin
30 chmod 700 $fs/etc/phpldapadmin
31 chmod 600 $fs/etc/phpldapadmin/config.php
32 }
34 post_install()
35 {
36 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
37 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
38 etc/phpldapadmin/config.php
39 EOT
40 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
41 if ! grep -q /usr/share/phpldapadmin/ $1/etc/lighttpd/lighttpd.conf; then
42 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpldapadmin/" => "/usr/share/phpldapadmin/",|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 }