Killing Time 2nd

備忘録、日々の徒然想いを残します。

netatalk 2.0.3 CJKパッチを当ててbuild

作業メモ
現行だとversion 2.1をインストールすべき、か。

# sudo apt-get install libssl-dev cracklib2-dev
etchではcracklib2、lenny以降ではlibcrack2に名称変更されている。
# apt-get source netatalk
# sudo apt-get build-dep netatalk
# wget http://www003.upp.so-net.ne.jp/hat/files/netatalk-2.0.3-cjk-4.patch.gz
# zcat netatalk-2.0.3-cjk-4.patch.gz >
netatalk-2.0.3/debian/patches/999-netatalk-2.0.3-cjk-4.diff
# export DEB_BUILD_OPTIONS="ssl debuild"
# cd netatalk-2.0.3
# dpkg-buildpackage -rfakeroot
# sudo apt-get remove netatalk
既にnetatalkがインストールされている場合、元のnetatalkを削除しておく。設定ファイルは残る。
# sudo dpkg -i ../netatalk_2.0.3-4+etch2_powerpc.deb

最後にパッチが当たっているバージョンになっているか確認。

# sudo afpd -v
afpd 2.0.3+cjk6 - Apple Filing Protocol (AFP) daemon of Netatalk

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version. Please see the file COPYING for further information and details.

afpd has been compiled with support for these features:

AFP3.1 support: Yes
Transport layers: TCP/IP DDP
CNID backends: cdb dbd last

afpd.conf: /etc/netatalk/afpd.conf
AppleVolumes.system: /etc/netatalk/AppleVolumes.system
AppleVolumes.default: /etc/netatalk/AppleVolumes.default
UAM search path: /usr/lib/netatalk/