wok-next view squirrelmail-html/receipt @ rev 16012
syslinux/iso2exe: access both local and isofs namespaces
| author | Pascal Bellard <pascal.bellard@slitaz.org> | 
|---|---|
| date | Tue Mar 04 21:00:29 2014 +0000 (2014-03-04) | 
| parents | 91a615759636 | 
| children | d51b2411e55e | 
 line source
     1 # SliTaz package receipt.
     3 PACKAGE="squirrelmail-html"
     4 VERSION="3.7a-1.4.x"
     5 CATEGORY="network"
     6 SHORT_DESC="HTML viewer plugin for Web mail."
     7 MAINTAINER="pascal.bellard@slitaz.org"
     8 LICENSE="GPL2"
     9 SOURCE="view_as_html"
    10 TARBALL="$SOURCE-$VERSION.tar.gz"
    11 WEB_SITE="http://www.squirrelmail.org/"
    12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
    14 DEPENDS="squirrelmail"
    16 # Rules to configure and make the package.
    17 compile_rules()
    18 {
    19 	mkdir -p $DESTDIR
    20 	cp -a $src $DESTDIR/$SOURCE
    21 }
    23 # Rules to gen a SliTaz package suitable for Tazpkg.
    24 genpkg_rules()
    25 {
    26 	mkdir -p $fs/usr/share/squirrelmail/plugins
    27 	cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    28 	chown -R 80 $fs/usr/share/squirrelmail
    29 }
    31 post_install()
    32 {
    33 	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
    34 }
    36 pre_remove()
    37 {
    38 	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    39 }