diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2007-07-08 15:05:27 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2007-07-08 15:05:27 +0000 |
commit | 93d812520507695149810b8ab528f9f1d1d03c26 (patch) | |
tree | e913b6ee022a1f5ceeebdeeccb2531b9e3d8745a /net | |
parent | - Update to 3.4.0 RC 2 (diff) |
Use LOG_NTP syslog facility.
PR: 114191
Submitted by: Robert Archer <freebsd@deathbeforedecaf.net>
Notes
Notes:
svn path=/head/; revision=195222
Diffstat (limited to 'net')
-rw-r--r-- | net/openntpd/Makefile | 1 | ||||
-rw-r--r-- | net/openntpd/files/patch-log.c | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/net/openntpd/Makefile b/net/openntpd/Makefile index bddc94b93f69..5a6e6abc3a62 100644 --- a/net/openntpd/Makefile +++ b/net/openntpd/Makefile @@ -7,6 +7,7 @@ PORTNAME= openntpd PORTVERSION= 3.9p1 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= net MASTER_SITES= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \ diff --git a/net/openntpd/files/patch-log.c b/net/openntpd/files/patch-log.c new file mode 100644 index 000000000000..95cb3fbb0f51 --- /dev/null +++ b/net/openntpd/files/patch-log.c @@ -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(); + } |