wok-next annotate squirrelmail-sizes/receipt @ rev 15330
gnome-doc-utils-dev: update genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 28 11:01:47 2013 +0000 (2013-09-28) |
parents | 91a615759636 |
children | d51b2411e55e |
rev | line source |
---|---|
pascal@1226 | 1 # SliTaz package receipt. |
pascal@1226 | 2 |
pascal@1226 | 3 PACKAGE="squirrelmail-sizes" |
pascal@1226 | 4 VERSION="1.5-1.4.0" |
pascal@1226 | 5 CATEGORY="network" |
pascal@1226 | 6 SHORT_DESC="Folder sizes plugin for Web mail." |
pascal@1226 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@1226 | 9 SOURCE="folder_sizes" |
pascal@1226 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1226 | 11 WEB_SITE="http://www.squirrelmail.org/" |
pascal@15200 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15200 | 13 |
pascal@1226 | 14 DEPENDS="squirrelmail" |
pascal@1226 | 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@1226 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1226 | 24 genpkg_rules() |
pascal@1226 | 25 { |
pascal@1226 | 26 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1226 | 28 } |
pascal@1226 | 29 |
pascal@1226 | 30 post_install() |
pascal@1226 | 31 { |
pascal@1226 | 32 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@1226 | 33 } |
pascal@2245 | 34 |
pascal@2260 | 35 pre_remove() |
pascal@2245 | 36 { |
pascal@2245 | 37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 38 } |