Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2020 20:32:28 +0000 (UTC)
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r542893 - in head/sysutils/rsyslog8: . files
Message-ID:  <202007222032.06MKWStU045293@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007222032.06MKWStU045293>