If I understand this correctly, "Darwin" is the underlying operating system that Apple MacOS X is based upon.
Edwin C Wirth <ecwirth@mac.com> gave me an account to his "Darwin Kernel
Version 5.1" machine (running MacOS 10.1.1 on top of it) so I could port
mgetty+sendfax
to that OS. Thanks to that, Darwin is supported
from 1.1.28 on.
Compilation is pretty straightforward: use the default CFLAGS and LIBS
settings in the Makefile, set CC=cc
, and then run make
. It
will spit out a ton of warnings about ‘undefined or invalid #
directive’ - but those are harmless, it’s just cpp not understanding
#ident
.
At run time, as far as I could see, the internal Mac modem is available on /dev/tty.modem. The macintosh I had for testing also had "KeyUSA" USB-to-Serial ports that appeared as /dev/tty.KeyUSA28X913.1 and .2 - so other serial ports should also appear as /dev/tty.* devices. Note: there seem to be ”cu” devices as well (/dev/cu.modem), as in older Linux variants. I did only try sending faxes via tty.modem yet, but to resolve locking issues, it might be neccesary to use cu.* devices. To be continued...
Mgetty should be run from /etc/ttys as in other BSDs, see
man ttys
(there is no /etc/inittab).
Open issues: