Install Netatalk 3.1.6 on OpenIndiana 151a9
The packages for building:
- system/library/security/libgcrypt (DHX2 auth)
- library/security/openssl (DHX auth aka DHCAST128)
- service/network/dns/mdns (Bonjour support)
- naming/ldap (enhanced ACL support)
- system/library/iconv/unicode (conversion table for legacy mac charset)
- system/library/dbus (used by afpstats command)
- system/library/libdbus (used by afpstats command)
- system/library/libdbus-glib (used by afpstats command)
- library/python-2/python-dbus-26 (used by afpstats command)
- database/berkeleydb-5 (Berkeley DB)
Packages for developers
Extract a tarball.
$ tar -xvf netatalk-3.0.6.tar.bz2 $ cd netatalk-3.0.6
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.
$ CFLAGS="-I/usr/include/kerberosv5/" ./configure \ --with-init-style=solaris \ --enable-krbV-uam \ --with-dbus-sysconf-dir=/etc/dbus-1/system.d
On successful completion, you will see a report similar to the following:
Compilation summary: CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include CFLAGS = -D_U_="__attribute__((unused))" -I/usr/include/kerberosv5/ LIBS = -lsendfile -lsocket -lnsl PTHREADS: LIBS = CFLAGS = -D_REENTRANT -pthreads 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 = -lgss -lsocket -lnsl CFLAGS = -D_U_="__attribute__((unused))" -I/usr/include/kerberosv5/ ZEROCONF: LIBS = -ldns_sd CFLAGS = LDAP: LIBS = -lldap CFLAGS = LIBEVENT: bundled TDB: bundled Configure summary: INIT STYLE: solaris AFP: Extended Attributes: ad | sys ACL support: 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: no ACL support: auto Kerberos support: yes LDAP support: yes dbus support: 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 configure: WARNING: PAM support was configured for your system, but the netatalk PAM configuration file configure: WARNING: cannot be installed. Please install the config/netatalk.pamd file manually. configure: WARNING: If you're running Solaris or BSD you'll have to edit /etc/pam.conf to get PAM working. configure: WARNING: You can also re-run configure and specify --without-pam to disable PAM support. Documentation: Docbook: no
Unfortunately, there is no cracklib package. Docbook is not needed because it is for developers only.
Make and install.
$ make # make install
Check features and paths, using "afpd -V".
$ /usr/local/sbin/afpd -V afpd 3.0.6 - Apple Filing Protocol (AFP) daemon of Netatalk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Please see the file COPYING for further information and details. afpd has been compiled with support for these features: AFP versions: 2.2 3.0 3.1 3.2 3.3 CNID backends: dbd last tdb Zeroconf support: mDNSResponder TCP wrappers support: Yes Quota support: Yes Admin group support: Yes Valid shell checks: Yes cracklib support: No EA support: ad | sys ACL support: Yes LDAP support: Yes D-Bus support: Yes DTrace probes: Yes afp.conf: /usr/local/etc/afp.conf extmap.conf: /usr/local/etc/extmap.conf state directory: /usr/local/var/netatalk/ afp_signature.conf: /usr/local/var/netatalk/afp_signature.conf afp_voluuid.conf: /usr/local/var/netatalk/afp_voluuid.conf UAM search path: /usr/local/lib/netatalk// Server messages path: /usr/local/var/netatalk/msg/
[Global] mac charset = MAC_JAPANESE afpstats = yes [Homes] basedir regex = /home [Test Volume] path = /export/test1 [My Time Machine Volume] path = /export/timemachine time machine = yes vol size limit = 512000
You should check firewall. AFP's port number is 548.
# svcadm enable svc:/network/dns/multicast:default
# svcadm enable svc:/network/netatalk:default
See also OpenIndiana Wiki.