wok-6.x annotate squirrelmail-archive/receipt @ rev 13575
linux/list_modules.sh: modules.list has moved...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 05 11:02:15 2012 +0100 (2012-11-05) |
parents | f81e47267992 |
children | b13ed9740841 |
rev | line source |
---|---|
pascal@1221 | 1 # SliTaz package receipt. |
pascal@1221 | 2 |
pascal@1221 | 3 PACKAGE="squirrelmail-archive" |
pascal@1221 | 4 VERSION="1.2-1.4.2" |
pascal@1221 | 5 CATEGORY="network" |
pascal@1221 | 6 SHORT_DESC="Mail archiver plugin for Web mail." |
pascal@1221 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1221 | 8 SOURCE="archive_mail" |
pascal@1221 | 9 TARBALL="$SOURCE.$VERSION.tar.gz" |
pascal@1221 | 10 WEB_SITE="http://www.squirrelmail.org/" |
pascal@1221 | 11 DEPENDS="squirrelmail" |
pascal@1221 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@1221 | 13 |
pascal@9036 | 14 # Rules to configure and make the package. |
pascal@9036 | 15 compile_rules() |
pascal@9036 | 16 { |
pascal@9037 | 17 mkdir -p $DESTDIR |
pascal@9036 | 18 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 19 } |
pascal@9036 | 20 |
pascal@1221 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1221 | 22 genpkg_rules() |
pascal@1221 | 23 { |
pascal@1221 | 24 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@9036 | 25 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1221 | 26 } |
pascal@1221 | 27 |
pascal@1221 | 28 post_install() |
pascal@1221 | 29 { |
pascal@1222 | 30 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@1221 | 31 } |
pascal@2245 | 32 |
pascal@2260 | 33 pre_remove() |
pascal@2245 | 34 { |
pascal@2245 | 35 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 36 } |