Kevin,
I recently read about a piece of software for Linux/Unix (on
comp.sys.linux.announce) that reads and outputs IR remote control information to a
serial port. The package (freeware) even comes with a small circuit diagram on how
to make a IR transceiver. Since the package would contain source code, you might
want to hunt around for it.
Art...