I took notes (as I always do) when I was installing netatalk, so that it'd be easier to do next time. I hope this info may help someone set up AppleShare file sharing on Linux (or any other platform, really) with netatalk.
Read about appleshare on Linux from
http://www1.macintouch.com/asiplinux.html
Got Netatalk from http://www.umich.edu/~rsug/netatalk/
- untarred
- looked at README.LINUX
- it says "you need DDP", ok...
Had to enable DDP protocol
- it's a kernel module
- no modules were compiled!
- from /usr/src/linux I typed "make modules"
- it left an "appletalk.o" in /usr/src/linux/modules
Compiled netatalk 1.3.3
- it complained, some errors
gcc -p -O2 -I../../include -c asp_getsess.c
asp_getsess.c: In function `asp_getsession':
asp_getsess.c:178: incompatible types in assignment
asp_getsess.c:186: incompatible types in assignment
make[3]: *** [asp_getsess.o] Error 1
make[3]: Leaving directory `/usr/local/atalk/netatalk-1.3.3/libatalk/asp'
make[2]: *** [asp] Error 2
make[2]: Leaving directory `/usr/local/atalk/netatalk-1.3.3/libatalk'
make[1]: *** [../../libatalk] Error 2
make[1]: Leaving directory `/usr/local/atalk/netatalk-1.3.3/sys/linux'
make: *** [all] Error 2
Remembered that the guy who wrote the MacInTouch bit was using 1.4b2,
not 1.3.3, so I didn't want 1.3.3. anyway.
Got patched netatalk for AppleShare IP from ftp://ftp.u.washington.edu/public/asun/
- compiled it, similar but not quite identical problem. It wants des.h this time.
- dug around and found that I had to *enable* crypt but *disable* DES:
1) Altered sys/linux/Makefile:
diff Makefile Makefile~
9c9
< AFPLIBS=-lcrypt
---
> AFPLIBS=
2) Altered root-level Makefile:
diff Makefile Makefile~
32c32
< #DESDIR=/usr/local
---
> DESDIR=/usr/local
Now it finally builds and works! Wohoo!