20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
21 ## SUCH DAMAGE. |
21 ## SUCH DAMAGE. |
22 ## |
22 ## |
23 |
23 |
24 # package version |
24 # package version |
25 %define V_squirrelmail 1.4.21 |
25 %define V_squirrelmail 1.4.22 |
26 %define V_locale 1.4.18-20090526 |
26 %define V_locale 1.4.18-20090526 |
27 %define V_plugin_compat 2.0.14-1.0 |
27 %define V_plugin_compat 2.0.16-1.0 |
28 %define V_plugin_logger 2.3.1-1.2.7 |
28 %define V_plugin_logger 2.3.1-1.2.7 |
29 %define V_plugin_addgraphics 2.3-1.0.3 |
29 %define V_plugin_addgraphics 2.3-1.0.3 |
30 %define V_plugin_avelsieve 1.9.7 |
30 %define V_plugin_avelsieve 1.9.9 |
|
31 %define V_plugin_ldappwd 2.2-1.4.0 |
31 %define V_plugin_saslpwd 1.4.1-1.4 |
32 %define V_plugin_saslpwd 1.4.1-1.4 |
32 %define V_plugin_ldappwd 2.2-1.4.0 |
|
33 %define V_plugin_checkquota 2.2-1.4.0 |
33 %define V_plugin_checkquota 2.2-1.4.0 |
34 %define V_plugin_foldersize 1.5-1.4.0 |
34 %define V_plugin_foldersize 1.5-1.4.0 |
35 %define V_plugin_gnupg 2.1 |
35 %define V_plugin_gnupg 2.1 |
36 %define V_plugin_ldif 1.4-1.2.x |
36 %define V_plugin_ldif 1.4-1.2.x |
37 %define V_plugin_update 0.7-1.4.2 |
37 %define V_plugin_update 0.7-1.4.2 |
38 %define V_plugin_userip 3.3-re-1.2.2 |
38 %define V_plugin_userip 3.3-re-1.2.2 |
39 %define V_plugin_smallcal 0.8-1.2.3 |
39 %define V_plugin_smallcal 0.8-1.2.3 |
40 %define V_plugin_vkeyboard 0.9 |
40 %define V_plugin_vkeyboard 0.9.1 |
41 %define V_plugin_username 2.3-1.0.0 |
41 %define V_plugin_username 2.3-1.0.0 |
42 %define V_plugin_loginnotes 1.2-1.4.0 |
42 %define V_plugin_loginnotes 1.2-1.4.0 |
43 %define V_plugin_passforget 2.2-1.0.1 |
43 %define V_plugin_passforget 2.3-1.0.1 |
44 %define V_plugin_captcha 1.2.3-1.2.9 |
44 %define V_plugin_captcha 1.2.3-1.2.9 |
45 %define V_plugin_smime 0.7-1.1.1 |
45 %define V_plugin_smime 1.0-1.1.1 |
46 %define V_plugin_debug 1.2-1.4 |
46 %define V_plugin_debug 1.2-1.4 |
47 |
47 |
48 # package information |
48 # package information |
49 Name: squirrelmail |
49 Name: squirrelmail |
50 Summary: SquirrelMail Webmail Client |
50 Summary: SquirrelMail Webmail Client |
261 url = http://www.squirrelmail.org/plugins_category.php?category_id=all |
257 url = http://www.squirrelmail.org/plugins_category.php?category_id=all |
262 regex = debugger-(__VER__)\.tar\.gz |
258 regex = debugger-(__VER__)\.tar\.gz |
263 } |
259 } |
264 |
260 |
265 %prep |
261 %prep |
266 %setup -q -c -n squirrelmail |
262 %setup -q -n squirrelmail-webmail-%{V_squirrelmail} |
267 %setup -q -D -T -a 1 -c -n squirrelmail/all_locales-%{V_locale} |
263 %setup -q -D -T -a 1 -c -n squirrelmail-webmail-%{V_squirrelmail}/all_locales-%{V_locale} |
268 %setup -q -D -T -a 2 -n squirrelmail |
264 %setup -q -D -T -a 2 -n squirrelmail-webmail-%{V_squirrelmail} |
269 %setup -q -D -T -a 3 -n squirrelmail |
265 %setup -q -D -T -a 3 -n squirrelmail-webmail-%{V_squirrelmail} |
270 mv compatibility squirrelmail-%{V_squirrelmail}/plugins |
266 mv compatibility squirrel_logger plugins/ |
271 mv squirrel_logger squirrelmail-%{V_squirrelmail}/plugins |
|
272 %if "%{with_plugins}" == "yes" |
267 %if "%{with_plugins}" == "yes" |
273 %setup -q -D -T -a 4 -n squirrelmail |
268 %setup -q -D -T -a 4 -n squirrelmail-webmail-%{V_squirrelmail} |
274 %setup -q -D -T -a 5 -n squirrelmail |
269 %setup -q -D -T -a 5 -n squirrelmail-webmail-%{V_squirrelmail} |
275 %setup -q -D -T -a 6 -n squirrelmail |
270 %setup -q -D -T -a 6 -n squirrelmail-webmail-%{V_squirrelmail} |
276 %setup -q -D -T -a 7 -n squirrelmail |
271 %setup -q -D -T -a 7 -n squirrelmail-webmail-%{V_squirrelmail} |
277 %setup -q -D -T -a 8 -n squirrelmail |
272 %setup -q -D -T -a 8 -n squirrelmail-webmail-%{V_squirrelmail} |
278 %setup -q -D -T -a 9 -n squirrelmail |
273 %setup -q -D -T -a 9 -n squirrelmail-webmail-%{V_squirrelmail} |
279 %setup -q -D -T -a 10 -n squirrelmail |
274 %setup -q -D -T -a 10 -n squirrelmail-webmail-%{V_squirrelmail} |
280 %setup -q -D -T -a 11 -n squirrelmail |
275 %setup -q -D -T -a 11 -n squirrelmail-webmail-%{V_squirrelmail} |
281 %setup -q -D -T -a 12 -n squirrelmail |
276 %setup -q -D -T -a 12 -n squirrelmail-webmail-%{V_squirrelmail} |
282 %setup -q -D -T -a 13 -n squirrelmail |
277 %setup -q -D -T -a 13 -n squirrelmail-webmail-%{V_squirrelmail} |
283 %setup -q -D -T -a 14 -n squirrelmail |
278 %setup -q -D -T -a 14 -n squirrelmail-webmail-%{V_squirrelmail} |
284 %setup -q -D -T -a 15 -n squirrelmail |
279 %setup -q -D -T -a 15 -n squirrelmail-webmail-%{V_squirrelmail} |
285 %setup -q -D -T -a 16 -n squirrelmail |
280 %setup -q -D -T -a 16 -n squirrelmail-webmail-%{V_squirrelmail} |
286 %setup -q -D -T -a 17 -n squirrelmail |
281 %setup -q -D -T -a 17 -n squirrelmail-webmail-%{V_squirrelmail} |
287 %setup -q -D -T -a 18 -n squirrelmail |
282 %setup -q -D -T -a 18 -n squirrelmail-webmail-%{V_squirrelmail} |
288 %setup -q -D -T -a 19 -n squirrelmail |
283 %setup -q -D -T -a 19 -n squirrelmail-webmail-%{V_squirrelmail} |
289 %setup -q -D -T -a 20 -n squirrelmail |
284 %setup -q -D -T -a 20 -n squirrelmail-webmail-%{V_squirrelmail} |
290 %setup -q -D -T -a 21 -n squirrelmail |
285 %setup -q -D -T -a 21 -n squirrelmail-webmail-%{V_squirrelmail} |
291 |
286 |
292 # move additional plugins where other are already placed |
287 # move additional plugins where other are already placed |
293 for plug in addgraphics avelsieve check_quota chg_sasl_passwd \ |
288 for plug in addgraphics avelsieve check_quota chg_sasl_passwd \ |
294 change_ldappass folder_sizes gpg ldifimport pupdate \ |
289 change_ldappass folder_sizes gpg ldifimport pupdate \ |
295 show_user_and_ip smallcal vkeyboard username \ |
290 show_user_and_ip smallcal vkeyboard username \ |
296 login_notes password_forget captcha smime debugger; do |
291 login_notes password_forget captcha smime debugger; do |
297 mv $plug squirrelmail-%{V_squirrelmail}/plugins |
292 mv $plug plugins/ |
298 done |
293 done |
299 %endif |
294 %endif |
300 |
295 |
301 # clean up login screen of distractions |
296 # clean up login screen of distractions |
302 ( cd squirrelmail-%{V_squirrelmail} |
297 %patch -p0 |
303 %patch -p0 |
|
304 ) || exit $? |
|
305 |
298 |
306 # rearrange documentation and remove archive script |
299 # rearrange documentation and remove archive script |
307 ( cd squirrelmail-%{V_squirrelmail} |
300 mv themes/README.themes locale/README.locales doc/ |
308 mv AUTHORS ChangeLog COPYING INSTALL README UPGRADE doc/ |
301 for fil in `find plugins/ -name "README*" -o -name "Readme*" \ |
309 mv ReleaseNotes doc/ReleaseNotes.txt |
302 -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do |
310 mv themes/README.themes doc/ |
303 %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil` |
311 for fil in `find plugins/ -name "README*" -o -name "Readme*" \ |
304 mv -f $fil $_ |
312 -o -name "INSTALL*" -o -name CHANGES -o -name HISTORY`; do |
305 done |
313 %{l_shtool} mkdir -f -p -m 755 doc/`dirname $fil` |
306 rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php |
314 mv -f $fil $_ |
307 mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell |
315 done |
308 rm -rf plugins/squirrelspell/doc |
316 rm -rf doc/plugins/squirrelspell/doc doc/plugins/squirrelspell/index.php |
|
317 mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell |
|
318 rm -rf plugins/squirrelspell/doc |
|
319 %if "%{with_plugins}" == "yes" |
309 %if "%{with_plugins}" == "yes" |
320 mv plugins/pupdate/docs/* doc/plugins/pupdate |
310 mv plugins/pupdate/docs/* doc/plugins/pupdate |
321 rm -rf plugins/pupdate/docs |
311 rm -rf plugins/pupdate/docs |
322 %endif |
312 %endif |
323 |
313 |
324 # postadjustment cosmetics |
314 # postadjustment cosmetics |
325 %{l_shtool} subst \ |
315 %{l_shtool} subst \ |
326 -e 's;\(\$color\[4\], .border="0" width=\)"350";\1"250";1' \ |
316 -e 's;\(\$color\[4\], .border="0" width=\)"350";\1"250";1' \ |
327 src/login.php |
317 src/login.php |
328 |
318 |
329 # set default prefs |
319 # set default prefs |
330 cat %{SOURCE defprefs.txt} >>data/default_pref |
320 cat %{SOURCE defprefs.txt} >>data/default_pref |
331 ) || exit $? |
|
332 |
321 |
333 %build |
322 %build |
334 |
323 |
335 %install |
324 %install |
336 rm -rf $RPM_BUILD_ROOT |
|
337 |
|
338 # create directory structure |
325 # create directory structure |
339 %{l_shtool} mkdir -f -p -m 755 \ |
326 %{l_shtool} mkdir -f -p -m 755 \ |
340 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
327 $RPM_BUILD_ROOT%{l_prefix}/bin \ |
341 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail \ |
328 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail \ |
342 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs \ |
329 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs \ |
347 ( cd all_locales-%{V_locale} |
334 ( cd all_locales-%{V_locale} |
348 cp -rpf help images locale $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ |
335 cp -rpf help images locale $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ |
349 ) || exit $? |
336 ) || exit $? |
350 |
337 |
351 # install program |
338 # install program |
352 ( cd squirrelmail-%{V_squirrelmail} |
339 # install default_pref |
353 |
340 %{l_shtool} install -c -m 644 \ |
354 # install default_pref |
341 data/default_pref \ |
355 %{l_shtool} install -c -m 644 \ |
342 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs/ |
356 data/default_pref \ |
343 |
357 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/prefs/ |
344 # create initial administrator list |
358 |
345 echo %{l_musr} >>$RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/admins |
359 # create initial administrator list |
346 |
360 echo %{l_musr} >>$RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/admins |
347 # copy over most functional directories, a lot of stuff |
361 |
348 for dir in class doc functions include plugins src themes; do |
362 # copy over most functional directories, a lot of stuff |
349 cp -rpf $dir $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ |
363 for dir in class doc functions include plugins src themes; do |
350 done |
364 cp -rpf $dir $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/ |
351 cp -rpf images/* $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ |
|
352 cp -pf locale/timezones.cfg $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/locale/ |
|
353 |
|
354 # install main config files |
|
355 l_fqdm=`%{l_shtool} echo -e %h%d` |
|
356 %{l_shtool} install -c -m 644 %{l_value -s -a} \ |
|
357 -e 's;config/\(config_local.php\);\1;g' \ |
|
358 -e "s;@l_fqdm@;${l_fqdm};g" \ |
|
359 %{SOURCE config.php} \ |
|
360 config/config_default.php \ |
|
361 config/config_local.php \ |
|
362 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/ |
|
363 %if "%{with_plugins}" == "yes" |
|
364 ( cd $RPM_BUILD_ROOT%{l_prefix} |
|
365 %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins} |
|
366 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/functions/*.orig |
|
367 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/src/*.orig |
|
368 ) || exit $? |
|
369 %endif |
|
370 |
|
371 # install plugin config files |
|
372 ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins |
|
373 %if "%{with_plugins}" == "yes" |
|
374 cp -pf check_quota/config.sample.php check_quota/config.php |
|
375 cp -pf chg_sasl_passwd/config.php.sample chg_sasl_passwd/config.php |
|
376 cp -pf show_user_and_ip/config.php.sample show_user_and_ip/config.php |
|
377 %{l_shtool} install -c -m 644 \ |
|
378 -e "s;sm_logo\.png;opkg_small.png;" \ |
|
379 -e "s;SquirrelMail Logo;OpenPKG Logo;" \ |
|
380 -e "s;www\.squirrelmail\.org;www.openpkg.org;" \ |
|
381 -e "s;\/\/\(\$image_width.*\) = 308;\1 = 201;" \ |
|
382 -e "s;\/\/\(\$image_height.*\) = 111;\1 = 62;" \ |
|
383 addgraphics/config.php.typical.one.domain \ |
|
384 addgraphics/config.php |
|
385 %{l_shtool} install -c -m 644 \ |
|
386 -e 's/^\(\$sieve_preferred_sasl_mech =\).*/\1 "PLAIN LOGIN CRAM-MD5 DIGEST-MD5";/' \ |
|
387 -e 's/^\(\$avelsieve_oldcyrus =\).*/\1 false;/' \ |
|
388 -e 's/^\(\$startitems =\).*/\1 4;/' \ |
|
389 avelsieve/config/config_sample.php \ |
|
390 avelsieve/config/config.php |
|
391 %{l_shtool} install -c -m 644 \ |
|
392 change_ldappass/config_sample.php \ |
|
393 change_ldappass/config.php |
|
394 %{l_shtool} install -c -m 644 \ |
|
395 login_notes/config.sample.php \ |
|
396 login_notes/config.php |
|
397 %{l_shtool} install -c -m 644 \ |
|
398 password_forget/config_example.php \ |
|
399 password_forget/config.php |
|
400 %{l_shtool} install -c -m 644 \ |
|
401 -e 's;^//\( *.CAPTCHA.,\);\1;g' \ |
|
402 -e 's,\(\$sl_dateformat *=\).*\(.\);$,\1 \2d.m.Y H:i:s\2;,g' \ |
|
403 -e 's,\(\$sl_logfile *=\).*\(.\);$,\1 \2%{l_prefix}/var/squirrelmail/log/squirrelmail.log\2;,g' \ |
|
404 squirrel_logger/config_example.php \ |
|
405 squirrel_logger/config.php |
|
406 %{l_shtool} install -c -m 644 \ |
|
407 -e 's/\(\$log_CAPTCHA_events *=\).*/\1 1;/' \ |
|
408 -e 's,\(\$captcha_backend *=\).*\(.\);$,\1 \2recaptcha\2;,' \ |
|
409 captcha/config_example.php \ |
|
410 captcha/config.php |
|
411 for captname in \ |
|
412 b2evo captcha_php csi freecap hec hn_captcha opencaptcha \ |
|
413 phpcaptcha quickcaptcha quickform recaptcha textcaptcha |
|
414 do |
|
415 mv \ |
|
416 captcha/backends/${captname}/${captname}_config_example.php \ |
|
417 captcha/backends/${captname}/${captname}_config.php |
365 done |
418 done |
366 cp -rpf images/* $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ |
419 %{l_shtool} install -c -m 644 \ |
367 cp -pf locale/timezones.cfg $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/locale/ |
420 smime/config_example.php \ |
368 |
421 smime/config.php |
369 # install main config files |
422 %{l_shtool} subst \ |
370 l_fqdm=`%{l_shtool} echo -e %h%d` |
423 -e 's;\(path_to_gpg=\)/usr/bin/gpg.*;\1%{l_prefix}/bin/gpg;' \ |
371 %{l_shtool} install -c -m 644 %{l_value -s -a} \ |
424 gpg/gpg_local_prefs.txt |
372 -e 's;config/\(config_local.php\);\1;g' \ |
425 %{l_shtool} install -c -m 644 \ |
373 -e "s;@l_fqdm@;${l_fqdm};g" \ |
426 -e 's;\(adminusername = "\)[^"]*;\1%{l_musr};' \ |
374 %{SOURCE config.php} \ |
427 -e 's;corehide = 1;corehide = 0;' \ |
375 config/config_default.php \ |
428 pupdate/config.php.sample \ |
376 config/config_local.php \ |
429 pupdate/config.php |
377 $RPM_BUILD_ROOT%{l_prefix}/etc/squirrelmail/ |
430 %{l_shtool} install -c -m 644 \ |
378 %if "%{with_plugins}" == "yes" |
431 -e "s;\(\$vkeyboard_msgsize.*\)'medium';\1'x-small';" \ |
379 ( cd $RPM_BUILD_ROOT%{l_prefix} |
432 -e "s;\(\$vkeyboard_layout.*\)'us_english';\1'portuguese_abnt2';" \ |
380 %{l_patch} -p0 <%{PATCH squirrelmail.patch.plugins} |
433 -e "s;\(\$vkeyboard_height.*\)'250';\1'270';" \ |
381 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/functions/*.orig |
434 vkeyboard/config.php.sample \ |
382 rm -f $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/src/*.orig |
435 vkeyboard/config.php |
383 ) || exit $? |
436 cp -pf username/config.php.sample username/config.php |
|
437 %{l_shtool} install -c -m 644 \ |
|
438 %{SOURCE opkg_small.png} \ |
|
439 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ |
384 %endif |
440 %endif |
385 |
|
386 # install plugin config files |
|
387 ( cd $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/plugins |
|
388 %if "%{with_plugins}" == "yes" |
|
389 cp -pf check_quota/config.sample.php check_quota/config.php |
|
390 cp -pf chg_sasl_passwd/config.php.sample chg_sasl_passwd/config.php |
|
391 cp -pf show_user_and_ip/config.php.sample show_user_and_ip/config.php |
|
392 %{l_shtool} install -c -m 644 \ |
|
393 -e "s;sm_logo\.png;opkg_small.png;" \ |
|
394 -e "s;SquirrelMail Logo;OpenPKG Logo;" \ |
|
395 -e "s;www\.squirrelmail\.org;www.openpkg.org;" \ |
|
396 -e "s;\/\/\(\$image_width.*\) = 308;\1 = 201;" \ |
|
397 -e "s;\/\/\(\$image_height.*\) = 111;\1 = 62;" \ |
|
398 addgraphics/config.php.typical.one.domain \ |
|
399 addgraphics/config.php |
|
400 %{l_shtool} install -c -m 644 \ |
|
401 -e 's/^\(\$sieve_preferred_sasl_mech =\).*/\1 "PLAIN LOGIN CRAM-MD5 DIGEST-MD5";/' \ |
|
402 -e 's/^\(\$avelsieve_oldcyrus =\).*/\1 false;/' \ |
|
403 -e 's/^\(\$startitems =\).*/\1 4;/' \ |
|
404 avelsieve/config/config_sample.php \ |
|
405 avelsieve/config/config.php |
|
406 %{l_shtool} install -c -m 644 \ |
|
407 change_ldappass/config_sample.php \ |
|
408 change_ldappass/config.php |
|
409 %{l_shtool} install -c -m 644 \ |
|
410 login_notes/config.sample.php \ |
|
411 login_notes/config.php |
|
412 %{l_shtool} install -c -m 644 \ |
|
413 password_forget/config_example.php \ |
|
414 password_forget/config.php |
|
415 %{l_shtool} install -c -m 644 \ |
|
416 -e 's;^//\( *.CAPTCHA.,\);\1;g' \ |
|
417 -e 's,\(\$sl_dateformat *=\).*\(.\);$,\1 \2d.m.Y H:i:s\2;,g' \ |
|
418 -e 's,\(\$sl_logfile *=\).*\(.\);$,\1 \2%{l_prefix}/var/squirrelmail/log/squirrelmail.log\2;,g' \ |
|
419 squirrel_logger/config_example.php \ |
|
420 squirrel_logger/config.php |
|
421 %{l_shtool} install -c -m 644 \ |
|
422 -e 's/\(\$log_CAPTCHA_events *=\).*/\1 1;/' \ |
|
423 -e 's,\(\$captcha_backend *=\).*\(.\);$,\1 \2recaptcha\2;,' \ |
|
424 captcha/config_example.php \ |
|
425 captcha/config.php |
|
426 for captname in \ |
|
427 b2evo captcha_php csi freecap hec hn_captcha opencaptcha \ |
|
428 phpcaptcha quickcaptcha quickform recaptcha textcaptcha |
|
429 do |
|
430 mv \ |
|
431 captcha/backends/${captname}/${captname}_config_example.php \ |
|
432 captcha/backends/${captname}/${captname}_config.php |
|
433 done |
|
434 %{l_shtool} install -c -m 644 \ |
|
435 smime/config_example.php \ |
|
436 smime/config.php |
|
437 %{l_shtool} subst \ |
|
438 -e 's;\(path_to_gpg=\)/usr/bin/gpg.*;\1%{l_prefix}/bin/gpg;' \ |
|
439 gpg/gpg_local_prefs.txt |
|
440 %{l_shtool} install -c -m 644 \ |
|
441 -e 's;\(adminusername = "\)[^"]*;\1%{l_musr};' \ |
|
442 -e 's;corehide = 1;corehide = 0;' \ |
|
443 pupdate/config.php.sample \ |
|
444 pupdate/config.php |
|
445 %{l_shtool} install -c -m 644 \ |
|
446 -e "s;\(\$vkeyboard_msgsize.*\)'medium';\1'x-small';" \ |
|
447 -e "s;\(\$vkeyboard_layout.*\)'us_english';\1'portuguese_abnt2';" \ |
|
448 -e "s;\(\$vkeyboard_height.*\)'250';\1'270';" \ |
|
449 vkeyboard/config.php.sample \ |
|
450 vkeyboard/config.php |
|
451 cp -pf username/config.php.sample username/config.php |
|
452 %{l_shtool} install -c -m 644 \ |
|
453 %{SOURCE opkg_small.png} \ |
|
454 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ |
|
455 %endif |
|
456 ) || exit $? |
|
457 |
|
458 # install squirrelmail configuration perl script |
|
459 %{l_shtool} install -c -m 755 \ |
|
460 -e 's;chdir($dir);chdir("%{l_prefix}/etc/squirrelmail");g' \ |
|
461 -e 's;\.\./plugins;%{l_prefix}/share/squirrelmail/plugins;g' \ |
|
462 -e 's;\.\./themes;%{l_prefix}/share/squirrelmail/themes;g' \ |
|
463 -e 's;config/config_local.php;config_local.php;g' \ |
|
464 config/conf.pl \ |
|
465 $RPM_BUILD_ROOT%{l_prefix}/bin/squirrelconf |
|
466 |
|
467 # use our own logo, a squirrel next to a OpenPKG package |
|
468 %{l_shtool} install -c -m 644 \ |
|
469 %{SOURCE opkg_large.png} \ |
|
470 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ |
|
471 ) || exit $? |
441 ) || exit $? |
|
442 |
|
443 # install squirrelmail configuration perl script |
|
444 %{l_shtool} install -c -m 755 \ |
|
445 -e 's;chdir($dir);chdir("%{l_prefix}/etc/squirrelmail");g' \ |
|
446 -e 's;\.\./plugins;%{l_prefix}/share/squirrelmail/plugins;g' \ |
|
447 -e 's;\.\./themes;%{l_prefix}/share/squirrelmail/themes;g' \ |
|
448 -e 's;config/config_local.php;config_local.php;g' \ |
|
449 config/conf.pl \ |
|
450 $RPM_BUILD_ROOT%{l_prefix}/bin/squirrelconf |
|
451 |
|
452 # use our own logo, a squirrel next to a OpenPKG package |
|
453 %{l_shtool} install -c -m 644 \ |
|
454 %{SOURCE opkg_large.png} \ |
|
455 $RPM_BUILD_ROOT%{l_prefix}/share/squirrelmail/images/ |
472 |
456 |
473 # install runcommand script |
457 # install runcommand script |
474 %{l_shtool} mkdir -f -p -m 755 \ |
458 %{l_shtool} mkdir -f -p -m 755 \ |
475 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d |
459 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d |
476 %{l_shtool} install -c -m 755 %{l_value -s -a} \ |
460 %{l_shtool} install -c -m 755 %{l_value -s -a} \ |