wok-6.x diff squirrelmail-multilogin/receipt @ rev 1575

Up tazusb (1.2.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 15 15:06:40 2008 +0000 (2008-10-15)
parents b649ec903494
children bd6010223726
line diff
     1.1 --- a/squirrelmail-multilogin/receipt	Sun Aug 10 08:15:15 2008 +0000
     1.2 +++ b/squirrelmail-multilogin/receipt	Wed Oct 15 15:06:40 2008 +0000
     1.3 @@ -15,12 +15,14 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
     1.8 +	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
     1.9 +		 $fs/var/lib/squirrelmail/slitaz.org/data
    1.10  	cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
    1.11  	mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
    1.12  		$fs/etc/squirrelmail/config-multilogin.php
    1.13  	ln -s /etc/squirrelmail/config-multilogin.php \
    1.14  		$fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    1.15 +	( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-multilogin.u
    1.16  }
    1.17  
    1.18  post_install()
    1.19 @@ -29,6 +31,10 @@
    1.20  		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.21  etc/squirrelmail/config-multilogin.php
    1.22  EOT
    1.23 +	chown www $1/var/lib/squirrelmail/slitaz.org/data
    1.24 +	( cd $1/usr/share/squirrelmail/plugins/multilogin
    1.25 +	  patch -p0 < patches/multilogin-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
    1.26 +	echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
    1.27  	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
    1.28  }
    1.29