Subject: pkg/25488: Make thttpd syslog class configurable
To: None <gnats-bugs@gnats.netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: pkgsrc-bugs
Date: 05/07/2004 12:01:00
>Number: 25488
>Category: pkg
>Synopsis: Make thttpd syslog class configurable
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri May 07 10:02:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Hauke Fath
>Release: NetBSD 1.5.4
>Organization:
--
Hauke Fath /~\ The ASCII Ribbon Campaign
Institut für Nachrichtentechnik \ / No HTML/RTF in email
TU Darmstadt X No Word docs in email
Ruf +49-6151-16-3281 / \ Respect for open standards
>Environment:
System: NetBSD la.causeuse.org 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (LAMIN) #0: Fri Oct 17 14:42:24 PDT 2003 hauke@q700:/usr/src/sys/arch/mac68k/compile/LAMIN mac68k
Architecture: m68k
Machine: mac68k
>Description:
If you set up thttpd to use syslog for logging, it logs with
class daemon which per default goes to /var/log/messages with
almost everyone else. You normally want a sepapare log for the
webserver, but that's a compile-time option buried in
config.h.
>How-To-Repeat:
Set up syslog.conf for thttpd to log to (say) local3, wonder
how to make it work. Find that the proper switch is buried way
too deep.
>Fix:
Add the equivalent of
BUILD_DEFS+= LOG_FACILITY=LOG_LOCAL5
to the Makefile and the patch
--- config.h.orig Sun Nov 30 04:40:00 2003
+++ config.h
@@ -101,7 +101,9 @@
** that even if you use the -l command line flag to send logging to a
** file, errors still get sent via syslog.
*/
+#ifndef LOG_FACILITY
#define LOG_FACILITY LOG_DAEMON
+#endif
/* CONFIGURE: Tilde mapping. Many URLs use ~username to indicate a
** user's home directory. thttpd provides two options for mapping
>Release-Note:
>Audit-Trail:
>Unformatted: