Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maizy/8880325 to your computer and use it in GitHub Desktop.
Save maizy/8880325 to your computer and use it in GitHub Desktop.

Note

Install as a separate pkg netatalk3. for now checkinstall not working, installing simply from make install.

But do not try to install it with standart netatalk package at the same time.

sudo apt-get remove netatalk

Install prerequisites:

sudo apt-get install build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev libpam0g-dev

Download release

tested on 3.0.7

wget http://downloads.sourceforge.net/project/netatalk/netatalk/3.0.7/netatalk-3.0.7.tar.bz2
tar -cvf netatalk-3.0.7.tar.bz2
cd netatalk-3.0.7

Configure install

./configure \
    --prefix=/usr/local \
    --enable-debian \
    --enable-zeroconf \
    --with-cracklib \
    --with-acls \
    --with-pam \
    --enable-tcp-wrappers \
    --with-pam-confdir=/etc/pam.d \
    --with-dbus-sysconf-dir=/etc/dbus-1/system.d \
    --sysconfdir=/etc/netatalk3 \
    --with-init-style=debian

Build!

# i've got some problem with compiling bundled libevent with checkinstall
# need more investigation
# sudo checkinstall --pkgname=netatalk3 --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
make
sudo make install

Configure

Sample configs is in /usr/local/etc/afp.conf

Config dir: /etc/netatalk3.

If you upgrades from netatalk2 configs should be rewrited. See: http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment