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_DIR
The default configuration directory where mpd looks for
mpd.conf
, mpd.links
, etc.
PHYSTYPE_MODEM
PHYSTYPE_TCP
PHYSTYPE_UDP
PHYSTYPE_NG_SOCKET
PHYSTYPE_PPTP
Define these to include support for the corresponding device type. Note: type pptp is not included at this time.
PHYSTYPE_MODEM_NGASYNC
For the modem device type, this enables additional support for the Netgraph synchronous-asynchronous node type line discipline. This results in a lower CPU load when running mpd over serial links. You must have netgraph installed in your system for this to work.
COMPRESSION_PRED1
COMPRESSION_STAC
COMPRESSION_MPPC
COMPRESSION_DEFLATE
These 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_DES
ENCRYPTION_MPPE
These enable support for the corresponding encryption types.
Note that MPPE require proprietary source files (for RC4) that
are not included. DES requires that libdes
is installed
on your system.
MICROSOFT_CHAP
Enables support for Microsoft style CHAP (version 1).
This option also requires that libdes
is installed
on your system. Note that this option is implied by the
ENCRYPTION_MPPE
option.
SYSLOG_FACILITY
Mpd normally logs via syslog(3)
using the facility
LOG_DAEMON
. You can customize the facility here.