[syslog-ng] [PATCH] scl: Add support for GNU/kFreeBSD

Gergely Nagy algernon at madhouse-project.org
Sun Aug 21 01:56:25 CEST 2011


GNU/kFreeBSD is GNU userland (including libc) on top of a FreeBSD
kernel. It's very similar to FreeBSD, but not completely.

On GNU/kFreeBSD, the system log source is /var/run/log, while the
kernel messages go to /dev/klog, in correctly formatted legacy BSD
format.

Tested on Debian GNU/kFreeBSD (squeeze).

Signed-off-by: Gergely Nagy <algernon at madhouse-project.org>
---
 scl/system/generate-system-source.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/scl/system/generate-system-source.sh b/scl/system/generate-system-source.sh
index fab7135..1088b63 100755
--- a/scl/system/generate-system-source.sh
+++ b/scl/system/generate-system-source.sh
@@ -75,6 +75,12 @@ unix-dgram("/var/run/logpriv" perm(0600));
 file("/dev/klog" follow-freq(0) program-override("kernel") flags(no-parse));
 EOF
 		;;
+	GNU/kFreeBSD)
+		cat <<EOF
+unix-dgram("/var/run/log");
+file("/dev/klog" follow-freq(0) program-override("kernel"));
+EOF
+		;;
 	HP-UX)
 		cat <<EOF
 pipe("/dev/log" pad_size(2048));
-- 
1.7.2.5



More information about the syslog-ng mailing list