Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 04:21:18 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307262 - in head: . sysutils/syslog-ng sysutils/syslog-ng/files
Message-ID:  <201211100421.qAA4LImT025301@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sat Nov 10 04:21:18 2012
New Revision: 307262
URL: http://svnweb.freebsd.org/changeset/ports/307262

Log:
  Collection of kernle messages via kqueue was broken in syslog-ng since 3.3.6.
  This patch fixes this.
  
  Submitted by:	Peter Czanik <czanik@balabit.hu> (syslog-ng upline)
  Feature safe:	yes

Added:
  head/sysutils/syslog-ng/files/patch-scl-system-generate-system-source.sh   (contents, props changed)
Modified:
  head/UPDATING
  head/sysutils/syslog-ng/Makefile

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Sat Nov 10 04:00:41 2012	(r307261)
+++ head/UPDATING	Sat Nov 10 04:21:18 2012	(r307262)
@@ -6,6 +6,15 @@ You should get into the habit of checkin
 you update your ports collection, before attempting any port upgrades.
 
 20121109:
+  AFFECTS: FreeBSD < 9.1 users of syslog-ng >= 3.3.6
+  AUTHOR: cy@FreeBSD.org
+
+  Syslog-ng version 3.3.6 changed the way how /dev/kmsg is read. If you
+  don't use the system() source (which configures it automatically),
+  please make sure, that in the kmsg related line follow-freq(1) is used
+  instead of the previously default follow-freq(0).
+
+20121109:
   AFFECTS: users of devel/py-liblarch_gtk deskutils/gtg
   AUTHOR: rm@FreeBSD.org
 

Modified: head/sysutils/syslog-ng/Makefile
==============================================================================
--- head/sysutils/syslog-ng/Makefile	Sat Nov 10 04:00:41 2012	(r307261)
+++ head/sysutils/syslog-ng/Makefile	Sat Nov 10 04:21:18 2012	(r307262)
@@ -7,6 +7,7 @@
 
 PORTNAME=	syslog-ng
 PORTVERSION=	3.3.7
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.balabit.com/downloads/files/syslog-ng/sources/$(PORTVERSION)/source/
 DISTFILES=	$(PORTNAME)_$(PORTVERSION).tar.gz

Added: head/sysutils/syslog-ng/files/patch-scl-system-generate-system-source.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/syslog-ng/files/patch-scl-system-generate-system-source.sh	Sat Nov 10 04:21:18 2012	(r307262)
@@ -0,0 +1,21 @@
+--- scl/system/generate-system-source.sh.orig	2012-08-15 01:06:08.000000000 -0700
++++ scl/system/generate-system-source.sh	2012-11-09 19:42:06.000000000 -0800
+@@ -74,7 +74,17 @@
+ 		cat <<EOF
+ unix-dgram("/var/run/log");
+ unix-dgram("/var/run/logpriv" perm(0600));
+-file("/dev/klog" follow-freq(0) program-override("kernel") flags(no-parse));
++EOF
++                case "$osversion" in
++                        7.*|8.*|9.0*)
++                                ffreq=1
++                                ;;
++                        *)
++                                ffreq=0
++                                ;;
++                esac
++                cat <<EOF
++file("/dev/klog" follow-freq($ffreq) program-override("kernel") flags(no-parse));
+ EOF
+ 		;;
+ 	GNU/kFreeBSD)



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