Wed, 15 Apr 2009 22:49:00 +0200
Import package vendor original specs for necessary manipulations.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/squirrelmail/config.php Wed Apr 15 22:49:00 2009 +0200 1.3 @@ -0,0 +1,199 @@ 1.4 +<?php 1.5 + 1.6 +/** 1.7 + * SquirrelMail Configuration File 1.8 + * Created using the configure script, conf.pl 1.9 + */ 1.10 + 1.11 +global $version; 1.12 +$config_version = '1.4.0'; 1.13 +$config_use_color = 1; 1.14 + 1.15 +$org_name = "Email"; 1.16 +$org_logo = SM_PATH . 'images/opkg_large.png'; 1.17 +$org_logo_width = '277'; 1.18 +$org_logo_height = '88'; 1.19 +$org_title = "SquirrelMail $version"; 1.20 +$signout_page = ''; 1.21 +$frame_top = '_top'; 1.22 + 1.23 +$provider_uri = 'http://www.openpkg.org/'; 1.24 + 1.25 +$provider_name = 'OpenPKG'; 1.26 + 1.27 +$motd = ""; 1.28 + 1.29 +$squirrelmail_default_language = 'de_DE'; 1.30 +$default_charset = 'iso-8859-1'; 1.31 +$lossy_encoding = false; 1.32 + 1.33 +$domain = '@l_fqdm@'; 1.34 +$imapServerAddress = '@l_fqdm@'; 1.35 +$imapPort = 143; 1.36 +$useSendmail = true; 1.37 +$smtpServerAddress = '@l_fqdm@'; 1.38 +$smtpPort = 25; 1.39 +$sendmail_path = '@l_prefix@/sbin/sendmail'; 1.40 +$pop_before_smtp = false; 1.41 +$imap_server_type = 'cyrus'; 1.42 +$invert_time = false; 1.43 +$optional_delimiter = '.'; 1.44 + 1.45 +$default_folder_prefix = ''; 1.46 +$trash_folder = 'INBOX.Trash'; 1.47 +$sent_folder = 'INBOX.Sent'; 1.48 +$draft_folder = 'INBOX.Drafts'; 1.49 +$default_move_to_trash = true; 1.50 +$default_move_to_sent = true; 1.51 +$default_save_as_draft = true; 1.52 +$show_prefix_option = false; 1.53 +$list_special_folders_first = true; 1.54 +$use_special_folder_color = true; 1.55 +$auto_expunge = true; 1.56 +$default_sub_of_inbox = true; 1.57 +$show_contain_subfolders_option = false; 1.58 +$default_unseen_notify = 2; 1.59 +$default_unseen_type = 1; 1.60 +$auto_create_special = false; 1.61 +$delete_folder = true; 1.62 +$noselect_fix_enable = false; 1.63 + 1.64 +$data_dir = '@l_prefix@/share/squirrelmail/prefs/'; 1.65 +$attachment_dir = '@l_prefix@/var/squirrelmail/spool/attach/'; 1.66 +$dir_hash_level = 1; 1.67 +$default_left_size = '224'; 1.68 +$force_username_lowercase = false; 1.69 +$default_use_priority = true; 1.70 +$hide_sm_attributions = false; 1.71 +$default_use_mdn = true; 1.72 +$edit_identity = true; 1.73 +$edit_name = true; 1.74 +$allow_thread_sort = true; 1.75 +$allow_server_sort = true; 1.76 +$allow_charset_search = true; 1.77 +$uid_support = true; 1.78 + 1.79 +$plugins[0] = 'abook_take'; 1.80 +$plugins[1] = 'administrator'; 1.81 +$plugins[2] = 'calendar'; 1.82 +$plugins[3] = 'compatibility'; 1.83 +$plugins[4] = 'delete_move_next'; 1.84 +$plugins[5] = 'filters'; 1.85 +$plugins[6] = 'info'; 1.86 +$plugins[7] = 'listcommands'; 1.87 +$plugins[8] = 'mail_fetch'; 1.88 +$plugins[9] = 'message_details'; 1.89 +$plugins[10] = 'newmail'; 1.90 +$plugins[11] = 'spamcop'; 1.91 +$plugins[12] = 'squirrelspell'; 1.92 +$plugins[13] = 'squirrel_logger'; 1.93 +$plugins[14] = 'translate'; 1.94 + 1.95 +/* NOP, for patch line placeholder (avoids fuzz) */ 1.96 +$theme_css = ''; 1.97 +$theme_default = 0; 1.98 +$theme[0]['PATH'] = '@l_prefix@/share/squirrelmail/themes/default_theme.php'; 1.99 +$theme[0]['NAME'] = 'Default'; 1.100 +$theme[1]['PATH'] = '@l_prefix@/share/squirrelmail/themes/plain_blue_theme.php'; 1.101 +$theme[1]['NAME'] = 'Plain Blue'; 1.102 +$theme[2]['PATH'] = '@l_prefix@/share/squirrelmail/themes/sandstorm_theme.php'; 1.103 +$theme[2]['NAME'] = 'Sand Storm'; 1.104 +$theme[3]['PATH'] = '@l_prefix@/share/squirrelmail/themes/deepocean_theme.php'; 1.105 +$theme[3]['NAME'] = 'Deep Ocean'; 1.106 +$theme[4]['PATH'] = '@l_prefix@/share/squirrelmail/themes/slashdot_theme.php'; 1.107 +$theme[4]['NAME'] = 'Slashdot'; 1.108 +$theme[5]['PATH'] = '@l_prefix@/share/squirrelmail/themes/purple_theme.php'; 1.109 +$theme[5]['NAME'] = 'Purple'; 1.110 +$theme[6]['PATH'] = '@l_prefix@/share/squirrelmail/themes/forest_theme.php'; 1.111 +$theme[6]['NAME'] = 'Forest'; 1.112 +$theme[7]['PATH'] = '@l_prefix@/share/squirrelmail/themes/ice_theme.php'; 1.113 +$theme[7]['NAME'] = 'Ice'; 1.114 +$theme[8]['PATH'] = '@l_prefix@/share/squirrelmail/themes/seaspray_theme.php'; 1.115 +$theme[8]['NAME'] = 'Sea Spray'; 1.116 +$theme[9]['PATH'] = '@l_prefix@/share/squirrelmail/themes/bluesteel_theme.php'; 1.117 +$theme[9]['NAME'] = 'Blue Steel'; 1.118 +$theme[10]['PATH'] = '@l_prefix@/share/squirrelmail/themes/dark_grey_theme.php'; 1.119 +$theme[10]['NAME'] = 'Dark Grey'; 1.120 +$theme[11]['PATH'] = '@l_prefix@/share/squirrelmail/themes/high_contrast_theme.php'; 1.121 +$theme[11]['NAME'] = 'High Contrast'; 1.122 +$theme[12]['PATH'] = '@l_prefix@/share/squirrelmail/themes/black_bean_burrito_theme.php'; 1.123 +$theme[12]['NAME'] = 'Black Bean Burrito'; 1.124 +$theme[13]['PATH'] = '@l_prefix@/share/squirrelmail/themes/servery_theme.php'; 1.125 +$theme[13]['NAME'] = 'Servery'; 1.126 +$theme[14]['PATH'] = '@l_prefix@/share/squirrelmail/themes/maize_theme.php'; 1.127 +$theme[14]['NAME'] = 'Maize'; 1.128 +$theme[15]['PATH'] = '@l_prefix@/share/squirrelmail/themes/bluesnews_theme.php'; 1.129 +$theme[15]['NAME'] = 'BluesNews'; 1.130 +$theme[16]['PATH'] = '@l_prefix@/share/squirrelmail/themes/deepocean2_theme.php'; 1.131 +$theme[16]['NAME'] = 'Deep Ocean 2'; 1.132 +$theme[17]['PATH'] = '@l_prefix@/share/squirrelmail/themes/blue_grey_theme.php'; 1.133 +$theme[17]['NAME'] = 'Blue Grey'; 1.134 +$theme[18]['PATH'] = '@l_prefix@/share/squirrelmail/themes/dompie_theme.php'; 1.135 +$theme[18]['NAME'] = 'Dompie'; 1.136 +$theme[19]['PATH'] = '@l_prefix@/share/squirrelmail/themes/methodical_theme.php'; 1.137 +$theme[19]['NAME'] = 'Methodical'; 1.138 +$theme[20]['PATH'] = '@l_prefix@/share/squirrelmail/themes/greenhouse_effect.php'; 1.139 +$theme[20]['NAME'] = 'Greenhouse Effect (Changes)'; 1.140 +$theme[21]['PATH'] = '@l_prefix@/share/squirrelmail/themes/in_the_pink.php'; 1.141 +$theme[21]['NAME'] = 'In The Pink (Changes)'; 1.142 +$theme[22]['PATH'] = '@l_prefix@/share/squirrelmail/themes/kind_of_blue.php'; 1.143 +$theme[22]['NAME'] = 'Kind of Blue (Changes)'; 1.144 +$theme[23]['PATH'] = '@l_prefix@/share/squirrelmail/themes/monostochastic.php'; 1.145 +$theme[23]['NAME'] = 'Monostochastic (Changes)'; 1.146 +$theme[24]['PATH'] = '@l_prefix@/share/squirrelmail/themes/shades_of_grey.php'; 1.147 +$theme[24]['NAME'] = 'Shades of Grey (Changes)'; 1.148 +$theme[25]['PATH'] = '@l_prefix@/share/squirrelmail/themes/spice_of_life.php'; 1.149 +$theme[25]['NAME'] = 'Spice of Life (Changes)'; 1.150 +$theme[26]['PATH'] = '@l_prefix@/share/squirrelmail/themes/spice_of_life_lite.php'; 1.151 +$theme[26]['NAME'] = 'Spice of Life - Lite (Changes)'; 1.152 +$theme[27]['PATH'] = '@l_prefix@/share/squirrelmail/themes/spice_of_life_dark.php'; 1.153 +$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)'; 1.154 +$theme[28]['PATH'] = '@l_prefix@/share/squirrelmail/themes/christmas.php'; 1.155 +$theme[28]['NAME'] = 'Holiday - Christmas'; 1.156 +$theme[29]['PATH'] = '@l_prefix@/share/squirrelmail/themes/darkness.php'; 1.157 +$theme[29]['NAME'] = 'Darkness (Changes)'; 1.158 +$theme[30]['PATH'] = '@l_prefix@/share/squirrelmail/themes/random.php'; 1.159 +$theme[30]['NAME'] = 'Random (Changes every login)'; 1.160 +$theme[31]['PATH'] = '@l_prefix@/share/squirrelmail/themes/midnight.php'; 1.161 +$theme[31]['NAME'] = 'Midnight'; 1.162 +$theme[32]['PATH'] = '@l_prefix@/share/squirrelmail/themes/alien_glow.php'; 1.163 +$theme[32]['NAME'] = 'Alien Glow'; 1.164 +$theme[33]['PATH'] = '@l_prefix@/share/squirrelmail/themes/dark_green.php'; 1.165 +$theme[33]['NAME'] = 'Dark Green'; 1.166 +$theme[34]['PATH'] = '@l_prefix@/share/squirrelmail/themes/penguin.php'; 1.167 +$theme[34]['NAME'] = 'Penguin'; 1.168 + 1.169 +$default_use_javascript_addr_book = false; 1.170 +$abook_global_file = ''; 1.171 +$abook_global_file_writeable = false; 1.172 + 1.173 +$addrbook_dsn = ''; 1.174 +$addrbook_table = 'address'; 1.175 + 1.176 +$prefs_dsn = ''; 1.177 +$prefs_table = 'userprefs'; 1.178 +$prefs_user_field = 'user'; 1.179 +$prefs_key_field = 'prefkey'; 1.180 +$prefs_val_field = 'prefval'; 1.181 +$addrbook_global_dsn = ''; 1.182 +$addrbook_global_table = 'global_abook'; 1.183 +$addrbook_global_writeable = false; 1.184 +$addrbook_global_listing = false; 1.185 + 1.186 +$no_list_for_subscribe = false; 1.187 +$smtp_auth_mech = 'digest-md5'; 1.188 +$imap_auth_mech = 'digest-md5'; 1.189 +$use_imap_tls = false; 1.190 +$use_smtp_tls = false; 1.191 +$session_name = 'SQMSESSID'; 1.192 + 1.193 +@include 'config_local.php'; 1.194 + 1.195 +/** 1.196 + * Make sure there are no characters after the PHP closing 1.197 + * tag below (including newline characters and whitespace). 1.198 + * Otherwise, that character will cause the headers to be 1.199 + * sent and regular output to begin, which will majorly screw 1.200 + * things up when we try to send more headers later. 1.201 + */ 1.202 +?>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/squirrelmail/config_local_kolab.php Wed Apr 15 22:49:00 2009 +0200 2.3 @@ -0,0 +1,62 @@ 2.4 +<?php 2.5 +/* 2.6 + * config_local.php 2.7 + */ 2.8 + 2.9 +$squirrelmail_default_language = 'en_US'; 2.10 +$default_charset = 'utf-8'; 2.11 + 2.12 +$imapServerAddress = 'localhost'; 2.13 +$imap_auth_mech = 'login'; 2.14 + 2.15 +$optional_delimiter = '/'; 2.16 + 2.17 +$trash_folder = 'INBOX/Trash'; 2.18 +$sent_folder = 'INBOX/Sent'; 2.19 +$draft_folder = 'INBOX/Drafts'; 2.20 +$auto_create_special = true; 2.21 + 2.22 +$useSendmail = false; 2.23 +$smtpServerAddress = 'localhost'; 2.24 +$smtpPort = 465; 2.25 +$use_smtp_tls = true; 2.26 +$smtp_auth_mech = 'plain'; 2.27 + 2.28 +/* $encode_header_key = 'ec708b484289'; */ 2.29 +/* $hide_auth_header = false; */ 2.30 + 2.31 +$org_name = "Kolab"; 2.32 +$org_logo = SM_PATH . 'images/sm_logo.png'; 2.33 +$org_logo_width = '308'; 2.34 +$org_logo_height = '111'; 2.35 + 2.36 +$org_title = "Kolab"; 2.37 + 2.38 +$provider_name = 'Kolab'; 2.39 +$provider_uri = 'http://www.kolab.org/'; 2.40 + 2.41 +$edit_identity = false; 2.42 + 2.43 +unset($plugins); 2.44 +$plugins[0] = 'abook_take'; 2.45 +$plugins[] = 'administrator'; 2.46 +$plugins[] = 'calendar'; 2.47 +$plugins[] = 'compatibility'; 2.48 +$plugins[] = 'delete_move_next'; 2.49 +$plugins[] = 'listcommands'; 2.50 +$plugins[] = 'message_details'; 2.51 +$plugins[] = 'newmail'; 2.52 +$plugins[] = 'squirrelspell'; 2.53 +$plugins[] = 'squirrel_logger'; 2.54 +$plugins[] = 'translate'; 2.55 + 2.56 +$plugins[] = 'addgraphics'; 2.57 +$plugins[] = 'check_quota'; 2.58 +$plugins[] = 'folder_sizes'; 2.59 +$plugins[] = 'pupdate'; 2.60 +$plugins[] = 'show_user_and_ip'; 2.61 +$plugins[] = 'smallcal'; 2.62 +$plugins[] = 'vkeyboard'; 2.63 +$plugins[] = 'username'; 2.64 + 2.65 +?>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/squirrelmail/defprefs.txt Wed Apr 15 22:49:00 2009 +0200 3.3 @@ -0,0 +1,54 @@ 3.4 +left_refresh=300 3.5 +hour_format=1 3.6 +date_format=2 3.7 +reply_citation_style=author_said 3.8 +mailfetch_newlog=off 3.9 +javascript_on=1 3.10 +use_javascript_addr_book=1 3.11 +spamcop_method=web_form 3.12 +show_xmailer_default=1 3.13 +pf_cleandisplay=1 3.14 +delete_move_next_t=off 3.15 +delete_move_next_formATtop=off 3.16 +delete_move_next_b=on 3.17 +delete_move_next_formATbottom=on 3.18 +show_user_on_left_pane=1 3.19 +show_ip_on_left_pane=1 3.20 +show_host_on_left_pane=0 3.21 +smallcal_bottom=1 3.22 +smallcal_separator=1 3.23 +smallcal_show=1 3.24 +smallcal_default=1 3.25 +smallcal_header=#770000 3.26 +smallcal_calendar=Personal 3.27 +move_to_trash=1 3.28 +trash_folder=INBOX/Trash 3.29 +save_as_draft=1 3.30 +draft_folder=INBOX/Drafts 3.31 +move_to_sent=1 3.32 +sent_folder=INBOX/Sent 3.33 +left_size=220 3.34 +folder_sizes_left_link=1 3.35 +folder_sizes_on_folder_page=0 3.36 +folder_sizes_subtotals=0 3.37 +wrap_at=72 3.38 +custom_css=sans-10.css 3.39 +newmail_enable=on 3.40 +newmail_changetitle=on 3.41 +translate_server=babelfish 3.42 +translate_location=center 3.43 +translate_show_read=1 3.44 +mailfetch_port_0=110 3.45 +mailfetch_cypher=on 3.46 +mailfetch_lmos_0=on 3.47 +mailfetch_subfolder_0=INBOX 3.48 +mailfetch_server_number=0 3.49 +use_signature=1 3.50 +prefix_sig=1 3.51 +search_memory=8 3.52 +order1=1 3.53 +order2=2 3.54 +order3=3 3.55 +order4=5 3.56 +order5=4 3.57 +order6=6
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/squirrelmail/index.php Wed Apr 15 22:49:00 2009 +0200 4.3 @@ -0,0 +1,10 @@ 4.4 +<?php 4.5 + 4.6 +// If we are, go ahead to the login page. 4.7 + 4.8 +// This index.php presume SM is already configured (no check anymore) 4.9 + 4.10 +header('Location: src/login.php'); 4.11 + 4.12 +?> 4.13 +
5.1 Binary file squirrelmail/opkg_large.png has changed
6.1 Binary file squirrelmail/opkg_small.png has changed
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/squirrelmail/rc.squirrelmail Wed Apr 15 22:49:00 2009 +0200 7.3 @@ -0,0 +1,22 @@ 7.4 +#!@l_prefix@/bin/openpkg rc 7.5 +## 7.6 +## rc.squirrelmail -- Run-Commands 7.7 +## 7.8 + 7.9 +%config 7.10 + squirrelmail_enable="$openpkg_rc_def" 7.11 + squirrelmail_log_prolog="true" 7.12 + squirrelmail_log_epilog="true" 7.13 + squirrelmail_log_numfiles="10" 7.14 + squirrelmail_log_minsize="1M" 7.15 + squirrelmail_log_complevel="9" 7.16 + 7.17 +%daily -u @l_nusr@ 7.18 + rcService squirrelmail enable yes || exit 0 7.19 + shtool rotate -f \ 7.20 + -n ${squirrelmail_log_numfiles} -s ${squirrelmail_log_minsize} -d \ 7.21 + -z ${squirrelmail_log_complevel} -m 644 -o @l_nusr@ -g @l_ngrp@ \ 7.22 + -P "${squirrelmail_log_prolog}" \ 7.23 + -E "${squirrelmail_log_epilog}" \ 7.24 + @l_prefix@/var/squirrelmail/log/access.log 7.25 +
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/squirrelmail/squirrelmail.conf Wed Apr 15 22:49:00 2009 +0200 8.3 @@ -0,0 +1,3 @@ 8.4 + 8.5 +Alias /webmail @l_prefix@/share/squirrelmail 8.6 +
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 9.2 +++ b/squirrelmail/squirrelmail.patch Wed Apr 15 22:49:00 2009 +0200 9.3 @@ -0,0 +1,50 @@ 9.4 +Index: functions/display_messages.php 9.5 +--- functions/display_messages.php.orig 2005-03-21 23:18:32 +0100 9.6 ++++ functions/display_messages.php 2005-07-30 21:15:29 +0200 9.7 +@@ -88,8 +88,8 @@ 9.8 + "\"$width_and_height /><br />\n"; 9.9 + } 9.10 + echo ( $hide_sm_attributions ? '' : 9.11 +- '<small>' . sprintf (_("SquirrelMail version %s"), $version) . '<br />'. 9.12 +- _("By the SquirrelMail Project Team") . "<br /></small>\n" ). 9.13 ++ '<br />'. 9.14 ++ "<br />\n" ). 9.15 + '<table cellspacing="1" cellpadding="0" bgcolor="'.$color[1].'" width="70%">'. 9.16 + '<tr><td>'. 9.17 + '<table width="100%" border="0" bgcolor="'.$color[4].'" align="center">'. 9.18 +Index: functions/imap_general.php 9.19 +--- functions/imap_general.php.orig 2005-05-20 12:37:34 +0200 9.20 ++++ functions/imap_general.php 2005-07-30 21:14:27 +0200 9.21 +@@ -568,6 +568,7 @@ 9.22 + 9.23 + set_up_language($squirrelmail_language, true); 9.24 + include_once(SM_PATH . 'functions/display_messages.php' ); 9.25 ++ do_hook('invalid_login'); /* used with squirrelmail_logger */ 9.26 + sqsession_destroy(); 9.27 + /* terminate the session nicely */ 9.28 + sqimap_logout($imap_stream); 9.29 +Index: src/login.php 9.30 +--- src/login.php.orig 2005-06-22 15:45:35 +0200 9.31 ++++ src/login.php 2005-07-30 21:15:39 +0200 9.32 +@@ -132,8 +132,8 @@ 9.33 + ' /><br />' . "\n" 9.34 + : '' ). 9.35 + ( (isset($hide_sm_attributions) && $hide_sm_attributions) ? '' : 9.36 +- '<small>' . sprintf (_("SquirrelMail version %s"), $version) . '<br />' ."\n". 9.37 +- ' ' . _("By the SquirrelMail Project Team") . '<br /></small>' . "\n" ) . 9.38 ++ '<br />' ."\n". 9.39 ++ '<br />' . "\n" ) . 9.40 + html_tag( 'table', 9.41 + html_tag( 'tr', 9.42 + html_tag( 'td', 9.43 +Index: src/right_main.php 9.44 +--- src/right_main.php.orig 2005-06-15 23:12:05 +0200 9.45 ++++ src/right_main.php 2005-07-30 21:14:27 +0200 9.46 +@@ -182,6 +182,7 @@ 9.47 + ) 9.48 + ) , 9.49 + 'center', $color[9], 'width="70%" cellpadding="0" cellspacing="3" border="0"' ); 9.50 ++ echo "<br />\n"; 9.51 + } 9.52 + } 9.53 + }
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 10.2 +++ b/squirrelmail/squirrelmail.patch.plugins Wed Apr 15 22:49:00 2009 +0200 10.3 @@ -0,0 +1,87 @@ 10.4 +Index: etc/squirrelmail/config.php 10.5 +diff -Nau etc/squirrelmail/config.php.orig etc/squirrelmail/config.php 10.6 +--- etc/squirrelmail/config.php.orig 2005-03-16 13:02:25 +0100 10.7 ++++ etc/squirrelmail/config.php 2005-03-16 12:31:51 +0100 10.8 +@@ -89,6 +89,19 @@ 10.9 + $plugins[13] = 'squirrel_logger'; 10.10 + $plugins[14] = 'translate'; 10.11 + 10.12 ++$plugins[15] = 'addgraphics'; 10.13 ++$plugins[16] = 'avelsieve'; 10.14 ++$plugins[17] = 'check_quota'; 10.15 ++$plugins[18] = 'chg_sasl_passwd'; 10.16 ++$plugins[19] = 'folder_sizes'; 10.17 ++$plugins[20] = 'gpg'; 10.18 ++$plugins[21] = 'ldifimport'; 10.19 ++$plugins[22] = 'pupdate'; 10.20 ++$plugins[23] = 'show_user_and_ip'; 10.21 ++$plugins[24] = 'smallcal'; 10.22 ++$plugins[25] = 'vkeyboard'; 10.23 ++$plugins[26] = 'username'; 10.24 ++ 10.25 + /* NOP, for patch line placeholder (avoids fuzz) */ 10.26 + $theme_css = ''; 10.27 + $theme_default = 0; 10.28 +Index: share/squirrelmail/plugins/gpg/setup.php 10.29 +diff -Nau share/squirrelmail/plugins/gpg/setup.php.orig share/squirrelmail/plugins/gpg/setup.php 10.30 +--- share/squirrelmail/plugins/gpg/setup.php.orig 2005-03-18 12:01:39.398171000 +0100 10.31 ++++ share/squirrelmail/plugins/gpg/setup.php 2005-03-18 12:03:35.986216000 +0100 10.32 +@@ -14,7 +14,9 @@ 10.33 + * 10.34 + */ 10.35 + if (!defined (SM_PATH)){ 10.36 +- if (file_exists('./gpg_functions.php')){ 10.37 ++ if (file_exists('../../../plugins/gpg/gpg_functions.php')){ 10.38 ++ define (SM_PATH , '../../../'); 10.39 ++ } elseif (file_exists('../../plugins/gpg/gpg_functions.php')){ 10.40 + define (SM_PATH , '../../'); 10.41 + } elseif (file_exists('../plugins/gpg/gpg_functions.php')) { 10.42 + define (SM_PATH, '../'); 10.43 +Index: share/squirrelmail/plugins/chg_sasl_passwd/options.php 10.44 +diff -Nau share/squirrelmail/plugins/chg_sasl_passwd/options.php.orig share/squirrelmail/plugins/chg_sasl_passwd/options.php 10.45 +--- share/squirrelmail/plugins/chg_sasl_passwd/options.php.orig 2005-03-17 21:00:03.157951000 +0100 10.46 ++++ share/squirrelmail/plugins/chg_sasl_passwd/options.php 2005-03-18 14:16:40.480988000 +0100 10.47 +@@ -70,8 +70,8 @@ 10.48 + ' "" + dir_path + "/../../src/signout.php?chg_sasl_passwd";' . "', 0);\n" . 10.49 + "//-->\n</script>\n"; 10.50 + 10.51 +- echo "<H2>" . _("Your password has successfully been changed.") . "</H2>\n"; 10.52 +- echo '<div align=center>' . _("Please") . '<a href="' . SM_PATH . 10.53 ++ echo "<H2><div align=center>" . _("Your password has successfully been changed.") . "</div></H2>\n"; 10.54 ++ echo '<div align=center>' . _("Please, ") . '<a href="' . SM_PATH . 10.55 + 'src/signout.php?chg_sasl_passwd" TARGET=_top>' . 10.56 + _("logout and log back in using your new password.") . "</div>\n"; 10.57 + } 10.58 +Index: share/squirrelmail/plugins/chg_sasl_passwd/setup.php 10.59 +diff -Nau share/squirrelmail/plugins/chg_sasl_passwd/setup.php.orig share/squirrelmail/plugins/chg_sasl_passwd/setup.php 10.60 +--- share/squirrelmail/plugins/chg_sasl_passwd/setup.php.orig 2005-03-03 00:38:44.000000000 +0100 10.61 ++++ share/squirrelmail/plugins/chg_sasl_passwd/setup.php 2005-03-18 14:29:52.513613000 +0100 10.62 +@@ -32,8 +32,12 @@ 10.63 + 10.64 + if (isset($_SERVER['QUERY_STRING']) && 10.65 + stristr($_SERVER['QUERY_STRING'], 'chg_sasl_passwd') ) 10.66 +- echo "<br><b>" . _("Your password has been changed. This requires that you logout and then log back in with the new password.") . 10.67 +- "<br><p><br>\n" . _("Logging out automagically") . ".<br><br>\n"; 10.68 ++ echo "<center>" . 10.69 ++ "<br /><b>" . _("Your password has been changed.") . 10.70 ++ "</b><br />" . _("This requires that you logout and then") . 10.71 ++ "<br />" . _("log back in with the new password.") . 10.72 ++ "<br /><br />" . _("Logging out automatically...") . 10.73 ++ "</center><br /><br /><br />\n"; 10.74 + 10.75 + /* Switch back to the SquirrelMail domain */ 10.76 + textdomain('squirrelmail'); 10.77 +Index: share/squirrelmail/plugins/check_quota/config.sample.php 10.78 +diff -uaN share/squirrelmail/plugins/check_quota/config.sample.php.orig share/squirrelmail/plugins/check_quota/config.sample.php 10.79 +--- share/squirrelmail/plugins/check_quota/config.sample.php.orig 2008-01-03 06:39:34.000000000 +0100 10.80 ++++ share/squirrelmail/plugins/check_quota/config.sample.php 2008-01-03 06:39:48.000000000 +0100 10.81 +@@ -25,7 +25,7 @@ 10.82 + * 0: UNIX / 1: IMAP / 2: cPanel 10.83 + */ 10.84 + 10.85 +-$settings['quota_type'] = 0; 10.86 ++$settings['quota_type'] = 1; 10.87 + 10.88 + 10.89 + /* 10.90 +
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 11.2 +++ b/squirrelmail/squirrelmail.spec Wed Apr 15 22:49:00 2009 +0200 11.3 @@ -0,0 +1,457 @@ 11.4 +## 11.5 +## squirrelmail.spec -- OpenPKG RPM Package Specification 11.6 +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 11.7 +## 11.8 +## Permission to use, copy, modify, and distribute this software for 11.9 +## any purpose with or without fee is hereby granted, provided that 11.10 +## the above copyright notice and this permission notice appear in all 11.11 +## copies. 11.12 +## 11.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 11.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 11.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 11.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 11.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 11.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 11.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 11.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 11.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 11.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 11.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 11.24 +## SUCH DAMAGE. 11.25 +## 11.26 + 11.27 +# package version 11.28 +%define V_squirrelmail 1.4.17 11.29 +%define V_locale 1.4.13-20071220 11.30 +%define V_plugin_compat 2.0.9-1.0 11.31 +%define V_plugin_logger 1.4.0-1.0.6 11.32 +%define V_plugin_addgraphics 2.3-1.0.3 11.33 +%define V_plugin_avelsieve 1.9.7 11.34 +%define V_plugin_saslpwd 1.4.1-1.4 11.35 +%define V_plugin_checkquota 2.2-1.4.0 11.36 +%define V_plugin_foldersize 1.5-1.4.0 11.37 +%define V_plugin_gnupg 2.0.1-1.4.2 11.38 +%define V_plugin_ldif 1.4-1.2.x 11.39 +%define V_plugin_update 0.7-1.4.2 11.40 +%define V_plugin_userip 3.3-re-1.2.2 11.41 +%define V_plugin_smallcal 0.8-1.2.3 11.42 +%define V_plugin_vkeyboard 0.9 11.43 +%define V_plugin_username 2.3-1.0.0 11.44 + 11.45 +# package information 11.46 +Name: squirrelmail 11.47 +Summary: SquirrelMail Webmail Client 11.48 +URL: http://www.squirrelmail.org/ 11.49 +Vendor: Squirrelmail Developers 11.50 +Packager: OpenPKG Foundation e.V. 11.51 +Distribution: OpenPKG Community 11.52 +Class: EVAL 11.53 +Group: Mail 11.54 +License: GPL 11.55 +Version: %{V_squirrelmail} 11.56 +Release: 20090327 11.57 + 11.58 +# package options 11.59 +%option with_plugins no 11.60 +%option with_kolab no 11.61 + 11.62 +# list of sources 11.63 +Source0: http://switch.dl.sourceforge.net/squirrelmail/squirrelmail-%{V_squirrelmail}.tar.bz2 11.64 +Source1: http://switch.dl.sourceforge.net/squirrelmail/all_locales-%{V_locale}.tar.bz2 11.65 +Source2: http://www.squirrelmail.org/plugins/compatibility-%{V_plugin_compat}.tar.gz 11.66 +Source3: http://www.squeaksoft.com/products/SquirrelLogger/squirrel_logger.%{V_plugin_logger}.tar.gz 11.67 +Source4: http://www.squirrelmail.org/plugins/addgraphics-%{V_plugin_addgraphics}.tar.gz 11.68 +Source5: http://www.squirrelmail.org/plugins/avelsieve-%{V_plugin_avelsieve}.tar.gz 11.69 +Source6: http://www.squirrelmail.org/plugins/chg_sasl_passwd-%{V_plugin_saslpwd}.tar.gz 11.70 +Source7: http://www.squirrelmail.org/plugins/check_quota-%{V_plugin_checkquota}.tar.gz 11.71 +Source8: http://www.squirrelmail.org/plugins/folder_sizes-%{V_plugin_foldersize}.tar.gz 11.72 +Source9: http://www.squirrelmail.org/plugins/gpg.%{V_plugin_gnupg}.tar.gz 11.73 +Source10: http://www.squirrelmail.org/plugins/ldifimport-%{V_plugin_ldif}.tar.gz 11.74 +Source11: http://www.squirrelmail.org/plugins/pupdate.%{V_plugin_update}.tar.gz 11.75 +Source12: http://www.squirrelmail.org/plugins/show_user_and_ip-%{V_plugin_userip}.tar.gz 11.76 +Source13: http://www.squirrelmail.org/plugins/smallcal-%{V_plugin_smallcal}.tar.gz 11.77 +Source14: http://www.squirrelmail.org/plugins/vkeyboard-%{V_plugin_vkeyboard}.tar.gz 11.78 +Source15: http://www.squirrelmail.org/plugins/username-%{V_plugin_username}.tar.gz 11.79 +Source16: config.php 11.80 +Source17: defprefs.txt 11.81 +Source18: opkg_large.png 11.82 +Source19: opkg_small.png 11.83 +Source20: rc.squirrelmail 11.84 +Source21: squirrelmail.conf 11.85 +Source22: config_local_kolab.php 11.86 +Source23: index.php 11.87 +Patch0: squirrelmail.patch 11.88 +Patch1: squirrelmail.patch.plugins 11.89 + 11.90 +# build information 11.91 +Prefix: %{l_prefix} 11.92 +BuildRoot: %{l_buildroot} 11.93 +BuildPreReq: OpenPKG, openpkg >= 20060823 11.94 +PreReq: OpenPKG, openpkg >= 20060823 11.95 +PreReq: MTA, apache, apache-php, apache-php::with_xml = yes 11.96 +AutoReq: no 11.97 +AutoReqProv: no 11.98 + 11.99 +%description 11.100 + SquirrelMail is a standards-based webmail package written in PHP. It 11.101 + includes built-in pure PHP support for the IMAP and SMTP protocols, 11.102 + and all pages render in pure HTML 4.0 (with no Javascript) for 11.103 + maximum compatibility across browsers. It has very few requirements 11.104 + and is very easy to configure and install. SquirrelMail has all the 11.105 + functionality you would want from an email client, including strong 11.106 + MIME support, address books, and folder manipulation. 11.107 + 11.108 +%track 11.109 + prog squirrelmail = { 11.110 + version = %{V_squirrelmail} 11.111 + url = http://prdownloads.sourceforge.net/squirrelmail/ 11.112 + regex = squirrelmail-(\d+\.[02468]\.\d+[a-z]?)\.tar\.bz2 11.113 + } 11.114 + prog squirrelmail:locales = { 11.115 + version = %{V_locale} 11.116 + url = http://prdownloads.sourceforge.net/squirrelmail/ 11.117 + regex = all_locales-(\d+\.[02468]\.\d+-\d+)\.tar\.bz2 11.118 + } 11.119 + prog squirrelmail:compat = { 11.120 + comment = "cs: untrackable due to CMS generated URLs" 11.121 + disabled 11.122 + version = %{V_plugin_compat} 11.123 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.124 + regex = compatibility-(__VER__)\.tar\.gz 11.125 + } 11.126 + prog squirrelmail:logger = { 11.127 + version = %{V_plugin_logger} 11.128 + url = http://www.squeaksoft.com/products/SquirrelLogger/ 11.129 + regex = squirrel_logger.(__VER__)\.tar\.gz 11.130 + } 11.131 + prog squirrelmail:addgraphics = { 11.132 + comment = "cs: untrackable due to CMS generated URLs" 11.133 + disabled 11.134 + version = %{V_plugin_addgraphics} 11.135 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.136 + regex = addgraphics-(__VER__)\.tar\.gz 11.137 + } 11.138 + prog squirrelmail:avelsieve = { 11.139 + comment = "cs: untrackable due to CMS generated URLs" 11.140 + disabled 11.141 + version = %{V_plugin_avelsieve} 11.142 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.143 + regex = avelsieve-(\d+\.\d+\.\d+)\.tar\.gz 11.144 + } 11.145 + prog squirrelmail:saslpwd = { 11.146 + comment = "cs: untrackable due to CMS generated URLs" 11.147 + disabled 11.148 + version = %{V_plugin_saslpwd} 11.149 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.150 + regex = chg_sasl_passwd-(\d+\.\d+\.\d+-\d+\.\d+)\.tar\.gz 11.151 + } 11.152 + prog squirrelmail:checkquota = { 11.153 + comment = "cs: untrackable due to CMS generated URLs" 11.154 + disabled 11.155 + version = %{V_plugin_checkquota} 11.156 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.157 + regex = check_quota-(__VER__)\.tar\.gz 11.158 + } 11.159 + prog squirrelmail:foldersize = { 11.160 + comment = "cs: untrackable due to CMS generated URLs" 11.161 + disabled 11.162 + version = %{V_plugin_foldersize} 11.163 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.164 + regex = folder_sizes-(__VER__)\.tar\.gz 11.165 + } 11.166 + prog squirrelmail:gnupg = { 11.167 + comment = "cs: untrackable due to CMS generated URLs" 11.168 + disabled 11.169 + version = %{V_plugin_gnupg} 11.170 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.171 + regex = gpg.(\d+\.\d+\.\d+-\d+\.\d+\.\d+)\.tar\.gz 11.172 + } 11.173 + prog squirrelmail:ldif = { 11.174 + comment = "cs: untrackable due to CMS generated URLs" 11.175 + disabled 11.176 + version = %{V_plugin_ldif} 11.177 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.178 + regex = ldifimport-(__VER__)\.tar\.gz 11.179 + } 11.180 + prog squirrelmail:update = { 11.181 + comment = "cs: untrackable due to CMS generated URLs" 11.182 + disabled 11.183 + version = %{V_plugin_update} 11.184 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.185 + regex = pupdate.(__VER__)\.tar\.gz 11.186 + } 11.187 + prog squirrelmail:userip = { 11.188 + comment = "cs: untrackable due to CMS generated URLs" 11.189 + disabled 11.190 + version = %{V_plugin_userip} 11.191 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.192 + regex = show_user_and_ip-(__VER__)\.tar\.gz 11.193 + } 11.194 + prog squirrelmail:smallcal = { 11.195 + comment = "cs: untrackable due to CMS generated URLs" 11.196 + disabled 11.197 + version = %{V_plugin_smallcal} 11.198 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.199 + regex = smallcal-(__VER__)\.tar\.gz 11.200 + } 11.201 + prog squirrelmail:vkeyboard = { 11.202 + comment = "cs: untrackable due to CMS generated URLs" 11.203 + disabled 11.204 + version = %{V_plugin_vkeyboard} 11.205 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.206 + regex = vkeyboard-(__VER__)\.tar\.gz 11.207 + } 11.208 + prog squirrelmail:username = { 11.209 + comment = "cs: untrackable due to CMS generated URLs" 11.210 + disabled 11.211 + version = %{V_plugin_username} 11.212 + url = http://www.squirrelmail.org/plugins_category.php?category_id=all 11.213 + regex = username-(__VER__)\.tar\.gz 11.214 + } 11.215 + 11.216 +%prep 11.217 + %setup -q -c -n squirrelmail 11.218 + %setup -q -D -T -a 1 -c -n squirrelmail/all_locales-%{V_locale} 11.219 + %setup -q -D -T -a 2 -n squirrelmail 11.220 + %setup -q -D -T -a 3 -n squirrelmail 11.221 + mv compatibility squirrelmail-%{V_squirrelmail}/plugins 11.222 + mv squirrel_logger squirrelmail-%{V_squirrelmail}/plugins 11.223 +%if "%{with_plugins}" == "yes" 11.224 + %setup -q -D -T -a 4 -n squirrelmail 11.225 + %setup -q -D -T -a 5 -n squirrelmail 11.226 + %setup -q -D -T -a 6 -n squirrelmail 11.227 + %setup -q -D -T -a 7 -n squirrelmail 11.228 + %setup -q -D -T -a 8 -n squirrelmail 11.229 + %setup -q -D -T -a 9 -n squirrelmail 11.230 + %setup -q -D -T -a 10 -n squirrelmail 11.231 + %setup -q -D -T -a 11 -n squirrelmail 11.232 + %setup -q -D -T -a 12 -n squirrelmail 11.233 + %setup -q -D -T -a 13 -n squirrelmail 11.234 + %setup -q -D -T -a 14 -n squirrelmail 11.235 + %setup -q -D -T -a 15 -n squirrelmail 11.236 + 11.237 + # move additional plugins where other are already placed 11.238 + for plug in addgraphics avelsieve check_quota chg_sasl_passwd \ 11.239 + folder_sizes gpg ldifimport pupdate show_user_and_ip \ 11.240 + smallcal vkeyboard username; do 11.241 + mv $plug squirrelmail-%{V_squirrelmail}/plugins 11.242 + done 11.243 +%endif 11.244 + 11.245 + # clean up login screen of distractions 11.246 + ( cd squirrelmail-%{V_squirrelmail} 11.247 + %patch -p0 11.248 + ) || exit $? 11.249 + 11.250 + # rearrange documentation and remove archive script 11.251 + ( cd squirrelmail-%{V_squirrelmail} 11.252 + mv AUTHORS ChangeLog COPYING INSTALL README UPGRADE doc/ 11.253 + mv ReleaseNotes doc/ReleaseNotes.txt 11.254 + mv themes/README.themes doc/ 11.255 + for fil in `find plugins/ -name "README*" -o -name "Readme*" \ 11.256 + -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do 11.257 + %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil` 11.258 + mv -f $fil $_ 11.259 + done 11.260 + mv doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell 11.261 + rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php 11.262 + mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell 11.263 + rm -rf plugins/squirrelspell/doc 11.264 + rm -f plugins/make_archive.pl 11.265 +%if "%{with_plugins}" == "yes" 11.266 + mv plugins/pupdate/docs/* doc/plugins/pupdate 11.267 + rm -rf plugins/pupdate/docs 11.268 +%endif 11.269 + 11.270 + # postadjustment cosmetics 11.271 + %{l_shtool} subst \ 11.272 + -e 's;\(#ffffff., .border="0" width=\)"350";\1"250";1' \ 11.273 + src/login.php 11.274 + 11.275 + # set default prefs 11.276 + cat %{SOURCE defprefs.txt} >>data/default_pref 11.277 + ) || exit $? 11.278 + 11.279 +%build 11.280 + 11.281 +%install 11.282 + rm -rf $RPM_BUILD_ROOT 11.283 + 11.284 + # create directory structure 11.285 + %{l_shtool} mkdir -f -p -m 755 \ 11.286 + $RPM_BUILD_ROOT%{l_prefix}/bin \ 11.287 + $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail \ 11.288 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs \ 11.289 + $RPM_BUILD_ROOT%{l_prefix}/var/squirrelmail/spool/attach \ 11.290 + $RPM_BUILD_ROOT%{l_prefix}/var/squirrelmail/log 11.291 + 11.292 + # install locales 11.293 + ( cd all_locales-%{V_locale} 11.294 + cp -rpf help images locale $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ 11.295 + ) || exit $? 11.296 + 11.297 + # install program 11.298 + ( cd squirrelmail-%{V_squirrelmail} 11.299 + 11.300 + # install default_pref 11.301 + %{l_shtool} install -c -m 644 \ 11.302 + data/default_pref \ 11.303 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs/ 11.304 + 11.305 + # create initial administrator list 11.306 + echo %{l_musr} >>$RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/admins 11.307 + 11.308 + # copy over most functional directories, a lot of stuff 11.309 + for dir in class doc functions include plugins src themes; do 11.310 + cp -rpf $dir $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ 11.311 + done 11.312 + cp -rpf images/* $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 11.313 + cp -pf locale/timezones.cfg $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/locale/ 11.314 + 11.315 + # install main config files 11.316 + l_fqdm=`%{l_shtool} echo -e %h%d` 11.317 + %{l_shtool} install -c -m 644 %{l_value -s -a} \ 11.318 + -e 's;config/\(config_local.php\);\1;g' \ 11.319 + -e "s;@l_fqdm@;${l_fqdm};g" \ 11.320 + %{SOURCE config.php} \ 11.321 + config/config_default.php \ 11.322 + config/config_local.php \ 11.323 + $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/ 11.324 +%if "%{with_plugins}" == "yes" 11.325 + ( cd $RPM_BUILD_ROOT%{l_prefix} 11.326 + %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins} 11.327 + rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/*.orig 11.328 + rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/gpg/*.orig 11.329 + rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/chg_sasl_passwd/*.orig 11.330 + ) || exit $? 11.331 +%endif 11.332 + 11.333 + # install plugin config files 11.334 + ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins 11.335 + %{l_shtool} subst \ 11.336 + -e 's;../data/access_log;../../../var/squirrelmail/log/access.log;' \ 11.337 + -e 's;\(\$sl_dateformat = \)"m/d/Y G:i:s";\1"d/m/Y G:i:s";' \ 11.338 + squirrel_logger/setup.php 11.339 +%if "%{with_plugins}" == "yes" 11.340 + cp -pf check_quota/config.sample.php check_quota/config.php 11.341 + cp -pf chg_sasl_passwd/config.php.sample chg_sasl_passwd/config.php 11.342 + cp -pf show_user_and_ip/config.php.sample show_user_and_ip/config.php 11.343 + %{l_shtool} install -c -m 644 \ 11.344 + -e "s;sm_logo\.png;opkg_small.png;" \ 11.345 + -e "s;SquirrelMail Logo;OpenPKG Logo;" \ 11.346 + -e "s;www\.squirrelmail\.org;www.openpkg.org;" \ 11.347 + -e "s;\/\/\(\$image_width.*\) = 308;\1 = 201;" \ 11.348 + -e "s;\/\/\(\$image_height.*\) = 111;\1 = 62;" \ 11.349 + addgraphics/config.php.typical.one.domain \ 11.350 + addgraphics/config.php 11.351 + %{l_shtool} install -c -m 644 \ 11.352 + -e 's/^\(\$sieve_preferred_sasl_mech =\).*/\1 "PLAIN LOGIN CRAM-MD5 DIGEST-MD5";/' \ 11.353 + -e 's/^\(\$avelsieve_oldcyrus =\).*/\1 false;/' \ 11.354 + -e 's/^\(\$startitems =\).*/\1 4;/' \ 11.355 + avelsieve/config/config_sample.php \ 11.356 + avelsieve/config/config.php 11.357 + %{l_shtool} subst \ 11.358 + -e 's;\(path_to_gpg=\)/usr/bin/gpg.*;\1%{l_prefix}/bin/gpg;' \ 11.359 + gpg/gpg_local_prefs.txt 11.360 + %{l_shtool} install -c -m 644 \ 11.361 + -e 's;\(adminusername = "\)[^"]*;\1%{l_musr};' \ 11.362 + -e 's;corehide = 1;corehide = 0;' \ 11.363 + pupdate/config.php.sample \ 11.364 + pupdate/config.php 11.365 + %{l_shtool} install -c -m 644 \ 11.366 + -e "s;\(\$vkeyboard_msgsize.*\)'medium';\1'x-small';" \ 11.367 + -e "s;\(\$vkeyboard_layout.*\)'us_english';\1'portuguese_abnt2';" \ 11.368 + -e "s;\(\$vkeyboard_height.*\)'250';\1'270';" \ 11.369 + vkeyboard/config.php.sample \ 11.370 + vkeyboard/config.php 11.371 + cp -pf username/config.php.sample username/config.php 11.372 + %{l_shtool} install -c -m 644 \ 11.373 + %{SOURCE opkg_small.png} \ 11.374 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 11.375 +%endif 11.376 + ) || exit $? 11.377 + 11.378 + # install squirrelmail configuration perl script 11.379 + %{l_shtool} install -c -m 755 \ 11.380 + -e 's;chdir($dir);chdir("%{l_prefix}/etc/squirrelmail");g' \ 11.381 + -e 's;\.\./plugins;%{l_prefix}/share/squirrelmail/plugins;g' \ 11.382 + -e 's;\.\./themes;%{l_prefix}/share/squirrelmail/themes;g' \ 11.383 + -e 's;config/config_local.php;config_local.php;g' \ 11.384 + config/conf.pl \ 11.385 + $RPM_BUILD_ROOT%{l_prefix}/bin/squirrelconf 11.386 + 11.387 + # use our own logo, a squirrel next to a OpenPKG package 11.388 + %{l_shtool} install -c -m 644 \ 11.389 + %{SOURCE opkg_large.png} \ 11.390 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 11.391 + ) || exit $? 11.392 + 11.393 + # install runcommand script 11.394 + %{l_shtool} mkdir -f -p -m 755 \ 11.395 + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d 11.396 + %{l_shtool} install -c -m 755 %{l_value -s -a} \ 11.397 + %{SOURCE rc.squirrelmail} \ 11.398 + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ 11.399 + 11.400 + # replace false /etc config paths throughout 11.401 + %{l_shtool} subst \ 11.402 + -e 's;SM_PATH \. \(.\)config/;\1%{l_prefix}/etc/squirrelmail/;g' \ 11.403 + -e 's;require_once(SM_PATH \. \(.*\)%{l_prefix};require_once(\1%{l_prefix};g' \ 11.404 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/functions/*.php \ 11.405 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/include/*.php \ 11.406 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/abook_take/*.php \ 11.407 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/administrator/*.php \ 11.408 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins/calendar/*.php \ 11.409 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/src/*.php 11.410 + 11.411 + # integration into Apache under /webmail 11.412 + %{l_shtool} mkdir -f -p -m 755 \ 11.413 + $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d 11.414 + %{l_shtool} install -c -m 644 %{l_value -s -a} \ 11.415 + %{SOURCE squirrelmail.conf} \ 11.416 + $RPM_BUILD_ROOT%{l_prefix}/etc/apache/apache.d/ 11.417 + %{l_shtool} install -c -m 644 %{l_value -s -a} \ 11.418 + %{SOURCE index.php} \ 11.419 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ 11.420 + 11.421 + # optional KOLAB configuration 11.422 +%if "%{with_kolab}" == "yes" 11.423 + %{l_shtool} install -c -m 644 %{l_value -s -a} \ 11.424 + %{SOURCE config_local_kolab.php} \ 11.425 + $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/config_local.php 11.426 +%endif 11.427 + 11.428 + # determine package ingredients and tag config files 11.429 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 11.430 + %{l_files_std} \ 11.431 + '%config %{l_prefix}/etc/squirrelmail/*' \ 11.432 + '%config %{l_prefix}/share/squirrelmail/prefs/*' \ 11.433 + '%config %{l_prefix}/share/squirrelmail/plugins/squirrelspell/sqspell_config.php' \ 11.434 +%if "%{with_plugins}" == "yes" 11.435 + '%config %{l_prefix}/share/squirrelmail/plugins/addgraphics/config.php' \ 11.436 + '%config %{l_prefix}/share/squirrelmail/plugins/avelsieve/config/config.php' \ 11.437 + '%config %{l_prefix}/share/squirrelmail/plugins/check_quota/config.php' \ 11.438 + '%config %{l_prefix}/share/squirrelmail/plugins/chg_sasl_passwd/config.php' \ 11.439 + '%config %{l_prefix}/share/squirrelmail/plugins/folder_sizes/folder_sizes.php' \ 11.440 + '%config %{l_prefix}/share/squirrelmail/plugins/gpg/gpg_local_prefs.txt' \ 11.441 + '%config %{l_prefix}/share/squirrelmail/plugins/ldifimport/config.php' \ 11.442 + '%config %{l_prefix}/share/squirrelmail/plugins/pupdate/config.php' \ 11.443 + '%config %{l_prefix}/share/squirrelmail/plugins/show_user_and_ip/config.php' \ 11.444 + '%config %{l_prefix}/share/squirrelmail/plugins/vkeyboard/config.php' \ 11.445 + '%config %{l_prefix}/share/squirrelmail/plugins/username/config.php' \ 11.446 +%endif 11.447 + '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/share/squirrelmail/prefs' \ 11.448 + '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/squirrelmail/spool/attach' \ 11.449 + '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/squirrelmail/log' 11.450 + 11.451 +%files -f files 11.452 + 11.453 +%clean 11.454 + rm -rf $RPM_BUILD_ROOT 11.455 + 11.456 +%preun 11.457 + # before erase, remove log files 11.458 + [ $1 -eq 0 ] || exit 0 11.459 + rm -f $RPM_INSTALL_PREFIX/var/squirrelmail/log/*.log >/dev/null 2>&1 || true 11.460 +