$ wget http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
$ tar zxfp db-4.8.30.tar.gz
$ cd db-4.8.30
$ cd build_unix/
$ ../dist/configure
$ make
$ sudo make install
$ wget http://www.avahi.org/download/avahi-0.6.30.tar.gz
$ cd avahi-0.6.30
$ CFLAGS="-D_NETBSD_SOURCE=1"
$ LD_LIBRARY_PATH="/usr/local/lib"
$ LDFLAGS="-L/usr/local/lib -lintl -Wl,--rpath -Wl,/usr/local/lib"
$ ./configure --disable-glib --disable-gobject --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 --disable-dbus --disable-python --disable-mono --disable-autoipd
$ make
$ sudo make install
$ tar jxfp netatalk-2.2.1.tar.bz2
$ cd netatalk-2.2.1
$ LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.8/lib
$ export LD_LIBRARY_PATH
$ ./configure --sysconfdir=/etc --enable-debian --with-bdb=/usr/local/BerkeleyDB.4.8 --with-shadow --with-pam --with-ssl-dir=/usr/lib
$ make
$ sudo make install
$ sudo vi /etc/netatalk/AppleVolumes.default
下記を追加。
:DEFAULT: options:upriv,usedots dperm:0700 fperm:0600 maccharset:MAC_JAPANESE ea:sys
/mnt/timemachine "Time Machine Vol" options:tm