libiconv のチェックを行います。
# iconv -l|grep EUC-JP EUC-JP EUCJP EXTENDED_UNIX_CODE_PACKED_FORMAT_FOR_JAPANESE CSEUCPKDFMTJAPANESE
EUC-JP-MS が表示されない場合、以下のようにしてパッチ適応済みの libiconv を再インストールします。
# portinstall -f -m WITH_EXTRA_PATCHES=yes /usr/ports/converters/libiconv/
samba をインストールします。
# portinstall /usr/ports/net/samba3/
インストールのはじめにオプションについて聞かれるので、適宜答えておきます。今回は以下のようにしています。
┌---------------------------------------------------------------------┐ │ Options for samba 3.0.22,1 │ │ ┌---------------------------------------------------------------┐ │ │ │ [ ] LDAP With LDAP support │ │ │ │ [ ] ADS With Active Directory support │ │ │ │ [ ] CUPS With CUPS printing support │ │ │ │ [X] WINBIND With WinBIND support │ │ │ │ [X] ACL_SUPPORT With ACL support │ │ │ │ [ ] AIO_SUPPORT With experimental AIO support │ │ │ │ [ ] SYSLOG With Syslog support │ │ │ │ [ ] QUOTAS With Quota support │ │ │ │ [X] UTMP With UTMP support │ │ │ │ [ ] MSDFS With MSDFS support │ │ │ │ [ ] SAM_XML With XML smbpasswd backend │ │ │ │ [ ] SAM_MYSQL With MYSQL smbpasswd backend │ │ │ │ [ ] SAM_PGSQL With PostgreSQL smbpasswd backend │ │ │ │ [ ] SAM_OLD_LDAP With Samba2.x LDAP legacy smbpasswd backend │ │ │ │ [ ] SMBSH With SMBSH wrapper for UNIX commands │ │ │ │ [ ] PAM_SMBPASS With SMB PAM module │ │ │ │ [ ] EXP_MODULES With experimental module(s) │ │ │ │ [X] POPT With system-wide POPT library │ │ ├-└---------------------------------------------------------------┘-┤ │ [ OK ] Cancel │ └---------------------------------------------------------------------┘