Bug 144559

Summary: sysutils/eventlog patch to support FreeBSD-specific log facilities
Product: Ports & Packages Reporter: Peter Lai <cowbert>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Peter Lai 2010-03-08 18:00:17 UTC
There are several FreeBSD specific facilities not included by sysutils/eventlog which will yield "unknown facility" when using applications linked to eventlog (like syslog-ng3), for example, support of the console.info log facility.

Fix: We grab the missing values from /usr/include/syslog.h and merge them into sysutils/eventlog/src/evtlog.h



I leave the method integration of the patch up to the maintainer.--G0gtBf18Ho3e0pPFYB5GZGqRwvbOJ8FyhuMxFIatQDL0BoS3
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- work/eventlog-0.2.10/src/evtlog.h	2008-10-04 07:05:42.000000000 -0400
+++ evtlog.h	2010-03-08 11:23:19.334398343 -0500
@@ -66,6 +66,9 @@
 #define EVT_FAC_CRON        (9<<3)  /* clock daemon */
 #define EVT_FAC_AUTHPRIV    (10<<3) /* security/authorization messages (private) */
 #define EVT_FAC_FTP         (11<<3) /* ftp daemon */
+#define EVT_FAC_NTP	    (12<<3)
+#define EVT_FAC_SECURITY    (13<<3) 
+#define EVT_FAC_CONSOLE     (14<<3)
 
         /* other codes through 15 reserved for system use */
 #define EVT_FAC_LOCAL0      (16<<3) /* reserved for local use */
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-03-08 18:00:34 UTC
Maintainer of sysutils/eventlog,

Please note that PR ports/144559 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/144559

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-03-08 18:00:43 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Dmitry Marakasov 2010-08-19 03:15:07 UTC
Could you elaborate on how this is going to fix anything? These
defines are used neither in eventlog nor in syslog-ng3 code.

The problem you're referring to is likely one of syslog-ng3 3.0.3
(version for the time this PR was submitted) had no support for
these facilities. Current syslog-ng3 version, 3.1.1, should support
these, judging by contens of src/syslog-names.c from syslog-ng
sources.

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2010-08-19 03:15:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2010-08-19 03:15:48 UTC
State Changed
From-To: feedback->open

Feedback timeout
Comment 6 Dmitry Marakasov freebsd_committer freebsd_triage 2010-08-19 03:16:35 UTC
State Changed
From-To: open->feedback

Awaiting submitter's feedback
Comment 7 Dmitry Marakasov freebsd_committer freebsd_triage 2010-09-15 23:38:40 UTC
State Changed
From-To: feedback->closed

Feedback timeout; believed to be fixed.