Bug 65 - IWBN to be able to easily change syslog's facility
IWBN to be able to easily change syslog's facility
Status: CLOSED FIXED
Product: NSD
Classification: Unclassified
Component: NSD Code
1.2.0
All All
: P2 enhancement
Assigned To: NSD team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-07-31 11:34 CEST by Stephane Bortzmeyer
Modified: 2003-10-30 16:08 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Bortzmeyer 2003-07-31 11:34:43 CEST
Patch included:

diff -r nsd-1.2.2-ORIG/Makefile.in nsd-1.2.2/Makefile.in
53a54
> facility= @facility@
56c57
< CPPFLAGS      = @CPPFLAGS@ @DEFS@ -I. -DDBFILE=\"$(dbfile)\"
-DPIDFILE=\"$(pidfile)\" -DUSER=\"$(user)\"
---
> CPPFLAGS      = @CPPFLAGS@ @DEFS@ -I. -DDBFILE=\"$(dbfile)\"
-DPIDFILE=\"$(pidfile)\" -DUSER=\"$(user)\" -DFACILITY=$(facility)
diff -r nsd-1.2.2-ORIG/configure.ac nsd-1.2.2/configure.ac
93a94,102
> # Determine the syslog facility to use
> #
> facility=LOG_DAEMON
> AC_ARG_WITH([facility],
>         AC_HELP_STRING([--with-facility=name], [Syslog default facility
(LOG_DAEMON)]),
>         [facility=$withval])
> AC_SUBST(facility)
> 
> #
290d298
< AC_DEFINE_UNQUOTED([FACILITY], [LOG_DAEMON], [Define to the default facility
for syslog.])
Comment 1 Erik Rozendaal 2003-09-08 10:31:53 CEST
Added in the NSD 1.2.x and 1.3.x branches.