wok-next view squirrelmail-multilogin/receipt @ rev 21527
updated bootchart (0.9 -> 1.20)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 19 15:06:45 2020 +0100 (2020-06-19) |
parents | c4e53a39395a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-multilogin"
4 VERSION="2.4-1.2.9"
5 CATEGORY="network"
6 SHORT_DESC="Server chooser plugin for Web mail"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="multilogin"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
17 compile_rules() {
18 mkdir -p $install
19 cp -a $src $install/$SOURCE
20 }
22 genpkg_rules() {
23 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
24 $fs/var/lib/squirrelmail/slitaz.org/data
25 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
26 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
27 $fs/etc/squirrelmail/config-$SOURCE.php
28 ln -s /etc/squirrelmail/config-$SOURCE.php \
29 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
30 ( cd $fs/etc/squirrelmail; patch -p0 ) < $stuff/config-$SOURCE.u
31 }
33 post_install() {
34 chown www "$1/var/lib/squirrelmail/slitaz.org/data"
35 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
36 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
37 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
38 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
39 }
41 pre_remove() {
42 ( cd /usr/share/squirrelmail/plugins/$SOURCE
43 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
44 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
45 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
46 }