Skip to content

Installing Netatalk on OpenIndiana

Daniel Markstedt edited this page Sep 9, 2025 · 11 revisions

Install Netatalk

The unofficial OpenCSW package repository for Solaris and Solaris-likes distributes a netatalk binary package that can be installed through their package manager.

For building and installing from source yourself, for instance to get a newer version, follow the guides linked here.

Install on OpenIndiana

This article describes how to install Netatalk 3.1 on OpenIndiana Hipster using the legacy Autotools build system.

Update system and install compiler toolchain

$ sudo pfexec pkg image-update
$ sudo pkg install build-essential crackle

Build and install libtalloc

$ wget https://www.samba.org/ftp/talloc/talloc-2.4.1.tar.gz
$ tar xvzf talloc-2.4.1.tar.gz
$ cd talloc-2.4.1
$ ./configure CC=gcc
$ make
$ sudo make install

Build

Extract a tarball.

$ tar xvf netatalk-3.1.8.tar.bz2
$ cd netatalk-3.1.8

You should read the help message, in order to know configure options.

If the applicable libraries are installed, many options will be detected automatically.

$ ./configure --help

Do configure! The following options are not auto-detected.

$ ./configure \
   PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
   CFLAGS=-I/usr/include/gssapi \
   --with-init-style=solaris \
   --enable-krbV-uam \
   --with-dbus-sysconf-dir=/etc/dbus-1/system.d \
   --with-pam-confdir=/etc/pam.d \
   --with-tracker-pkgconfig-version=1.0 \
   --with-cracklib

On successful completion, you will see a report similar to the following:

Compilation summary:

   CPPFLAGS       = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)
   CFLAGS         = -D_U_="__attribute__((unused))" -g -O2
   LIBS           = -lsendfile -lsocket -lnsl
   PTHREADS:
       LIBS   =
       CFLAGS = -D_REENTRANT -pthreads
   TRACKER:
       LIBS   =  -ltracker-sparql-1.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
       CFLAGS =  -DFFI_NO_RAW_API -pthread -I/usr/include/tracker-1.0
                 -I/usr/include/tracker-1.0/libtracker-sparql
                 -I/usr/lib/amd64/libffi-3.2.1/include -I/usr/include/glib-2.0
                 -I/usr/lib/amd64/glib-2.0/include -I/usr/include/pcre
   SSL:
       LIBS   =  -lcrypto -R/usr/lib -R/usr
       CFLAGS =  -I/usr/include/openssl
   LIBGCRYPT:
       LIBS   = -lgcrypt -lgpg-error
       CFLAGS =
   PAM:
       LIBS   =  -lpam
       CFLAGS =
   WRAP:
       LIBS   = -lwrap
       CFLAGS =
   BDB:
       LIBS   =  -ldb-5.1 -R/usr/lib
       CFLAGS =
   GSSAPI:
       LIBS   =  -L/usr/lib -lgss -lkrb5
       CFLAGS =  -I/usr/include/kerberosv5
   ZEROCONF:
       LIBS   =  -lavahi-common -lavahi-client
       CFLAGS =  -D_REENTRANT
   LDAP:
       LIBS   =  -lldap
       CFLAGS =
   LIBEVENT:
       LIBS.  =  -levent-2.1
       CFLAGS =  -I/usr/include/libevent2
   TALLOC:
       LIBS   =  -L/usr/local/lib -Wl, -rpath,/usr/local/lib -ltalloc
       CFLAGS =  -I/usr/local/include`

Configure summary:

   INIT STYLE:
        solaris
   AFP:
        Extended Attributes: ad | sys
        ACL support: yes
        Spotlight: yes
   CNID:
        backends:  dbd last tdb
   UAMS:
        DHX     (PAM SHADOW)
        DHX2    (PAM SHADOW)
        RANDNUM (afppasswd)
        Kerberos V
        clrtxt  (PAM SHADOW)
        guest
   Options:
        Zeroconf support:        yes
        tcp wrapper support:     yes
        quota support:           yes
        admin group support:     yes
        valid shell check:       yes
        cracklib support:        yes
        ACL support:             auto
        Kerberos support:        yes
        LDAP support:            yes
        AFP stats via dbus:      yes
        dtrace probes:           yes
   Paths:
        Netatalk lockfile:       /var/spool/locks/netatalk
        init directory:          /lib/svc/manifest/network/
        dbus system directory:   /etc/dbus-1/system.d
        dubs daemon path:        /bin/dbus-daemon
        tracker prefix:          /usr
        tracker install prefix:  /usr
        tracker manager:         /usr/bin/tracker daemon
        pam config directory:    /etc/pam.d
   Documentation:
        Docbook:                 no

Docbook is only needed if you want to regenerate the manual from XML sources.

The mysql CNID backend cannot be used. See Netatalk-admins ML.

Make and install.

$ make
$ sudo make install

Setting Up

You should check that your firewall allows TCP traffic. AFP's port number is 548. Zeroconf's port number is 5353.

Starting

Start mDNSResponder.

# svcadm enable svc:/network/dns/multicast:default

Start Netatalk.

# svcadm enable svc:/network/netatalk:default

See also

Clone this wiki locally