Obviously this is over a year old and I hate to bump but eventually worked it out on my own and would like to share if future people have the same problem:
Heres what I did and works a charm as of December 2016 on Raspberry Pi 3 with OSMC installed fresh today:
$ sudo su
If you haven’t enabled root yet run: (otherwise skip the step)
$ sudo passwd root
Install dependancies:
$ apt-get install build-essential libevent-dev libssl-dev libgcrypt11-dev libkrb5-dev libpam0g-dev libwrap0-dev libdb-dev libtdb-dev libmysqlclient-dev libavahi-client-dev libacl1-dev libldap2-dev libcrack2-dev avahi-daemon systemtap-sdt-dev libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libio-socket-inet6-perl tracker libtracker-sparql-1.0-dev libtracker-miner-1.0-dev
Download Netatalk bzip2 from http://netatalk.sourceforge.net
Upload Netatalk bzip2 to OSMC
cd to wherever you’ve put the netatalk download
$ tar xvf netatalk-3.1.10.tar.bz2
$ cd netatalk-3.1.10
then configure & install as follows
$ ./configure \
--with-init-style=debian-systemd \
--without-libevent \
--without-tdb \
--with-cracklib \
--enable-krbV-uam \
--with-pam-confdir=/etc/pam.d \
--with-dbus-daemon=/usr/bin/dbus-daemon \
--with-dbus-sysconf-dir=/etc/dbus-1/system.d \
--with-tracker-pkgconfig-version=1.0
$ make
$ make install
Change /usr/local/etc/AFP.conf to:
[Global]
; Global server settings
hostname = SERVER NAME
uam list = uams_dhx.so,uams_dhx2.so
mimic model = AirPort
zeroconf = yes
guest account = nobody
[Homes]
basedir regex = /home
appledouble = v2
[NAME OF DRIVE]
path = /media/YOUR DRIVE HERE
valid users = osmc root
rwlist = osmc root
directory perm = 0775
file perm = 0775
spotlight = yes
cnid scheme = dbd
ea = none
unix priv = yes
appledouble = v2
; time machine = yes
NOTE: Don’t use “quotes” on path above, just put the spaces in if there are spaces to the directory
NOTE: If you want time machine remove the ; before ‘time machine’
Create Avahi Service: /etc/avahi/services/afpd.service:
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">SERVER NAME</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=AirPort</txt-record>
</service>
</service-group>
then enable & reboot
$ systemctl enable netatalk
$ reboot
Hope it helps anyone else having the problem!