--- embedaddon/mpd/src/Makefile 2021/03/17 00:39:23 1.1.1.6 +++ embedaddon/mpd/src/Makefile 2023/09/27 11:08:00 1.1.1.6.2.1 @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.1.1.6 2021/03/17 00:39:23 misho Exp $ +# $Id: Makefile,v 1.1.1.6.2.1 2023/09/27 11:08:00 misho Exp $ # # Makefile for mpd, multi-link PPP daemon for FreeBSD # @@ -60,6 +60,7 @@ USE_TCP_WRAP= yes #USE_AUTH_OPIE= yes USE_AUTH_PAM= yes USE_AUTH_SYSTEM= yes +USE_RADIUS?= yes # Build without builtin web server. #NOWEB= yes @@ -108,8 +109,10 @@ CFLAGS+= -DUSE_SYSTEM LDADD+= -lnetgraph -lutil DPADD+= ${LIBNETGRAPH} +.if defined ( USE_RADIUS ) && ( ${USE_RADIUS} == yes ) LDADD+= -L/usr/lib -lradius DPADD+= ${LIBRADIUS} +.endif # Obtained from bsd.port.mk .if !defined ( OSVERSION ) @@ -147,13 +150,19 @@ CFLAGS+= -DMPD_VENDOR='"${MPD_VENDOR}"' CFLAGS+= -DSYSLOG_FACILITY='"${SYSLOG_FACILITY}"' .endif +CFLAGS+= -DOPENSSL_API_COMPAT=10100 + # Standard sources STDSRCS= assert.c auth.c bund.c rep.c ccp.c chap.c \ console.c command.c ecp.c event.c fsm.c iface.c input.c \ ip.c ipcp.c ipv6cp.c lcp.c link.c log.c main.c mbuf.c mp.c \ - msg.c ngfunc.c pap.c phys.c proto.c radius.c radsrv.c timer.c \ - util.c vars.c eap.c msoft.c ippool.c + msg.c ngfunc.c pap.c phys.c proto.c timer.c \ + util.c vars.c msoft.c ippool.c + +.if defined ( USE_RADIUS ) && ( ${USE_RADIUS} == yes ) +STDSRCS+= eap.c radius.c radsrv.c +.endif .if defined ( NOWEB ) CFLAGS+= -DNOWEB