wok-6.x rev 1224
squirrelmail-multilogin: add imap.slitaz.org
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 10 09:59:02 2008 +0000 (2008-08-10) |
parents | c932ccf0e453 |
children | d431cc086b87 |
files | squirrelmail-multilogin/receipt squirrelmail-multilogin/stuff/config-multilogin.u squirrelmail/receipt |
line diff
1.1 --- a/squirrelmail-multilogin/receipt Sun Aug 10 09:23:04 2008 +0000 1.2 +++ b/squirrelmail-multilogin/receipt Sun Aug 10 09:59:02 2008 +0000 1.3 @@ -15,12 +15,14 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail 1.8 + mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \ 1.9 + $fs/var/lib/squirrelmail/slitaz.org/data 1.10 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins 1.11 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \ 1.12 $fs/etc/squirrelmail/config-multilogin.php 1.13 ln -s /etc/squirrelmail/config-multilogin.php \ 1.14 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php 1.15 + ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-multilogin.u 1.16 } 1.17 1.18 post_install() 1.19 @@ -29,6 +31,10 @@ 1.20 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.21 etc/squirrelmail/config-multilogin.php 1.22 EOT 1.23 + chown www $1/var/lib/squirrelmail/slitaz.org/data 1.24 + ( cd $1/usr/share/squirrelmail/plugins/multilogin 1.25 + patch -p0 < patches/multilogin-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) 1.26 + echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers 1.27 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php 1.28 } 1.29
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/squirrelmail-multilogin/stuff/config-multilogin.u Sun Aug 10 09:59:02 2008 +0000 2.3 @@ -0,0 +1,21 @@ 2.4 +--- config-multilogin.php 2.5 ++++ config-multilogin.php 2.6 +@@ -30,2 +30,18 @@ 2.7 + 2.8 ++ 'www.slitaz.org' => array( 2.9 ++ 'imapServerAddress' => 'imap.slitaz.org', 2.10 ++ 'imapPort' => '143', 2.11 ++ 'smtpServerAddress' => 'smtp.slitaz.org', 2.12 ++ 'smtpPort' => '25', 2.13 ++ 'smtp_auth_mech' => 'login', 2.14 ++ 'org_title' => '$_SESSION["username"]', 2.15 ++ 'data_dir' => '/var/lib/squirrelmail/slitaz.org/data', 2.16 ++ 'settingsWithEmbeddedPHP' => array( 'org_title' ), 2.17 ++ 'provider_name' => 'slitaz.org', 2.18 ++ 'provider_uri' => 'http://www.slitaz.org/', 2.19 ++ 'domain' => 'slitaz.org', 2.20 ++ 'imap_auth_mech' => 'login', 2.21 ++ 'default_left_size' => '180', 2.22 ++ ), 2.23 ++ 2.24 + 'My Other Server' => array(
3.1 --- a/squirrelmail/receipt Sun Aug 10 09:23:04 2008 +0000 3.2 +++ b/squirrelmail/receipt Sun Aug 10 09:59:02 2008 +0000 3.3 @@ -8,6 +8,7 @@ 3.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 3.5 WEB_SITE="http://www.squirrelmail.org/" 3.6 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 3.7 +DEPENDS="php" 3.8 CONFIG_FILES="/etc/squirrelmail/config.php /etc/squirrelmail/config_local.php" 3.9 3.10 # Rules to gen a SliTaz package suitable for Tazpkg. 3.11 @@ -16,6 +17,8 @@ 3.12 mkdir -p $fs/usr/share/squirrelmail $fs/var/lib/squirrelmail/data \ 3.13 $fs/var/lib/squirrelmail/attach $fs/etc 3.14 cp -a $src/. $fs/usr/share/squirrelmail 3.15 + sed -i "s/'custom_css', 'none'/'custom_css', 'serif-12.css'/" \ 3.16 + $fs/usr/share/squirrelmail/include/load_prefs.php 3.17 mv $fs/usr/share/squirrelmail/config $fs/etc/squirrelmail 3.18 ln -s /etc/squirrelmail $fs/usr/share/squirrelmail/config 3.19 mv $fs/etc/squirrelmail/config_default.* $fs/etc/squirrelmail/config.php 3.20 @@ -49,6 +52,8 @@ 3.21 etc/squirrelmail/config.php 3.22 etc/squirrelmail/config_local.php 3.23 EOT 3.24 + #echo "Update /short_open_tag in /etc/php.ini" 3.25 + #sed -i 's/^short_open_tag.*/short_open_tag = On/' /etc/php.ini 3.26 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 3.27 if ! grep -q /usr/share/squirrelmail/ $1/etc/lighttpd/lighttpd.conf; then 3.28 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/squirrelmail/" => "/usr/share/squirrelmail/",|g' -i $1/etc/lighttpd/lighttpd.conf