wok-current annotate squirrelmail-html/receipt @ rev 15459
Up: elementary-dev (1.7.9)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:58:23 2013 +0100 (2013-11-05) |
parents | 91a615759636 |
children | d51b2411e55e |
rev | line source |
---|---|
pascal@1225 | 1 # SliTaz package receipt. |
pascal@1225 | 2 |
pascal@1225 | 3 PACKAGE="squirrelmail-html" |
pascal@1225 | 4 VERSION="3.7a-1.4.x" |
pascal@1225 | 5 CATEGORY="network" |
pascal@1225 | 6 SHORT_DESC="HTML viewer plugin for Web mail." |
pascal@1225 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@1225 | 9 SOURCE="view_as_html" |
pascal@1225 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1225 | 11 WEB_SITE="http://www.squirrelmail.org/" |
pascal@15200 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15200 | 13 |
pascal@1225 | 14 DEPENDS="squirrelmail" |
pascal@1225 | 15 |
pascal@9036 | 16 # Rules to configure and make the package. |
pascal@9036 | 17 compile_rules() |
pascal@9036 | 18 { |
pascal@9037 | 19 mkdir -p $DESTDIR |
pascal@9036 | 20 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 21 } |
pascal@9036 | 22 |
pascal@1225 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1225 | 24 genpkg_rules() |
pascal@1225 | 25 { |
pascal@1225 | 26 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@3259 | 28 chown -R 80 $fs/usr/share/squirrelmail |
pascal@1225 | 29 } |
pascal@1225 | 30 |
pascal@1225 | 31 post_install() |
pascal@1225 | 32 { |
pascal@1225 | 33 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@1225 | 34 } |
pascal@2245 | 35 |
pascal@2260 | 36 pre_remove() |
pascal@2245 | 37 { |
pascal@2245 | 38 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 39 } |