mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 00:02:14 -04:00
Some logging operations require access to external resources to complete. Logging to F_WALL requires on-demand access to the user accounting database. Logging to F_CONSOLE requires access to the console. Logging to F_PIPE prompts execution of a command outside of capability mode. These operations cannot be performed in capability mode, so the "p_open", "ttymsg", and "wallmsg" commands may be sent to libcasper to circumvent these limitations. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D41465
58 lines
926 B
Makefile
58 lines
926 B
Makefile
.include <src.opts.mk>
|
|
|
|
.PATH: ${SRCTOP}/usr.bin/wall
|
|
|
|
PACKAGE= syslogd
|
|
|
|
CONFGROUPS= CONFS SYSLOGD_D
|
|
CONFS= syslog.conf
|
|
PROG= syslogd
|
|
MAN= syslog.conf.5 syslogd.8
|
|
SRCS= syslogd.c ttymsg.c
|
|
SYSLOGD_DPACAKGE= syslogd
|
|
|
|
LIBADD= util
|
|
|
|
.if ${MK_CASPER} != "no"
|
|
SRCS+= syslogd_cap.c \
|
|
syslogd_cap_config.c \
|
|
syslogd_cap_log.c
|
|
CFLAGS+= -DWITH_CASPER
|
|
LIBADD+= cap_net casper nv
|
|
.endif
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
CFLAGS+= -DINET
|
|
.endif
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
|
|
SYSLOGD_D=
|
|
SYSLOGD_DDIR= /etc/syslog.d
|
|
.if ${MK_FTP} != "no"
|
|
CONFGROUPS+= FTP
|
|
FTP+= ftp.conf
|
|
FTPDIR= /etc/syslog.d
|
|
FTPPACKAGE= ftpd
|
|
.endif
|
|
|
|
.if ${MK_LPR} != "no"
|
|
CONFGROUPS+= LP
|
|
LP+= lpr.conf
|
|
LPDIR= /etc/syslog.d
|
|
LPPACKAGE= lp
|
|
.endif
|
|
|
|
.if ${MK_PPP} != "no"
|
|
CONFGROUPS+= PPP
|
|
PPP+= ppp.conf
|
|
PPPDIR= /etc/syslog.d
|
|
PPPPACKAGE= ppp
|
|
.endif
|
|
|
|
CFLAGS+= -I${SRCTOP}/usr.bin/wall
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|