wok-next view squirrelmail-multilogin/receipt @ rev 20068
Up libcanberra (gtk2 and gtk3 support), vala (0.36.4), dconf (0.26.0), gucharmap3 (10.0.0), pycairo (1.15.3), pygobject3 (3.26.0), libgtop. Add dconf-editor, gtksourceview3.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 24 17:49:57 2017 +0300 (2017-10-24) |
parents | d51b2411e55e |
children | c4e53a39395a |
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"
14 HOST_ARCH="any"
16 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $DESTDIR
22 cp -a $src $DESTDIR/$SOURCE
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \
29 $fs/var/lib/squirrelmail/slitaz.org/data
30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
31 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
32 $fs/etc/squirrelmail/config-$SOURCE.php
33 ln -s /etc/squirrelmail/config-$SOURCE.php \
34 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
35 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u
36 }
38 post_install()
39 {
40 chown www "$1/var/lib/squirrelmail/slitaz.org/data"
41 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
42 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
43 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
44 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
45 }
47 pre_remove()
48 {
49 ( cd /usr/share/squirrelmail/plugins/$SOURCE
50 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
51 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
52 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
53 }