If you choose to build mpd yourself to customize it, the
process is straightforward. First, edit the Makefile
to define (or undefine) the various device types and options
you want to support. Then type make depend all to
rebuild the binary.
The various build-time definitions in the Makefile are below:
MPD_CONF_DIRThe default configuration directory where mpd looks for
mpd.conf, mpd.links, etc.
PHYSTYPE_MODEMPHYSTYPE_TCPPHYSTYPE_UDPPHYSTYPE_NG_SOCKETPHYSTYPE_PPTPDefine these to include support for the corresponding device type.
COMPRESSION_PRED1COMPRESSION_STACCOMPRESSION_MPPCCOMPRESSION_DEFLATEThese enable support for the corresponding compression types. Note that STAC and MPPC compression require proprietary source files that are not included. DEFLATE is unimplemented. All of these are not very well tested.
ENCRYPTION_DESENCRYPTION_MPPEThese enable support for the corresponding encryption types.
MICROSOFT_CHAPEnables support for Microsoft style CHAP (versions 1 and 2).
Note that this option is implied by the ENCRYPTION_MPPE option.
SYSLOG_FACILITYMpd normally logs via syslog(3) using the facility
LOG_DAEMON. You can customize the facility here.