Building netatalk 2.1.5 on OpenSolaris for Lion (MacOS 10.7) Clients

Here is a set of step-by-step instructions to build a version of the stable 2.1.5 netatalk on OpenSolaris:

Note: These instructions assume a default prefix of "/usr/local" and these instructions assume that you have already installed the appropriate development environment.  Also, where I use "sudo make install" you may want to use "pfexec make install" instead.

 

Download and build all the required bits: 

 

wget ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/pkgconfig-0.25.tar.gz

tar xvfz pkgconfig-0.25.tar.gz

cd pkg-config-0.25

./configure

make 

sudo make install

cd ..

 

 

wget http://download.oracle.com/berkeley-db/db-4.8.30.zip

unzip db-4.8.30.zip

cd db-4.8.30

cd build_unix

../dist/configure --prefix=/usr/local

make

sudo make install

cd ..

 

 

wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.bz2

tar xvjf libgpg-error-1.10.tar.bz2

cd libgpg-error-1.10

./configure

make 

sudo make install

cd ..

 

wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2

tar xvjf libgcrypt-1.5.0.tar.bz2

cd libgcrypt-1.5.0

./configure --with-gpg-error-prefix=/usr/local

make

sudo make install

cd ..

 

wget http://prdownloads.sourceforge.net/netatalk/netatalk-2.1.5.tar.bz2?download

tar xvjf netatalk-2.1.5.tar.bz2

cd netatalk-2.1.5

./configure --without-Pam --with-libgcrypt-dir=/usr/local

make

sudo make install

 

 

Configure netatalk

Notes:

-This is not a comprehensive guide to configuring netatalk (look in the docs for that)

-With a default build the config files are in /usr/local/etc/netatalk

 

Add file shares in AppleVolumes.default

Example:

/raid "raid" allow:@staff cnidscheme:dbd options:usedots,invisibledots,upriv perm:0770

 

Add daemon config in afpd.conf

Example:

 - -transall -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword

 

 

Start up the server

sudo /etc/init.d/netatalk start

Other links that may be useful: