Skip to content

Installing Netatalk on FreeBSD

Daniel Markstedt edited this page Sep 30, 2024 · 1 revision

Install the latest Netatalk

The easiest way to get Netatalk on FreeBSD is to install the netatalk3 port with pkg.

For building and installing from source yourself, find the official documentation below.

Run

The Netatalk ships with an init script for FreeBSD.

If needed, activate the script with:

/etc/rc.d/netatalk enable

Start or stop the script with

/etc/rc.d/netatalk start
/etc/rc.d/netatalk stop

If you use D-Bus for, for instance, afpstats, please make sure that the dbus service is started before you launch netatalk.

service dbus onestart

Netatalk v3

Here follows build instructions for the legacy Autotools build system in Netatalk v3.

Packages

Packages required to bootstrap the code:

pkg install autoconf automake libtool pkgconf

Packages required to build the code:

pkg install -y \
  autoconf \
  automake \
  avahi \
  bison \
  db5 \
  flex \
  gmake \
  libevent \
  libgcrypt \
  libressl \
  libtool \
  openldap26-client-2.6.8 \
  pkgconf \
  talloc \
  tracker3

Build

Due to earlier bugs in Netatalk, please use version 3.1.16 or later for building on FreeBSD.

Bootstrap, configure, build, and install the code:

./bootstrap
./configure \
  --with-init-style=freebsd \
  --with-ldap=/usr/local \
  --with-ssl-dir=/usr/local \
  --with-tracker-pkgconfig-version=3.0 \
  MAKE=gmake
gmake
gmake install
Clone this wiki locally