wok annotate squirrelmail-multilogin/receipt @ rev 1900
emacs: typo fix in receipt
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sat Dec 20 18:45:42 2008 +0100 (2008-12-20) |
parents | b649ec903494 |
children | bd6010223726 |
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@1220 | 13 CONFIG_FILES="/etc/squirrelmail/config-multilogin.php" |
pascal@1220 | 14 |
pascal@1220 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1220 | 16 genpkg_rules() |
pascal@1220 | 17 { |
pascal@1224 | 18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \ |
pascal@1224 | 19 $fs/var/lib/squirrelmail/slitaz.org/data |
pascal@1220 | 20 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1220 | 21 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \ |
pascal@1220 | 22 $fs/etc/squirrelmail/config-multilogin.php |
pascal@1220 | 23 ln -s /etc/squirrelmail/config-multilogin.php \ |
pascal@1220 | 24 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@1224 | 25 ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-multilogin.u |
pascal@1220 | 26 } |
pascal@1220 | 27 |
pascal@1220 | 28 post_install() |
pascal@1220 | 29 { |
pascal@1220 | 30 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ |
pascal@1220 | 31 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT |
pascal@1220 | 32 etc/squirrelmail/config-multilogin.php |
pascal@1220 | 33 EOT |
pascal@1224 | 34 chown www $1/var/lib/squirrelmail/slitaz.org/data |
pascal@1224 | 35 ( cd $1/usr/share/squirrelmail/plugins/multilogin |
pascal@1224 | 36 patch -p0 < patches/multilogin-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@1224 | 37 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers |
pascal@1222 | 38 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@1220 | 39 } |
pascal@1220 | 40 |
pascal@1220 | 41 repack_cleanup() |
pascal@1220 | 42 { |
pascal@1220 | 43 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) |
pascal@1220 | 44 } |