version 1.1.1.1, 2012/02/21 23:32:47
|
version 1.1.1.3, 2016/11/01 09:56:12
|
Line 10
|
Line 10
|
PROG?= mpd5 |
PROG?= mpd5 |
PREFIX?= /usr/local |
PREFIX?= /usr/local |
BINDIR?= ${PREFIX}/sbin |
BINDIR?= ${PREFIX}/sbin |
VERSION= 5.6 | VERSION= 5.8 |
NOMAN= |
NOMAN= |
NO_MAN= |
NO_MAN= |
|
|
|
BINOWN!= /usr/bin/id -n -u |
|
BINGRP!= /usr/bin/id -n -g |
|
|
# Default configuration directory |
# Default configuration directory |
|
|
MPD_CONF_DIR?= ${PREFIX}/etc/mpd5 |
MPD_CONF_DIR?= ${PREFIX}/etc/mpd5 |
Line 58 USE_AUTH_PAM= yes
|
Line 61 USE_AUTH_PAM= yes
|
USE_AUTH_SYSTEM= yes |
USE_AUTH_SYSTEM= yes |
|
|
# Build with builtin libpdel |
# Build with builtin libpdel |
|
|
NOLIBPDEL= yes |
NOLIBPDEL= yes |
|
|
# Build without builtin web server | # Build without builtin web server. |
| |
#NOWEB= yes |
#NOWEB= yes |
|
|
# Set syslog logging facility. Change LOG_DAEMON to whatever you like. |
# Set syslog logging facility. Change LOG_DAEMON to whatever you like. |
| # Comment this line disable syslog (3) support |
SYSLOG_FACILITY= LOG_DAEMON |
SYSLOG_FACILITY= LOG_DAEMON |
|
|
|
# Print wide protocol names instead of short names. |
|
# Comment this line, to save about 10 KB space |
COPTS+= -DPROTO_NAME_LIST |
COPTS+= -DPROTO_NAME_LIST |
|
|
|
# Reduce some internal structures size to save more memory |
|
# This is to limit amount of active sessions |
|
#SMALL_SYSTEM= yes |
|
|
# Compiler & linker flags |
# Compiler & linker flags |
|
|
.if defined ( USE_TCP_WRAP ) | .if exists ( /usr/lib/libwrap.so ) && defined ( USE_TCP_WRAP ) |
## filter TCP accept connections |
## filter TCP accept connections |
LDADD+= -lwrap |
LDADD+= -lwrap |
DPADD+= ${LIBWRAP} |
DPADD+= ${LIBWRAP} |
Line 86 DPADD+= ${LIBOPIE}
|
Line 94 DPADD+= ${LIBOPIE}
|
COPTS+= -DUSE_OPIE |
COPTS+= -DUSE_OPIE |
.endif |
.endif |
|
|
.if defined ( USE_AUTH_PAM ) | .if exists ( /usr/lib/libpam.so ) && defined ( USE_AUTH_PAM ) |
LDADD+= -lpam |
LDADD+= -lpam |
DPADD+= ${LIBPAM} |
DPADD+= ${LIBPAM} |
COPTS+= -DUSE_PAM |
COPTS+= -DUSE_PAM |
Line 94 COPTS+= -DUSE_PAM
|
Line 102 COPTS+= -DUSE_PAM
|
|
|
.if defined ( USE_AUTH_SYSTEM ) |
.if defined ( USE_AUTH_SYSTEM ) |
## based on /etc/password |
## based on /etc/password |
LDADD+= -lcrypt -lutil | LDADD+= -lcrypt |
DPADD+= ${LIBCRYPT} ${LIBUTIL} |
DPADD+= ${LIBCRYPT} ${LIBUTIL} |
COPTS+= -DUSE_SYSTEM |
COPTS+= -DUSE_SYSTEM |
.endif |
.endif |
|
|
LDADD+= -lnetgraph | LDADD+= -lnetgraph -lutil |
DPADD+= ${LIBNETGRAPH} |
DPADD+= ${LIBNETGRAPH} |
|
|
LDADD+= -L/usr/lib -lradius |
LDADD+= -L/usr/lib -lradius |
Line 111 LDADD+= -L${PREFIX}/lib
|
Line 119 LDADD+= -L${PREFIX}/lib
|
LDADD+= -lpdel |
LDADD+= -lpdel |
LDADD+= -lexpat |
LDADD+= -lexpat |
.endif |
.endif |
LDADD+= -lssl |
|
|
|
MPD_VERSION!= echo -n "${VERSION} (`id -un`@`uname -n` `LC_TIME=C date +'%R %v'`)" |
MPD_VERSION!= echo -n "${VERSION} (`id -un`@`uname -n` `LC_TIME=C date +'%R %v'`)" |
|
|
COPTS+= -DPATH_CONF_DIR=\"${MPD_CONF_DIR}\" | COPTS+= -DPATH_CONF_DIR='"${MPD_CONF_DIR}"' |
COPTS+= -DSYSLOG_FACILITY=${SYSLOG_FACILITY} | |
COPTS+= -DMPD_VERSION='"${MPD_VERSION}"' |
COPTS+= -DMPD_VERSION='"${MPD_VERSION}"' |
COPTS+= -g |
COPTS+= -g |
COPTS+= -Wall \ |
COPTS+= -Wall \ |
Line 133 COPTS+= -Wall \
|
Line 139 COPTS+= -Wall \
|
-I${PREFIX}/include |
-I${PREFIX}/include |
|
|
.if defined ( MPD_VENDOR ) |
.if defined ( MPD_VENDOR ) |
COPTS+= '-DMPD_VENDOR="${MPD_VENDOR}"' | COPTS+= -DMPD_VENDOR='"${MPD_VENDOR}"' |
.endif |
.endif |
|
|
|
.if defined ( SYSLOG_FACILITY ) |
|
COPTS+= -DSYSLOG_FACILITY='"${SYSLOG_FACILITY}"' |
|
.endif |
|
|
# Standard sources |
# Standard sources |
|
|
STDSRCS= assert.c auth.c bund.c rep.c ccp.c chap.c \ |
STDSRCS= assert.c auth.c bund.c rep.c ccp.c chap.c \ |
Line 148 STDSRCS= assert.c auth.c bund.c rep.c ccp.c cha
|
Line 158 STDSRCS= assert.c auth.c bund.c rep.c ccp.c cha
|
COPTS+= -DNOWEB |
COPTS+= -DNOWEB |
.else |
.else |
STDSRCS+= web.c |
STDSRCS+= web.c |
|
LDADD+= -lssl |
.endif |
.endif |
|
|
.if defined ( NOLIBPDEL ) |
.if defined ( NOLIBPDEL ) |
Line 289 COPTS+= -DUSE_FETCH
|
Line 300 COPTS+= -DUSE_FETCH
|
LDADD+= -lfetch |
LDADD+= -lfetch |
DPADD+= ${LIBFETCH} |
DPADD+= ${LIBFETCH} |
.endif |
.endif |
|
.if defined ( SMALL_SYSTEM ) |
|
COPTS+= -DSMALL_SYSTEM |
|
.endif |
|
|
# Add in required support files and libraries |
# Add in required support files and libraries |
|
|
.if defined ( NEED_DES ) |
|
LDADD+= -lcrypto |
LDADD+= -lcrypto |
DPADD+= ${LIBCRYPTO} |
DPADD+= ${LIBCRYPTO} |
|
|
|
.if exists ( /usr/lib/libexecinfo.so ) |
|
LDADD+= -lexecinfo |
|
COPTS+= -DUSE_BACKTRACE |
.endif |
.endif |
|
|
# Now add standard sources |
# Now add standard sources |