Index: etc/Makefile =================================================================== --- etc/Makefile +++ etc/Makefile @@ -39,7 +39,6 @@ remote \ rpc \ services \ - syslog.conf \ termcap.small .if exists(${.CURDIR}/etc.${MACHINE}/ttys) @@ -156,7 +155,6 @@ ${_+_}cd ${.CURDIR}/gss; ${MAKE} install ${_+_}cd ${.CURDIR}/mtree; ${MAKE} install ${_+_}cd ${SRCTOP}/share/termcap; ${MAKE} etc-termcap - ${_+_}cd ${.CURDIR}/syslog.d; ${MAKE} install ${_+_}cd ${SRCTOP}/usr.sbin/rmt; ${MAKE} etc-rmt ${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install .if ${MK_UNBOUND} != "no" Index: etc/syslog.conf =================================================================== --- etc/syslog.conf +++ etc/syslog.conf @@ -1,34 +0,0 @@ -# $FreeBSD$ -# -# Spaces ARE valid field separators in this file. However, -# other *nix-like systems still insist on using tabs as field -# separators. If you are sharing this file between systems, you -# may want to use only tabs as field separators here. -# Consult the syslog.conf(5) manpage. -*.err;kern.warning;auth.notice;mail.crit /dev/console -*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages -security.* /var/log/security -auth.info;authpriv.info /var/log/auth.log -mail.info /var/log/maillog -cron.* /var/log/cron -!-devd -*.=debug /var/log/debug.log -*.emerg * -# uncomment this to log all writes to /dev/console to /var/log/console.log -# touch /var/log/console.log and chmod it to mode 600 before it will work -#console.info /var/log/console.log -# uncomment this to enable logging of all log messages to /var/log/all.log -# touch /var/log/all.log and chmod it to mode 600 before it will work -#*.* /var/log/all.log -# uncomment this to enable logging to a remote loghost named loghost -#*.* @loghost -# uncomment these if you're running inn -# news.crit /var/log/news/news.crit -# news.err /var/log/news/news.err -# news.notice /var/log/news/news.notice -# Uncomment this if you wish to see messages produced by devd -# !devd -# *.>=notice /var/log/devd.log -!* -include /etc/syslog.d -include /usr/local/etc/syslog.d Index: etc/syslog.d/Makefile =================================================================== --- etc/syslog.d/Makefile +++ etc/syslog.d/Makefile @@ -1,19 +0,0 @@ -# $FreeBSD$ - -.include - -.if ${MK_FTP} != "no" -FILES+= ftp.conf -.endif - -.if ${MK_LPR} != "no" -FILES+= lpr.conf -.endif - -.if ${MK_PPP} != "no" -FILES+= ppp.conf -.endif - -BINDIR= /etc/syslog.d - -.include Index: etc/syslog.d/ftp.conf =================================================================== --- etc/syslog.d/ftp.conf +++ etc/syslog.d/ftp.conf @@ -1,2 +0,0 @@ -# $FreeBSD$ -ftp.info /var/log/xferlog Index: etc/syslog.d/lpr.conf =================================================================== --- etc/syslog.d/lpr.conf +++ etc/syslog.d/lpr.conf @@ -1,2 +0,0 @@ -# $FreeBSD$ -lpr.info /var/log/lpd-errs Index: etc/syslog.d/ppp.conf =================================================================== --- etc/syslog.d/ppp.conf +++ etc/syslog.d/ppp.conf @@ -1,3 +0,0 @@ -# $FreeBSD$ -!ppp -*.* /var/log/ppp.log Index: usr.sbin/syslogd/Makefile =================================================================== --- usr.sbin/syslogd/Makefile +++ usr.sbin/syslogd/Makefile @@ -5,6 +5,8 @@ .PATH: ${SRCTOP}/usr.bin/wall +CONFGROUPS= CONFS SYSLOGD_D +CONFS= syslog.conf PROG= syslogd MAN= syslog.conf.5 syslogd.8 SRCS= syslogd.c ttymsg.c @@ -18,6 +20,20 @@ CFLAGS+= -DINET6 .endif +SYSLOGD_D= +SYSLOGD_DDIR= /etc/syslog.d/ +.if ${MK_FTP} != "no" +SYSLOGD_D+= ftp.conf +.endif + +.if ${MK_LPR} != "no" +SYSLOGD_D+= lpr.conf +.endif + +.if ${MK_PPP} != "no" +SYSLOGD_D+= ppp.conf +.endif + CFLAGS+= -I${SRCTOP}/usr.bin/wall .include