wok-current view squirrelmail-bookmarks/receipt @ rev 11829
mysql: improve initscript
| author | Eric Joseph-Alexandre <erjo@slitaz.org> | 
|---|---|
| date | Mon Feb 27 01:19:40 2012 +0100 (2012-02-27) | 
| parents | f81e47267992 | 
| children | b13ed9740841 | 
 line source
     1 # SliTaz package receipt.
     3 PACKAGE="squirrelmail-bookmarks"
     4 VERSION="2.0.3-1.4.1"
     5 CATEGORY="network"
     6 SHORT_DESC="Store and manage favorites lists within the Squirrelmail interface."
     7 MAINTAINER="pascal.bellard@slitaz.org"
     8 SOURCE="bookmarks"
     9 TARBALL="$SOURCE-$VERSION.tar.gz"
    10 WEB_SITE="http://www.squirrelmail.org/"
    11 DEPENDS="squirrelmail"
    12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
    13 CONFIG_FILES="/etc/squirrelmail/bookmarks_data.php"
    15 # Rules to configure and make the package.
    16 compile_rules()
    17 {
    18 	mkdir -p $DESTDIR
    19 	cp -a $src $DESTDIR/$SOURCE
    20 }
    22 # Rules to gen a SliTaz package suitable for Tazpkg.
    23 genpkg_rules()
    24 {
    25 	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
    26 	cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
    27 	rm -f $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
    28 	ln -s /usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data_text.php \
    29 		$fs/etc/squirrelmail/bookmarks_data.php
    30 	ln -s /etc/squirrelmail/bookmarks_data.php \
    31 		$fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
    32 }
    34 post_install()
    35 {
    36 	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
    37 }
    39 pre_remove()
    40 {
    41 	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    42 }