Skip to content

Installing Netatalk on FreeBSD

Daniel Markstedt edited this page Dec 28, 2024 · 3 revisions

Install 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.

Netatalk v3

With root privileges, install the netatalk3 package:

pkg install netatalk3

Run

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

Autotools

Here follows build instructions for the legacy Autotools build system in Netatalk v3.1 and earlier. As of v3.2, the project has moved to the Meson build system.

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