svn commit: r542893 - in head/sysutils/rsyslog8: . files

Matthew Seaman matthew at FreeBSD.org
Wed Jul 22 20:32:29 UTC 2020


Author: matthew
Date: Wed Jul 22 20:32:28 2020
New Revision: 542893
URL: https://svnweb.freebsd.org/changeset/ports/542893

Log:
  Prevent rsyslogd from writing log messages about TZ being unset in the
  environment.
  
  This is a putely cosmetic change, as the default behaviour according
  to tzset(3) is:
  
  ```
       If TZ does not appear in the environment, the best available
       approximation to local wall clock time, as specified by the
       tzfile(5)-format file /etc/localtime is used.
  ```
  
  Slightly modified from the patch supplied by zi to use the rc.subr(8)
  '${name}_env' variable.
  
  PR:		248185
  Submitted by:	zi

Modified:
  head/sysutils/rsyslog8/Makefile
  head/sysutils/rsyslog8/files/rsyslogd.in

Modified: head/sysutils/rsyslog8/Makefile
==============================================================================
--- head/sysutils/rsyslog8/Makefile	Wed Jul 22 20:31:04 2020	(r542892)
+++ head/sysutils/rsyslog8/Makefile	Wed Jul 22 20:32:28 2020	(r542893)
@@ -2,6 +2,7 @@
 
 PORTNAME=	rsyslog
 PORTVERSION=	8.2006.0
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.rsyslog.com/files/download/rsyslog/
 

Modified: head/sysutils/rsyslog8/files/rsyslogd.in
==============================================================================
--- head/sysutils/rsyslog8/files/rsyslogd.in	Wed Jul 22 20:31:04 2020	(r542892)
+++ head/sysutils/rsyslog8/files/rsyslogd.in	Wed Jul 22 20:32:28 2020	(r542893)
@@ -17,6 +17,7 @@ load_rc_config $name
 : ${rsyslogd_enable:="NO"}
 : ${rsyslogd_pidfile:="/var/run/rsyslogd.pid"}
 : ${rsyslogd_config:="%%PREFIX%%/etc/rsyslog.conf"}
+: ${rsyslogd_env:="TZ=/etc/localtime"}
 pidfile="${rsyslogd_pidfile}"
 command_args="-i ${pidfile} -f ${rsyslogd_config}"
 required_files="${rsyslogd_config}"


More information about the svn-ports-all mailing list