mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Use LOG_NTP syslog facility.
PR: 114191 Submitted by: Robert Archer <freebsd@deathbeforedecaf.net>
This commit is contained in:
parent
9e8ae7a562
commit
93d8125205
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195222
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= openntpd
|
||||
PORTVERSION= 3.9p1
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
|
||||
|
25
net/openntpd/files/patch-log.c
Normal file
25
net/openntpd/files/patch-log.c
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- log.c.orig
|
||||
+++ log.c
|
||||
@@ -28,6 +28,10 @@
|
||||
|
||||
#include "ntpd.h"
|
||||
|
||||
+#ifndef LOG_NTP
|
||||
+#define LOG_NTP LOG_DAEMON
|
||||
+#endif
|
||||
+
|
||||
int debug;
|
||||
|
||||
void logit(int, const char *, ...);
|
||||
@@ -40,7 +44,7 @@
|
||||
debug = n_debug;
|
||||
|
||||
if (!debug)
|
||||
- openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
|
||||
+ openlog(__progname, LOG_PID | LOG_NDELAY, LOG_NTP);
|
||||
|
||||
tzset();
|
||||
}
|
Loading…
Reference in New Issue
Block a user