Installing Netatalk 3 on FreeBSD
Due to earlier bugs in Netatalk, please use version 3.1.16 or later for building on FreeBSD.
Packages
Packages required to bootstrap the code:
pkg install autoconf automake libtool pkgconf
Packages required to build the code:
pkg install -y \
avahi \
bison \
db5 \
flex \
gmake \
libevent \
libgcrypt \
libressl \
openldap26-client-2.6.7 \
talloc \
tracker3
Build
Bootstrap, configure, build, and install the code:
./bootstrap
./configure \
--with-ldap=/usr/local \
--with-ssl-dir=/usr/local \
--with-tracker-pkgconfig-version=3.0 \
MAKE=gmake
gmake
gmake install
Run
Create an rc init script like the following in /etc/rc.d/netatalk
#!/bin/ksh
daemon="/usr/local/sbin/netatalk"
. /etc/rc.d/rc.subr
rc_start() {
rc_exec ". ~/.profile; ${daemon}"
}
rc_cmd $1
Set permissions on the script to chmod 0555
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
This is a mirror of the Netatalk GitHub Wiki. Please visit the original page if you want to correct an error or contribute new contents.
Last updated 2024-05-13