wok rev 1214

squirrelmail-vkeyboard: declare config file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 18:13:40 2008 +0000 (2008-08-09)
parents b4764dbfcef8
children 8450e8bc287a
files squirrelmail-vkeyboard/receipt
line diff
     1.1 --- a/squirrelmail-vkeyboard/receipt	Sat Aug 09 17:55:16 2008 +0000
     1.2 +++ b/squirrelmail-vkeyboard/receipt	Sat Aug 09 18:13:40 2008 +0000
     1.3 @@ -10,6 +10,7 @@
     1.4  WEB_SITE="http://www.squirrelmail.org/"
     1.5  DEPENDS="squirrelmail"
     1.6  WGET_URL="${WEB_SITE}plugins/$TARBALL"
     1.7 +CONFIG_FILES="/etc/squirrelmail/config-vkeyboard.php"
     1.8  
     1.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.10  genpkg_rules()
    1.11 @@ -17,10 +18,21 @@
    1.12  	mkdir -p $fs/usr/share/squirrelmail/plugins
    1.13  	cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
    1.14  	mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
    1.15 +		$fs/etc/squirrelmail/config-vkeyboard.php
    1.16 +	ln -s /etc/squirrelmail/config-vkeyboard.php \
    1.17  		$fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    1.18  }
    1.19  
    1.20  post_install()
    1.21  {
    1.22 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    1.23 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.24 +etc/squirrelmail/config-vkeyboard.php
    1.25 +EOT
    1.26  	echo "\$plugins[] = '$SOURCE';" >> $fs/etc/squirrelmail/config.php
    1.27  }
    1.28 +
    1.29 +repack_cleanup()
    1.30 +{
    1.31 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.32 +}