wok view phpldapadmin/receipt @ rev 1210

Add cyrus-imapd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 14:25:01 2008 +0000 (2008-08-09)
parents
children 534023d6e005
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"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 echo "$src compiled..."
17 }
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/share/phpldapadmin $fs/etc
23 cp -a $src/. $fs/usr/share/phpldapadmin
24 mv $fs/usr/share/phpldapadmin/config $fs/etc/phpldapadmin
25 ln -s /etc/phpldapadmin $fs/usr/share/phpldapadmin/config
26 mv $fs/etc/phpldapadmin/config.php.example $fs/etc/phpldapadmin/config.php
27 chown -R www.www $fs/usr/share/phpldapadmin $fs/etc/phpldapadmin
28 chmod 700 $fs/etc/phpldapadmin
29 chmod 600 $fs/etc/phpldapadmin/config.php
30 }
32 post_install()
33 {
34 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
35 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
36 etc/phpldapadmin/config.php
37 EOT
38 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
39 if ! grep -q /usr/share/phpldapadmin/ $1/etc/lighttpd/lighttpd.conf; then
40 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpldapadmin/" => "/usr/share/phpldapadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
41 if [ -z "$1" ]; then
42 # Start Web server.
43 /etc/init.d/lighttpd stop
44 /etc/init.d/lighttpd start
45 fi
46 fi
47 fi
48 }
50 repack_cleanup()
51 {
52 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
53 }