cd /usr/ports/mail/squirrelmail
cd files
mv patch-functions__i18n.php bak_patch-functions__i18n.php
mv patch-class__deliver__Deliver.class.php bak_patch-class__deliver__Deliver.class.php
cp /back/src/patch-1.4.20-ja-20100310 ./
make clean 
make install
cd /usr/ports/mail/squirrelmail-compatibility-plugin
make clean 
make install

cd /usr/local/etc/periodic/daily
cp 111.clean-squirrelmail 111.clean-squirrelmail.orig
chmod +w 111.clean-squirrelmail

vi 111.clean-squirrelmail
-----------------
clean_squirrelmail_enable="YES"
-----------------

echo 'post_max_size = 50M' >> /usr/local/etc/php.ini
echo 'upload_max_filesize = 10M' >> /usr/local/etc/php.ini
echo 'magic_quotes_gpc = 0' >> /usr/local/etc/php.ini
/usr/local/etc/rc.d/apache22 restart

cd /usr/local/www/squirrelmail/plugins/
tar zxvf /back/src/quicksave-2.4.5-1.2.9.tar.gz
cd /usr/local/www/squirrelmail/plugins/quicksave
patch < /back/src/quicksave.patch

cd /usr/local/www/squirrelmail/config
./conf.pl
http://kenji.zenno.net/squirrelmail/src/configtest.php

Plugins
  Installed Plugins
    1. compatibility
    2. delete_move_next
    3. filters
    4. listcommands
    5. mail_fetch
    6. message_details
    7. quicksave
    8. sent_subfolders

vi /usr/local/www/squirrelmail/plugins/filters/setup.php
---------------------------
$AllowSpamFilters = false;
---------------------------

cd /usr/local/www/squirrelmail/locale/ja_JP/LC_MESSAGES/
cp squirrelmail.po squirrelmail.po.orig
cp /back/src/squirrelmail.po ./
cd ../../../po/
./compilepo ja_JP

日本語化

xgettext -o notify.pot *.php

msginit -l ja -i plugins/notify/notify.pot -o locale/ja_JP/LC_MESSAGES/notify.po

# cp locale/ja_JP/LC_MESSAGES/*.po locale/ja_JP/LC_MESSAGES/*.po.bak
# msgmerge locale/ja_JP/LC_MESSAGES/*.po.bak plugins/*/*.pot >  locale/ja_JP/LC_MESSAGES/*.po

msgfmt -c locale/ja_JP/LC_MESSAGES/*.po -o locale/ja_JP/LC_MESSAGES/*.mo

squirrelmail -> squirrelmail-1.4.20.ja

標準+ja-patch

cd /usr/local/www/squirrelmail/locale/ja_JP/LC_MESSAGES/
cp squirrelmail.po squirrelmail.po.orig
cp /back/src/squirrelmail.po ./
cd ../../../po/
./compilepo ja_JP

cd /usr/local/www/squirrelmail/plugins/
tar zxvf /back/src/quicksave-2.4.5-1.2.9.tar.gz
cd /usr/local/www/squirrelmail/plugins/quicksave
cp config_example.php config.php
patch < /back/src/quicksave.patch

cd /usr/local/www/squirrelmail/plugins/
tar zxvf /back/src/compatibility-2.0.16-1.0.tar.gz

cd /usr/local/www/squirrelmail/locale/ja_JP/LC_MESSAGES/

cp /back/src/quicksave.po ./
msgfmt -c quicksave.po -o quicksave.mo

cd /usr/local/www/squirrelmail/plugins/delete_move_next
patch < /back/src/delete_move_next.patch

cd /usr/local/www/squirrelmail/include/options/
patch < /back/src/display.php.patch

vi /usr/local/www/squirrelmail-1.4.20.ja/plugins/filters/setup.php
$AllowSpamFilters = false;

cd /usr/local/www/squirrelmail/plugins
tar xvf /home/admin/add_address-1.0.3-1.4.0.tar.gz
cd add_address
cp config_example.php config.php

cd /usr/local/www/squirrelmail-1.4.20.ja/plugins/add_address/locale
xgettext -o add_address.pot ../*.php
msginit -l ja -i add_address.pot -o add_address.po
mv add_address.po  /usr/local/www/squirrelmail/locale/ja_JP/LC_MESSAGES/
cd /usr/local/www/squirrelmail/locale/ja_JP/LC_MESSAGES/
vi add_address.po
msgfmt -c add_address.po -o add_address.mo

cd /usr/local/www/squirrelmail/plugins/
tar xvf /home/admin/notify_1_3.tar.gz
cd notify
cp notify.wav notify.wav.orig
cp notify.php notify.php.orig
cp setup.php setup.php.orig
cp /home/admin/notify.wav ./
vi notify.php
vi setup.php
xgettext -o notify.pot *.php
msginit -l ja -i notify.pot -o notify.po
vi notify.po
msgfmt -c notify.po -o notify.mo

cd /usr/local/www/squirrelmail/plugins/
tar xvf /home/admin/multilogin-2.4.2-1.2.9.tar.gz
cd multilogin
cp config_example.php config.php
patch -p0 < patches/multilogin-squirrelmail-1.4.15.diff

FreeBSD


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-12-04 (土) 10:50:53 (4019d)