wok-current annotate squirrelmail-multilogin/receipt @ rev 24407
updated clamav and clamav-dev again (0.102.3 -> 0.104.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 09 14:12:35 2022 +0100 (2022-02-09) |
parents | fcb7b0646656 |
children | cb67b4f8be05 |
rev | line source |
---|---|
pascal@1220 | 1 # SliTaz package receipt. |
pascal@1220 | 2 |
pascal@1220 | 3 PACKAGE="squirrelmail-multilogin" |
Hans-G?nter@23667 | 4 VERSION="2.4.2-1.2.9" |
pascal@1220 | 5 CATEGORY="network" |
pascal@1220 | 6 SHORT_DESC="Server chooser plugin for Web mail." |
pascal@1220 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
Hans-G?nter@23667 | 9 WEB_SITE="http://www.squirrelmail.org/" |
Hans-G?nter@23667 | 10 |
pascal@1220 | 11 SOURCE="multilogin" |
pascal@1220 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1220 | 13 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@1220 | 14 |
pascal@15200 | 15 DEPENDS="squirrelmail squirrelmail-compatibility-plugin" |
pascal@15200 | 16 |
Hans-G?nter@23667 | 17 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" |
Hans-G?nter@23667 | 18 |
Hans-G?nter@23667 | 19 HOST_ARCH="any" |
Hans-G?nter@23667 | 20 |
pascal@24094 | 21 current_version() |
pascal@24094 | 22 { |
pascal@24094 | 23 wget -O - "$WEB_SITE/plugin_view.php?id=148" 2>/dev/null | \ |
pascal@24094 | 24 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q" |
pascal@24094 | 25 } |
pascal@24094 | 26 |
pascal@9036 | 27 # Rules to configure and make the package. |
pascal@9036 | 28 compile_rules() |
pascal@9036 | 29 { |
pascal@9037 | 30 mkdir -p $DESTDIR |
Hans-G?nter@23667 | 31 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 32 } |
pascal@9036 | 33 |
pascal@1220 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1220 | 35 genpkg_rules() |
pascal@1220 | 36 { |
Hans-G?nter@23667 | 37 mkdir -p $fs/usr/share/squirrelmail/plugins |
Hans-G?nter@23667 | 38 mkdir -p $fs/etc/squirrelmail |
Hans-G?nter@23667 | 39 mkdir -p $fs/var/lib/squirrelmail/slitaz.org/data |
Hans-G?nter@23667 | 40 |
Hans-G?nter@23667 | 41 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
Hans-G?nter@23667 | 42 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_example.php \ |
Hans-G?nter@23667 | 43 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2260 | 44 ln -s /etc/squirrelmail/config-$SOURCE.php \ |
pascal@1220 | 45 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@2260 | 46 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u |
pascal@1220 | 47 } |
pascal@1220 | 48 |
pascal@1220 | 49 post_install() |
pascal@1220 | 50 { |
pascal@18730 | 51 chown www "$1/var/lib/squirrelmail/slitaz.org/data" |
pascal@18730 | 52 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE" |
pascal@18730 | 53 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff ) |
pascal@18730 | 54 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers" |
pascal@18730 | 55 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php" |
pascal@1220 | 56 } |
pascal@2245 | 57 |
pascal@2260 | 58 pre_remove() |
pascal@2245 | 59 { |
pascal@2260 | 60 ( cd /usr/share/squirrelmail/plugins/$SOURCE |
pascal@2260 | 61 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2260 | 62 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers |
pascal@2245 | 63 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 64 } |