diff --git a/net-mgmt/librenms/Makefile b/net-mgmt/librenms/Makefile index f4dc25413e2b..7f3b69ef111c 100644 --- a/net-mgmt/librenms/Makefile +++ b/net-mgmt/librenms/Makefile @@ -194,4 +194,9 @@ post-install: @${ECHO_CMD} "@dir(root,www,0775) ${WWWDIR}/${f}" >> ${TMPPLIST} .endfor + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d + ${INSTALL_DATA} ${FILESDIR}/newsyslog.conf ${STAGEDIR}/${WWWDIR}/contrib/newsyslog.conf + @${ECHO_CMD} "@dir etc/newsyslog.conf.d" >> ${TMPPLIST} + @${ECHO_CMD} "@sample ${WWWDIR}/contrib/newsyslog.conf etc/newsyslog.conf.d/librenms.conf" >> ${TMPPLIST} + .include diff --git a/net-mgmt/librenms/files/newsyslog.conf b/net-mgmt/librenms/files/newsyslog.conf new file mode 100644 index 000000000000..cb319031a011 --- /dev/null +++ b/net-mgmt/librenms/files/newsyslog.conf @@ -0,0 +1,7 @@ +# configuration file for newsyslog for librenms +# +# see newsyslog.conf(5) for details +# +# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] +/var/log/librenms/librenms.log www:www 644 7 100 * J /var/run/librenms/librenms.pid +/var/log/librenms/librenms-service.log www:www 644 7 100 * J /var/run/librenms/librenms.pid