Subject: pkg/25488: Make thttpd syslog class configurable
To: None <>
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
>Originator:     Hauke Fath
>Release:        NetBSD 1.5.4
           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


System: NetBSD 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


	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

	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.


	Add the equivalent of 


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.
 /* CONFIGURE: Tilde mapping.  Many URLs use ~username to indicate a
 ** user's home directory.  thttpd provides two options for mapping