Skip to content

Latest commit

 

History

History
107 lines (76 loc) · 3.07 KB

INSTALL.md

File metadata and controls

107 lines (76 loc) · 3.07 KB

Quick start

Netatalk uses the Meson build system.

Meson only supports out-of-tree builds, and must be passed a directory to put built and generated sources into. We'll call that directory "build" here. It's recommended to create a separate build directory for each configuration you might want to use.

To build from a release tarball:

tar xjf netatalk-*.tar.xz                               # unpack the sources
cd netatalk-*                                           # change to the toplevel directory

To build from the Netatalk GitHub repo:

git clone https://github.com/netatalk/netatalk.git      # clone the repository
cd netatalk                                             # change to the repo directory

Then:

meson setup build                                       # configure the build
meson compile -C build                                  # build Netatalk

# Become root and install

sudo meson install -C build                             # install Netatalk

To uninstall Netatalk:

sudo ninja -C build uninstall                           # install Netatalk

To test (requires the -Dwith-tests=true flag at configure time):

cd build && meson test

Configuration flags

When using Meson, to review the options which Meson chose, run:

meson configure

With additional arguments the meson setup build command can be used to configure Netatalk according to user preference. All generic options passed to this command take the form -Doption=value.

For example, to install Netatalk in a specific location:

meson setup build -Dprefix=/tmp/install

By default meson enables all Netatalk features if their dependencies are available. However, many features can be enabled or disabled at configure time.

If meson cannot find the some required dependencies at configure time then the user can also specify the path a library if it is installed in an unconventional location.

Please see meson_options.txt for full details of all Netatalk-specific options, and https://mesonbuild.com/Builtin-options.html for details of generic Meson options.

External software dependencies

Required:

  • Berkeley DB version 4.6.0 or later
  • libevent 2
  • libgcrypt version 1.2.3 or later
  • perl
  • UnicodeData.txt

Required for Spotlight support:

  • talloc
  • tracker version 0.12 or later
  • bison
  • flex

Optional:

  • avahi or mDNSresponder (for Zeroconf support)
  • cracklib and cracklib dictionary (for password strength check in afppasswd)
  • Docbook XSL and xsltproc (for manpages & manual documentation)
  • GLib 2 and D-Bus (for afpstats support)
  • Kerberos V (for krbV UAM support)
  • libacl (for ACL support)
  • libldap (for LDAP support)
  • libpam (for PAM support)
  • libtirpc or libquota (for Quota support)
  • tcpwrap (for TCP wrapper support)

More details about dependencies can be found in the documentation at https://netatalk.io/stable/htmldocs/installation