with a few patches tftp-hpa can be emerged on macos and can serve some files to PXE boot roms. 1) the tftp and tftp.1 files are already present in the system so they should not be installed. 2) setreuid/setregid does not work on OS X so set[e]{g,u}id should be used instead. Also the server cannot be run as non-root so I added a check that disables the id changing if the server is already not root. However, chroot does not work when non-root.
Created attachment 42647 [details, diff] Patch to Makefile and tftpd.c
Created attachment 42648 [details] my xinetd.d file
still works with tftp-hpa 0.40.1
is this pre-prefix or is it prefix? please reopen with info attached