不知道為什麼 portmaster -aDG 時 MySQL 無法被 shutdown,最後 portmaster updating MySQL 時卡死,只能 kill 掉。後來寫個 script 下去自己讓他跑:
#update MySQL first
cd /usr/ports/databases/mysql51-server/ ;
make clean ;
make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_general_ci ;
/usr/local/etc/rc.d/mysql-server stop ;
make deinstall ;
make WITH_CHARSET=utf8 WITH_XCHARSET=all WITH_COLLATION=utf8_general_ci
install clean ;
/usr/local/etc/rc.d/mysql-server start ;
#update other ports
cd /usr/ports/ ;
portmaster -aDGu ;