Install Netatalk 3.1.6 on OpenIndiana 151a9

From Netatalk Wiki
Revision as of 16:10, 21 February 2014 by Franklahm (Talk | contribs)
Jump to: navigation, search

Contents

Required Packages

The packages for building:

Packages for developers

Build

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

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/

Setting

Edit "/usr/local/etc/afp.conf".

Ex:

[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

Start

You should check firewall. AFP's port number is 548.

Start mDNSResponder.

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

Start Netatalk.

# svcadm enable svc:/network/netatalk:default

See also

See also OpenIndiana Wiki.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox