wok-6.x view squirrelmail-multilogin/receipt @ rev 24323
updated aria2 (1.35.0 -> 1.36.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 09:00:40 2022 +0100 (2022-01-27) |
parents | fcb7b0646656 |
children | cb67b4f8be05 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-multilogin"
4 VERSION="2.4.2-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 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="multilogin"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
17 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
19 HOST_ARCH="any"
21 current_version()
22 {
23 wget -O - "$WEB_SITE/plugin_view.php?id=148" 2>/dev/null | \
24 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir -p $DESTDIR
31 cp -a $src $DESTDIR/$SOURCE
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/squirrelmail/plugins
38 mkdir -p $fs/etc/squirrelmail
39 mkdir -p $fs/var/lib/squirrelmail/slitaz.org/data
41 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
42 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_example.php \
43 $fs/etc/squirrelmail/config-$SOURCE.php
44 ln -s /etc/squirrelmail/config-$SOURCE.php \
45 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
46 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
47 }
49 post_install()
50 {
51 chown www "$1/var/lib/squirrelmail/slitaz.org/data"
52 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
53 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
54 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
55 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
56 }
58 pre_remove()
59 {
60 ( cd /usr/share/squirrelmail/plugins/$SOURCE
61 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
62 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
63 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
64 }