wok view squirrelmail-en_GB/receipt @ rev 17552

Update some post_install for install --root
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 30 10:17:37 2015 +0100 (2015-01-30)
parents d51b2411e55e
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-en_GB"
4 VERSION="1.4.13-20071220"
5 CATEGORY="network"
6 SHORT_DESC="Locale en_GB for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WANTED="squirrelmail-locales"
10 WEB_SITE="http://www.squirrelmail.org/"
11 HOST_ARCH="any"
13 DEPENDS="squirrelmail"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/squirrelmail/locale
19 cp -a $src/locale/${PACKAGE#squirrelmail-} \
20 $fs/usr/share/squirrelmail/locale
21 }
23 # Pre and post install commands for Tazpkg.
24 post_install()
25 {
26 sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
27 }