-
Notifications
You must be signed in to change notification settings - Fork 93
Installing Netatalk on Solaris
The unofficial OpenCSW package repository for Solaris distributes a netatalk binary package that can be installed through their package manager.
For building and installing from source yourself, find links to the official documentation below.
- Compile Netatalk from Source: Solaris in the Manual
- INSTALL.md in the source tree
Tested on Solaris 11.4.42
Below follows the build instructions for the legacy Autotools build system. In most cases, you want to follow the instructions in the links at the top of this page instead.
The Solaris system will need to get the very latest package updates from Oracle in order to build contemporary Netatalk.
First, run a full system update.
pkg update --accept
If needed, manually install the latest SRU for Solaris 11.
You may need to configure mDNS in order for Zeroconf to work properly.
pkg install \
autoconf \
automake \
bison \
flex \
gcc \
libevent \
libgcrypt \
libtool \
pkg-config \
tracker
At the time of writing, you need to build autoconf, automake, and talloc from source.
wget https://www.samba.org/ftp/talloc/talloc-2.4.1.tar.gz
wget https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz
wget https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.gz
tar xvf talloc-2.4.1.tar.gz
tar xvf autoconf-2.71.tar.gz
tar xvf automake-1.16.5.tar.gz
cd autoconf-2.71
./configure --prefix=/usr
make
make install
cd ../automake-1.16.5
./configure --prefix=/usr
make
make install
cd ../talloc-2.4.1
CC=gcc ./configure --prefix=/usr/local
make
make install
ln -s /usr/local/lib/pkgconfig/talloc.pc /usr/lib/amd64/pkgconfig/talloc.pc
cd ..
./bootstrap
./configure \
--enable-krbV-uam \
--enable-pgp-uam \
--with-init-style=solaris \
--with-tracker-pkgconfig-version=2.0 \
--without-afpstats \
MAKE=gmake \
PKG_CONFIG_PATH=/usr/lib/amd64/pkgconfig
If the output from configure looks up to standard, proceed with compiling and linking.
gmake -j $(nproc)
Once the build process has completed without error, install the software (as root).
gmake install
Manage the netatalk service with svcadm.
svcadm enable svc:/network/netatalk:default
Enjoy!
This applies only if you are using the Meson build system instead of GNU Autotools (Netatalk 3.2 or later):
The base image of Solaris 11.4 comes with Meson v0.59.2 which is too old for Netatalk. Uninstall the stock Meson and install the one distributed by Python pip instead.
# pkg uninstall meson
# pkg update --accept
# pip install meson
Configure
# PKG_CONFIG_PATH=/usr/lib/amd64/pkgconfig meson setup build \
-Dwith-init-style=solaris \
-Dwith-tracker-pkgconfig-version=2.0
Build and install
# ninja -C build
# ninja -C build install
Tested on Solaris 10 (1/13)
Note that the last version known to work well on Solaris 10 is 3.1.8. You can get a pre-built package of this version from OpenCSW.
Below follows instructions for building the software from scratch, if you so prefer.
Install the OpenCSW repository and package manager.
Add paths to development tool dirs to the PATH variable, e.g. by adding this line to .profile
PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin
To install the prebuilt binary package for netatalk, do:
pkgutil -y -i netatalk
These instructions are for building netatalk from scratch.
pkgutil -y -i git libtool automake autoconf pkgconfig gcc5core berkeleydb48_devel libgcrypt_dev libevent_dev
./bootstrap
env PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig ./configure \
--with-init-style=solaris \
--with-libgcrypt-dir=/opt/csw \
--with-pam-confdir=/etc/pam.d \
--with-bdb=/opt/csw/bdb48 \
--with-mysql-config=no
make
make install
Start Netatalk.
svcadm enable svc:/network/netatalk:default
Stop Netatalk.
svcadm disable svc:/network/netatalk:default
Resources
OS Specific Guides
- Installing Netatalk on Alpine Linux
- Installing Netatalk on Debian Linux
- Installing Netatalk on Fedora Linux
- Installing Netatalk on FreeBSD
- Installing Netatalk on macOS
- Installing Netatalk on NetBSD
- Installing Netatalk on OmniOS
- Installing Netatalk on OpenBSD
- Installing Netatalk on OpenIndiana
- Installing Netatalk on openSUSE
- Installing Netatalk on Solaris
- Installing Netatalk on Ubuntu
Technical Docs
- CatalogSearch
- Kerberos
- Special Files and Folders
- Spotlight
- AppleTalk Kernel Module
- Print Server
- MacIP Gateway
Development