wok annotate squirrelmail-multilogin/receipt @ rev 15036
Up wesnoth-music (1.10.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 12 12:29:55 2013 +0000 (2013-08-12) |
parents | f81e47267992 |
children | b13ed9740841 |
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" |
pascal@1220 | 6 SHORT_DESC="Server chooser plugin for Web mail." |
pascal@1220 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1220 | 8 SOURCE="multilogin" |
pascal@1220 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1220 | 10 WEB_SITE="http://www.squirrelmail.org/" |
pascal@1220 | 11 DEPENDS="squirrelmail squirrelmail-compatibility-plugin" |
pascal@1220 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@2260 | 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" |
pascal@1220 | 14 |
pascal@9036 | 15 # Rules to configure and make the package. |
pascal@9036 | 16 compile_rules() |
pascal@9036 | 17 { |
pascal@9037 | 18 mkdir -p $DESTDIR |
pascal@9036 | 19 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 20 } |
pascal@9036 | 21 |
pascal@1220 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1220 | 23 genpkg_rules() |
pascal@1220 | 24 { |
pascal@1224 | 25 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \ |
pascal@1224 | 26 $fs/var/lib/squirrelmail/slitaz.org/data |
pascal@9036 | 27 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1220 | 28 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \ |
pascal@2260 | 29 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2260 | 30 ln -s /etc/squirrelmail/config-$SOURCE.php \ |
pascal@1220 | 31 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@2260 | 32 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u |
pascal@1220 | 33 } |
pascal@1220 | 34 |
pascal@1220 | 35 post_install() |
pascal@1220 | 36 { |
pascal@1224 | 37 chown www $1/var/lib/squirrelmail/slitaz.org/data |
pascal@2260 | 38 ( cd $1/usr/share/squirrelmail/plugins/$SOURCE |
pascal@2260 | 39 patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@1224 | 40 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers |
pascal@1222 | 41 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@1220 | 42 } |
pascal@2245 | 43 |
pascal@2260 | 44 pre_remove() |
pascal@2245 | 45 { |
pascal@2260 | 46 ( cd /usr/share/squirrelmail/plugins/$SOURCE |
pascal@2260 | 47 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2260 | 48 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers |
pascal@2245 | 49 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 50 } |