diff --git a/net-mgmt/librenms/Makefile b/net-mgmt/librenms/Makefile index f4dc25413e2b..f7ee289adad1 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.sample ${STAGEDIR}/${WWWDIR}/contrib/newsyslog.conf.sample + @${ECHO_CMD} "@dir etc/newsyslog.conf.d" >> ${TMPPLIST} + @${ECHO_CMD} "@sample ${WWWDIR}/contrib/newsyslog.conf.sample etc/newsyslog.conf.d/librenms.conf" >> ${TMPPLIST} + .include diff --git a/net-mgmt/librenms/files/newsyslog.conf.sample b/net-mgmt/librenms/files/newsyslog.conf.sample new file mode 100644 index 000000000000..efb740220156 --- /dev/null +++ b/net-mgmt/librenms/files/newsyslog.conf.sample @@ -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 * $D0 J /var/run/librenms/librenms.pid +/var/log/librenms/librenms-service.log www:www 644 7 * $D0 J /var/run/librenms/librenms.pid