# HG changeset patch # User Pascal Bellard # Date 1218362342 0 # Node ID ce9ca92103e02bfc874e8c026b267e6ba6b3a192 # Parent c932ccf0e4539616d3581d855d5bfe08955dc8b0 squirrelmail-multilogin: add imap.slitaz.org diff -r c932ccf0e453 -r ce9ca92103e0 squirrelmail-multilogin/receipt --- a/squirrelmail-multilogin/receipt Sun Aug 10 09:23:04 2008 +0000 +++ b/squirrelmail-multilogin/receipt Sun Aug 10 09:59:02 2008 +0000 @@ -15,12 +15,14 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail + mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail \ + $fs/var/lib/squirrelmail/slitaz.org/data cp -a $SOURCE $fs/usr/share/squirrelmail/plugins mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \ $fs/etc/squirrelmail/config-multilogin.php ln -s /etc/squirrelmail/config-multilogin.php \ $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php + ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-multilogin.u } post_install() @@ -29,6 +31,10 @@ $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <> $1/$INSTALLED/squirrelmail/modifiers echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } diff -r c932ccf0e453 -r ce9ca92103e0 squirrelmail-multilogin/stuff/config-multilogin.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-multilogin/stuff/config-multilogin.u Sun Aug 10 09:59:02 2008 +0000 @@ -0,0 +1,21 @@ +--- config-multilogin.php ++++ config-multilogin.php +@@ -30,2 +30,18 @@ + ++ 'www.slitaz.org' => array( ++ 'imapServerAddress' => 'imap.slitaz.org', ++ 'imapPort' => '143', ++ 'smtpServerAddress' => 'smtp.slitaz.org', ++ 'smtpPort' => '25', ++ 'smtp_auth_mech' => 'login', ++ 'org_title' => '$_SESSION["username"]', ++ 'data_dir' => '/var/lib/squirrelmail/slitaz.org/data', ++ 'settingsWithEmbeddedPHP' => array( 'org_title' ), ++ 'provider_name' => 'slitaz.org', ++ 'provider_uri' => 'http://www.slitaz.org/', ++ 'domain' => 'slitaz.org', ++ 'imap_auth_mech' => 'login', ++ 'default_left_size' => '180', ++ ), ++ + 'My Other Server' => array( diff -r c932ccf0e453 -r ce9ca92103e0 squirrelmail/receipt --- a/squirrelmail/receipt Sun Aug 10 09:23:04 2008 +0000 +++ b/squirrelmail/receipt Sun Aug 10 09:59:02 2008 +0000 @@ -8,6 +8,7 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.squirrelmail.org/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +DEPENDS="php" CONFIG_FILES="/etc/squirrelmail/config.php /etc/squirrelmail/config_local.php" # Rules to gen a SliTaz package suitable for Tazpkg. @@ -16,6 +17,8 @@ mkdir -p $fs/usr/share/squirrelmail $fs/var/lib/squirrelmail/data \ $fs/var/lib/squirrelmail/attach $fs/etc cp -a $src/. $fs/usr/share/squirrelmail + sed -i "s/'custom_css', 'none'/'custom_css', 'serif-12.css'/" \ + $fs/usr/share/squirrelmail/include/load_prefs.php mv $fs/usr/share/squirrelmail/config $fs/etc/squirrelmail ln -s /etc/squirrelmail $fs/usr/share/squirrelmail/config mv $fs/etc/squirrelmail/config_default.* $fs/etc/squirrelmail/config.php @@ -49,6 +52,8 @@ etc/squirrelmail/config.php etc/squirrelmail/config_local.php EOT + #echo "Update /short_open_tag in /etc/php.ini" + #sed -i 's/^short_open_tag.*/short_open_tag = On/' /etc/php.ini if [ -f $1/etc/lighttpd/lighttpd.conf ]; then if ! grep -q /usr/share/squirrelmail/ $1/etc/lighttpd/lighttpd.conf; then sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/squirrelmail/" => "/usr/share/squirrelmail/",|g' -i $1/etc/lighttpd/lighttpd.conf