1.1 --- a/squirrelmail/squirrelmail.spec Tue Aug 28 18:29:45 2012 +0200 1.2 +++ b/squirrelmail/squirrelmail.spec Tue Aug 28 18:30:10 2012 +0200 1.3 @@ -22,14 +22,14 @@ 1.4 ## 1.5 1.6 # package version 1.7 -%define V_squirrelmail 1.4.21 1.8 +%define V_squirrelmail 1.4.22 1.9 %define V_locale 1.4.18-20090526 1.10 -%define V_plugin_compat 2.0.14-1.0 1.11 +%define V_plugin_compat 2.0.16-1.0 1.12 %define V_plugin_logger 2.3.1-1.2.7 1.13 %define V_plugin_addgraphics 2.3-1.0.3 1.14 -%define V_plugin_avelsieve 1.9.7 1.15 +%define V_plugin_avelsieve 1.9.9 1.16 +%define V_plugin_ldappwd 2.2-1.4.0 1.17 %define V_plugin_saslpwd 1.4.1-1.4 1.18 -%define V_plugin_ldappwd 2.2-1.4.0 1.19 %define V_plugin_checkquota 2.2-1.4.0 1.20 %define V_plugin_foldersize 1.5-1.4.0 1.21 %define V_plugin_gnupg 2.1 1.22 @@ -37,12 +37,12 @@ 1.23 %define V_plugin_update 0.7-1.4.2 1.24 %define V_plugin_userip 3.3-re-1.2.2 1.25 %define V_plugin_smallcal 0.8-1.2.3 1.26 -%define V_plugin_vkeyboard 0.9 1.27 +%define V_plugin_vkeyboard 0.9.1 1.28 %define V_plugin_username 2.3-1.0.0 1.29 %define V_plugin_loginnotes 1.2-1.4.0 1.30 -%define V_plugin_passforget 2.2-1.0.1 1.31 +%define V_plugin_passforget 2.3-1.0.1 1.32 %define V_plugin_captcha 1.2.3-1.2.9 1.33 -%define V_plugin_smime 0.7-1.1.1 1.34 +%define V_plugin_smime 1.0-1.1.1 1.35 %define V_plugin_debug 1.2-1.4 1.36 1.37 # package information 1.38 @@ -56,20 +56,20 @@ 1.39 Group: Mail 1.40 License: GPL 1.41 Version: %{V_squirrelmail} 1.42 -Release: 20110708 1.43 +Release: 20120800 1.44 1.45 # package options 1.46 %option with_plugins no 1.47 1.48 # list of sources 1.49 -Source0: http://switch.dl.sourceforge.net/squirrelmail/squirrelmail-%{V_squirrelmail}.tar.bz2 1.50 +Source0: http://switch.dl.sourceforge.net/squirrelmail/stable/%{V_squirrelmail}/squirrelmail-webmail-%{V_squirrelmail}.tar.bz2 1.51 Source1: http://switch.dl.sourceforge.net/squirrelmail/all_locales-%{V_locale}.tar.bz2 1.52 Source2: http://www.squirrelmail.org/plugins/compatibility-%{V_plugin_compat}.tar.gz 1.53 Source3: http://www.squirrelmail.org/plugins/squirrel_logger-%{V_plugin_logger}.tar.gz 1.54 Source4: http://www.squirrelmail.org/plugins/addgraphics-%{V_plugin_addgraphics}.tar.gz 1.55 Source5: http://www.squirrelmail.org/plugins/avelsieve-%{V_plugin_avelsieve}.tar.gz 1.56 -Source6: http://www.squirrelmail.org/plugins/chg_sasl_passwd-%{V_plugin_saslpwd}.tar.gz 1.57 -Source7: http://www.squirrelmail.org/plugins/change_ldappass-%{V_plugin_ldappwd}.tar.gz 1.58 +Source6: http://www.squirrelmail.org/plugins/change_ldappass-%{V_plugin_ldappwd}.tar.gz 1.59 +Source7: http://www.squirrelmail.org/plugins/chg_sasl_passwd-%{V_plugin_saslpwd}.tar.gz 1.60 Source8: http://www.squirrelmail.org/plugins/check_quota-%{V_plugin_checkquota}.tar.gz 1.61 Source9: http://www.squirrelmail.org/plugins/folder_sizes-%{V_plugin_foldersize}.tar.gz 1.62 Source10: http://www.squirrelmail.org/plugins/gpg-%{V_plugin_gnupg}.tar.gz 1.63 @@ -95,13 +95,9 @@ 1.64 Patch1: squirrelmail.patch.plugins 1.65 1.66 # build information 1.67 -Prefix: %{l_prefix} 1.68 -BuildRoot: %{l_buildroot} 1.69 -BuildPreReq: OpenPKG, openpkg >= 20060823 1.70 -PreReq: OpenPKG, openpkg >= 20060823 1.71 +BuildPreReq: OpenPKG, openpkg >= 20100101 1.72 +PreReq: OpenPKG, openpkg >= 20100101 1.73 PreReq: MTA, apache, apache-php, apache-php::with_xml = yes 1.74 -AutoReq: no 1.75 -AutoReqProv: no 1.76 1.77 %description 1.78 SquirrelMail is a standards based webmail package written in PHP. It 1.79 @@ -263,78 +259,69 @@ 1.80 } 1.81 1.82 %prep 1.83 - %setup -q -c -n squirrelmail 1.84 - %setup -q -D -T -a 1 -c -n squirrelmail/all_locales-%{V_locale} 1.85 - %setup -q -D -T -a 2 -n squirrelmail 1.86 - %setup -q -D -T -a 3 -n squirrelmail 1.87 - mv compatibility squirrelmail-%{V_squirrelmail}/plugins 1.88 - mv squirrel_logger squirrelmail-%{V_squirrelmail}/plugins 1.89 + %setup -q -n squirrelmail-webmail-%{V_squirrelmail} 1.90 + %setup -q -D -T -a 1 -c -n squirrelmail-webmail-%{V_squirrelmail}/all_locales-%{V_locale} 1.91 + %setup -q -D -T -a 2 -n squirrelmail-webmail-%{V_squirrelmail} 1.92 + %setup -q -D -T -a 3 -n squirrelmail-webmail-%{V_squirrelmail} 1.93 + mv compatibility squirrel_logger plugins/ 1.94 %if "%{with_plugins}" == "yes" 1.95 - %setup -q -D -T -a 4 -n squirrelmail 1.96 - %setup -q -D -T -a 5 -n squirrelmail 1.97 - %setup -q -D -T -a 6 -n squirrelmail 1.98 - %setup -q -D -T -a 7 -n squirrelmail 1.99 - %setup -q -D -T -a 8 -n squirrelmail 1.100 - %setup -q -D -T -a 9 -n squirrelmail 1.101 - %setup -q -D -T -a 10 -n squirrelmail 1.102 - %setup -q -D -T -a 11 -n squirrelmail 1.103 - %setup -q -D -T -a 12 -n squirrelmail 1.104 - %setup -q -D -T -a 13 -n squirrelmail 1.105 - %setup -q -D -T -a 14 -n squirrelmail 1.106 - %setup -q -D -T -a 15 -n squirrelmail 1.107 - %setup -q -D -T -a 16 -n squirrelmail 1.108 - %setup -q -D -T -a 17 -n squirrelmail 1.109 - %setup -q -D -T -a 18 -n squirrelmail 1.110 - %setup -q -D -T -a 19 -n squirrelmail 1.111 - %setup -q -D -T -a 20 -n squirrelmail 1.112 - %setup -q -D -T -a 21 -n squirrelmail 1.113 + %setup -q -D -T -a 4 -n squirrelmail-webmail-%{V_squirrelmail} 1.114 + %setup -q -D -T -a 5 -n squirrelmail-webmail-%{V_squirrelmail} 1.115 + %setup -q -D -T -a 6 -n squirrelmail-webmail-%{V_squirrelmail} 1.116 + %setup -q -D -T -a 7 -n squirrelmail-webmail-%{V_squirrelmail} 1.117 + %setup -q -D -T -a 8 -n squirrelmail-webmail-%{V_squirrelmail} 1.118 + %setup -q -D -T -a 9 -n squirrelmail-webmail-%{V_squirrelmail} 1.119 + %setup -q -D -T -a 10 -n squirrelmail-webmail-%{V_squirrelmail} 1.120 + %setup -q -D -T -a 11 -n squirrelmail-webmail-%{V_squirrelmail} 1.121 + %setup -q -D -T -a 12 -n squirrelmail-webmail-%{V_squirrelmail} 1.122 + %setup -q -D -T -a 13 -n squirrelmail-webmail-%{V_squirrelmail} 1.123 + %setup -q -D -T -a 14 -n squirrelmail-webmail-%{V_squirrelmail} 1.124 + %setup -q -D -T -a 15 -n squirrelmail-webmail-%{V_squirrelmail} 1.125 + %setup -q -D -T -a 16 -n squirrelmail-webmail-%{V_squirrelmail} 1.126 + %setup -q -D -T -a 17 -n squirrelmail-webmail-%{V_squirrelmail} 1.127 + %setup -q -D -T -a 18 -n squirrelmail-webmail-%{V_squirrelmail} 1.128 + %setup -q -D -T -a 19 -n squirrelmail-webmail-%{V_squirrelmail} 1.129 + %setup -q -D -T -a 20 -n squirrelmail-webmail-%{V_squirrelmail} 1.130 + %setup -q -D -T -a 21 -n squirrelmail-webmail-%{V_squirrelmail} 1.131 1.132 # move additional plugins where other are already placed 1.133 for plug in addgraphics avelsieve check_quota chg_sasl_passwd \ 1.134 change_ldappass folder_sizes gpg ldifimport pupdate \ 1.135 show_user_and_ip smallcal vkeyboard username \ 1.136 login_notes password_forget captcha smime debugger; do 1.137 - mv $plug squirrelmail-%{V_squirrelmail}/plugins 1.138 + mv $plug plugins/ 1.139 done 1.140 %endif 1.141 1.142 # clean up login screen of distractions 1.143 - ( cd squirrelmail-%{V_squirrelmail} 1.144 - %patch -p0 1.145 - ) || exit $? 1.146 + %patch -p0 1.147 1.148 # rearrange documentation and remove archive script 1.149 - ( cd squirrelmail-%{V_squirrelmail} 1.150 - mv AUTHORS ChangeLog COPYING INSTALL README UPGRADE doc/ 1.151 - mv ReleaseNotes doc/ReleaseNotes.txt 1.152 - mv themes/README.themes doc/ 1.153 - for fil in `find plugins/ -name "README*" -o -name "Readme*" \ 1.154 - -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do 1.155 - %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil` 1.156 - mv -f $fil $_ 1.157 - done 1.158 - rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php 1.159 - mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell 1.160 - rm -rf plugins/squirrelspell/doc 1.161 + mv themes/README.themes locale/README.locales doc/ 1.162 + for fil in `find plugins/ -name "README*" -o -name "Readme*" \ 1.163 + -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do 1.164 + %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil` 1.165 + mv -f $fil $_ 1.166 + done 1.167 + rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php 1.168 + mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell 1.169 + rm -rf plugins/squirrelspell/doc 1.170 %if "%{with_plugins}" == "yes" 1.171 - mv plugins/pupdate/docs/* doc/plugins/pupdate 1.172 - rm -rf plugins/pupdate/docs 1.173 + mv plugins/pupdate/docs/* doc/plugins/pupdate 1.174 + rm -rf plugins/pupdate/docs 1.175 %endif 1.176 1.177 - # postadjustment cosmetics 1.178 - %{l_shtool} subst \ 1.179 - -e 's;\(\$color\[4\], .border="0" width=\)"350";\1"250";1' \ 1.180 - src/login.php 1.181 + # postadjustment cosmetics 1.182 + %{l_shtool} subst \ 1.183 + -e 's;\(\$color\[4\], .border="0" width=\)"350";\1"250";1' \ 1.184 + src/login.php 1.185 1.186 - # set default prefs 1.187 - cat %{SOURCE defprefs.txt} >>data/default_pref 1.188 - ) || exit $? 1.189 + # set default prefs 1.190 + cat %{SOURCE defprefs.txt} >>data/default_pref 1.191 1.192 %build 1.193 1.194 %install 1.195 - rm -rf $RPM_BUILD_ROOT 1.196 - 1.197 # create directory structure 1.198 %{l_shtool} mkdir -f -p -m 755 \ 1.199 $RPM_BUILD_ROOT%{l_prefix}/bin \ 1.200 @@ -349,126 +336,123 @@ 1.201 ) || exit $? 1.202 1.203 # install program 1.204 - ( cd squirrelmail-%{V_squirrelmail} 1.205 + # install default_pref 1.206 + %{l_shtool} install -c -m 644 \ 1.207 + data/default_pref \ 1.208 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs/ 1.209 1.210 - # install default_pref 1.211 - %{l_shtool} install -c -m 644 \ 1.212 - data/default_pref \ 1.213 - $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs/ 1.214 + # create initial administrator list 1.215 + echo %{l_musr} >>$RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/admins 1.216 1.217 - # create initial administrator list 1.218 - echo %{l_musr} >>$RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/admins 1.219 + # copy over most functional directories, a lot of stuff 1.220 + for dir in class doc functions include plugins src themes; do 1.221 + cp -rpf $dir $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ 1.222 + done 1.223 + cp -rpf images/* $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 1.224 + cp -pf locale/timezones.cfg $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/locale/ 1.225 1.226 - # copy over most functional directories, a lot of stuff 1.227 - for dir in class doc functions include plugins src themes; do 1.228 - cp -rpf $dir $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ 1.229 - done 1.230 - cp -rpf images/* $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 1.231 - cp -pf locale/timezones.cfg $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/locale/ 1.232 - 1.233 - # install main config files 1.234 - l_fqdm=`%{l_shtool} echo -e %h%d` 1.235 - %{l_shtool} install -c -m 644 %{l_value -s -a} \ 1.236 - -e 's;config/\(config_local.php\);\1;g' \ 1.237 - -e "s;@l_fqdm@;${l_fqdm};g" \ 1.238 - %{SOURCE config.php} \ 1.239 - config/config_default.php \ 1.240 - config/config_local.php \ 1.241 - $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/ 1.242 + # install main config files 1.243 + l_fqdm=`%{l_shtool} echo -e %h%d` 1.244 + %{l_shtool} install -c -m 644 %{l_value -s -a} \ 1.245 + -e 's;config/\(config_local.php\);\1;g' \ 1.246 + -e "s;@l_fqdm@;${l_fqdm};g" \ 1.247 + %{SOURCE config.php} \ 1.248 + config/config_default.php \ 1.249 + config/config_local.php \ 1.250 + $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/ 1.251 %if "%{with_plugins}" == "yes" 1.252 - ( cd $RPM_BUILD_ROOT%{l_prefix} 1.253 - %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins} 1.254 - rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/functions/*.orig 1.255 - rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/src/*.orig 1.256 - ) || exit $? 1.257 + ( cd $RPM_BUILD_ROOT%{l_prefix} 1.258 + %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins} 1.259 + rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/functions/*.orig 1.260 + rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/src/*.orig 1.261 + ) || exit $? 1.262 %endif 1.263 1.264 - # install plugin config files 1.265 - ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins 1.266 + # install plugin config files 1.267 + ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins 1.268 %if "%{with_plugins}" == "yes" 1.269 - cp -pf check_quota/config.sample.php check_quota/config.php 1.270 - cp -pf chg_sasl_passwd/config.php.sample chg_sasl_passwd/config.php 1.271 - cp -pf show_user_and_ip/config.php.sample show_user_and_ip/config.php 1.272 - %{l_shtool} install -c -m 644 \ 1.273 - -e "s;sm_logo\.png;opkg_small.png;" \ 1.274 - -e "s;SquirrelMail Logo;OpenPKG Logo;" \ 1.275 - -e "s;www\.squirrelmail\.org;www.openpkg.org;" \ 1.276 - -e "s;\/\/\(\$image_width.*\) = 308;\1 = 201;" \ 1.277 - -e "s;\/\/\(\$image_height.*\) = 111;\1 = 62;" \ 1.278 - addgraphics/config.php.typical.one.domain \ 1.279 - addgraphics/config.php 1.280 - %{l_shtool} install -c -m 644 \ 1.281 - -e 's/^\(\$sieve_preferred_sasl_mech =\).*/\1 "PLAIN LOGIN CRAM-MD5 DIGEST-MD5";/' \ 1.282 - -e 's/^\(\$avelsieve_oldcyrus =\).*/\1 false;/' \ 1.283 - -e 's/^\(\$startitems =\).*/\1 4;/' \ 1.284 - avelsieve/config/config_sample.php \ 1.285 - avelsieve/config/config.php 1.286 - %{l_shtool} install -c -m 644 \ 1.287 - change_ldappass/config_sample.php \ 1.288 - change_ldappass/config.php 1.289 - %{l_shtool} install -c -m 644 \ 1.290 - login_notes/config.sample.php \ 1.291 - login_notes/config.php 1.292 - %{l_shtool} install -c -m 644 \ 1.293 - password_forget/config_example.php \ 1.294 - password_forget/config.php 1.295 - %{l_shtool} install -c -m 644 \ 1.296 - -e 's;^//\( *.CAPTCHA.,\);\1;g' \ 1.297 - -e 's,\(\$sl_dateformat *=\).*\(.\);$,\1 \2d.m.Y H:i:s\2;,g' \ 1.298 - -e 's,\(\$sl_logfile *=\).*\(.\);$,\1 \2%{l_prefix}/var/squirrelmail/log/squirrelmail.log\2;,g' \ 1.299 - squirrel_logger/config_example.php \ 1.300 - squirrel_logger/config.php 1.301 - %{l_shtool} install -c -m 644 \ 1.302 - -e 's/\(\$log_CAPTCHA_events *=\).*/\1 1;/' \ 1.303 - -e 's,\(\$captcha_backend *=\).*\(.\);$,\1 \2recaptcha\2;,' \ 1.304 - captcha/config_example.php \ 1.305 - captcha/config.php 1.306 - for captname in \ 1.307 - b2evo captcha_php csi freecap hec hn_captcha opencaptcha \ 1.308 - phpcaptcha quickcaptcha quickform recaptcha textcaptcha 1.309 - do 1.310 - mv \ 1.311 - captcha/backends/${captname}/${captname}_config_example.php \ 1.312 - captcha/backends/${captname}/${captname}_config.php 1.313 - done 1.314 - %{l_shtool} install -c -m 644 \ 1.315 - smime/config_example.php \ 1.316 - smime/config.php 1.317 - %{l_shtool} subst \ 1.318 - -e 's;\(path_to_gpg=\)/usr/bin/gpg.*;\1%{l_prefix}/bin/gpg;' \ 1.319 - gpg/gpg_local_prefs.txt 1.320 - %{l_shtool} install -c -m 644 \ 1.321 - -e 's;\(adminusername = "\)[^"]*;\1%{l_musr};' \ 1.322 - -e 's;corehide = 1;corehide = 0;' \ 1.323 - pupdate/config.php.sample \ 1.324 - pupdate/config.php 1.325 - %{l_shtool} install -c -m 644 \ 1.326 - -e "s;\(\$vkeyboard_msgsize.*\)'medium';\1'x-small';" \ 1.327 - -e "s;\(\$vkeyboard_layout.*\)'us_english';\1'portuguese_abnt2';" \ 1.328 - -e "s;\(\$vkeyboard_height.*\)'250';\1'270';" \ 1.329 - vkeyboard/config.php.sample \ 1.330 - vkeyboard/config.php 1.331 - cp -pf username/config.php.sample username/config.php 1.332 - %{l_shtool} install -c -m 644 \ 1.333 - %{SOURCE opkg_small.png} \ 1.334 - $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 1.335 + cp -pf check_quota/config.sample.php check_quota/config.php 1.336 + cp -pf chg_sasl_passwd/config.php.sample chg_sasl_passwd/config.php 1.337 + cp -pf show_user_and_ip/config.php.sample show_user_and_ip/config.php 1.338 + %{l_shtool} install -c -m 644 \ 1.339 + -e "s;sm_logo\.png;opkg_small.png;" \ 1.340 + -e "s;SquirrelMail Logo;OpenPKG Logo;" \ 1.341 + -e "s;www\.squirrelmail\.org;www.openpkg.org;" \ 1.342 + -e "s;\/\/\(\$image_width.*\) = 308;\1 = 201;" \ 1.343 + -e "s;\/\/\(\$image_height.*\) = 111;\1 = 62;" \ 1.344 + addgraphics/config.php.typical.one.domain \ 1.345 + addgraphics/config.php 1.346 + %{l_shtool} install -c -m 644 \ 1.347 + -e 's/^\(\$sieve_preferred_sasl_mech =\).*/\1 "PLAIN LOGIN CRAM-MD5 DIGEST-MD5";/' \ 1.348 + -e 's/^\(\$avelsieve_oldcyrus =\).*/\1 false;/' \ 1.349 + -e 's/^\(\$startitems =\).*/\1 4;/' \ 1.350 + avelsieve/config/config_sample.php \ 1.351 + avelsieve/config/config.php 1.352 + %{l_shtool} install -c -m 644 \ 1.353 + change_ldappass/config_sample.php \ 1.354 + change_ldappass/config.php 1.355 + %{l_shtool} install -c -m 644 \ 1.356 + login_notes/config.sample.php \ 1.357 + login_notes/config.php 1.358 + %{l_shtool} install -c -m 644 \ 1.359 + password_forget/config_example.php \ 1.360 + password_forget/config.php 1.361 + %{l_shtool} install -c -m 644 \ 1.362 + -e 's;^//\( *.CAPTCHA.,\);\1;g' \ 1.363 + -e 's,\(\$sl_dateformat *=\).*\(.\);$,\1 \2d.m.Y H:i:s\2;,g' \ 1.364 + -e 's,\(\$sl_logfile *=\).*\(.\);$,\1 \2%{l_prefix}/var/squirrelmail/log/squirrelmail.log\2;,g' \ 1.365 + squirrel_logger/config_example.php \ 1.366 + squirrel_logger/config.php 1.367 + %{l_shtool} install -c -m 644 \ 1.368 + -e 's/\(\$log_CAPTCHA_events *=\).*/\1 1;/' \ 1.369 + -e 's,\(\$captcha_backend *=\).*\(.\);$,\1 \2recaptcha\2;,' \ 1.370 + captcha/config_example.php \ 1.371 + captcha/config.php 1.372 + for captname in \ 1.373 + b2evo captcha_php csi freecap hec hn_captcha opencaptcha \ 1.374 + phpcaptcha quickcaptcha quickform recaptcha textcaptcha 1.375 + do 1.376 + mv \ 1.377 + captcha/backends/${captname}/${captname}_config_example.php \ 1.378 + captcha/backends/${captname}/${captname}_config.php 1.379 + done 1.380 + %{l_shtool} install -c -m 644 \ 1.381 + smime/config_example.php \ 1.382 + smime/config.php 1.383 + %{l_shtool} subst \ 1.384 + -e 's;\(path_to_gpg=\)/usr/bin/gpg.*;\1%{l_prefix}/bin/gpg;' \ 1.385 + gpg/gpg_local_prefs.txt 1.386 + %{l_shtool} install -c -m 644 \ 1.387 + -e 's;\(adminusername = "\)[^"]*;\1%{l_musr};' \ 1.388 + -e 's;corehide = 1;corehide = 0;' \ 1.389 + pupdate/config.php.sample \ 1.390 + pupdate/config.php 1.391 + %{l_shtool} install -c -m 644 \ 1.392 + -e "s;\(\$vkeyboard_msgsize.*\)'medium';\1'x-small';" \ 1.393 + -e "s;\(\$vkeyboard_layout.*\)'us_english';\1'portuguese_abnt2';" \ 1.394 + -e "s;\(\$vkeyboard_height.*\)'250';\1'270';" \ 1.395 + vkeyboard/config.php.sample \ 1.396 + vkeyboard/config.php 1.397 + cp -pf username/config.php.sample username/config.php 1.398 + %{l_shtool} install -c -m 644 \ 1.399 + %{SOURCE opkg_small.png} \ 1.400 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 1.401 %endif 1.402 - ) || exit $? 1.403 + ) || exit $? 1.404 1.405 - # install squirrelmail configuration perl script 1.406 - %{l_shtool} install -c -m 755 \ 1.407 - -e 's;chdir($dir);chdir("%{l_prefix}/etc/squirrelmail");g' \ 1.408 - -e 's;\.\./plugins;%{l_prefix}/share/squirrelmail/plugins;g' \ 1.409 - -e 's;\.\./themes;%{l_prefix}/share/squirrelmail/themes;g' \ 1.410 - -e 's;config/config_local.php;config_local.php;g' \ 1.411 - config/conf.pl \ 1.412 - $RPM_BUILD_ROOT%{l_prefix}/bin/squirrelconf 1.413 + # install squirrelmail configuration perl script 1.414 + %{l_shtool} install -c -m 755 \ 1.415 + -e 's;chdir($dir);chdir("%{l_prefix}/etc/squirrelmail");g' \ 1.416 + -e 's;\.\./plugins;%{l_prefix}/share/squirrelmail/plugins;g' \ 1.417 + -e 's;\.\./themes;%{l_prefix}/share/squirrelmail/themes;g' \ 1.418 + -e 's;config/config_local.php;config_local.php;g' \ 1.419 + config/conf.pl \ 1.420 + $RPM_BUILD_ROOT%{l_prefix}/bin/squirrelconf 1.421 1.422 - # use our own logo, a squirrel next to a OpenPKG package 1.423 - %{l_shtool} install -c -m 644 \ 1.424 - %{SOURCE opkg_large.png} \ 1.425 - $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 1.426 - ) || exit $? 1.427 + # use our own logo, a squirrel next to a OpenPKG package 1.428 + %{l_shtool} install -c -m 644 \ 1.429 + %{SOURCE opkg_large.png} \ 1.430 + $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ 1.431 1.432 # install runcommand script 1.433 %{l_shtool} mkdir -f -p -m 755 \ 1.434 @@ -547,7 +531,6 @@ 1.435 %files -f files 1.436 1.437 %clean 1.438 - rm -rf $RPM_BUILD_ROOT 1.439 1.440 %preun 1.441 # before erase, remove log files