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