diff options
author | LEVAI Daniel <leva@ecentrum.hu> | 2015-01-09 07:10:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-09 07:10:40 +0700 |
commit | 36f101a0ebf2c62c3293f06d415958bd22621604 (patch) | |
tree | 3977fae6d4c036e52262411f0b9e441d9c8f07f0 /network/openntpd/patches | |
parent | 9ab32a1f296c23ce646fc080bf20e7f57c164b8d (diff) |
network/openntpd: Added (Network Time Protocol client/server).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/openntpd/patches')
-rw-r--r-- | network/openntpd/patches/01-ntpctl_rename.diff | 41 | ||||
-rw-r--r-- | network/openntpd/patches/02-ntpd_8_clean.diff | 39 | ||||
-rw-r--r-- | network/openntpd/patches/02-ntpd_conf_5_clean.diff | 18 |
3 files changed, 98 insertions, 0 deletions
diff --git a/network/openntpd/patches/01-ntpctl_rename.diff b/network/openntpd/patches/01-ntpctl_rename.diff new file mode 100644 index 000000000000..acf5c7186acd --- /dev/null +++ b/network/openntpd/patches/01-ntpctl_rename.diff @@ -0,0 +1,41 @@ +--- a/ntpd.c.orig 2015-01-08 10:43:16.834158734 +0100 ++++ b/ntpd.c 2015-01-08 10:46:24.943458619 +0100 +@@ -100,8 +100,9 @@ usage(void) + { + extern char *__progname; + +- if (strcmp(__progname, "ntpctl") == 0) +- fprintf(stderr, "usage: ntpctl [-s all | peers | Sensors | status]\n"); ++ if (strcmp(__progname, "openntpctl") == 0) ++ fprintf(stderr, "usage: %s [-s all | peers | Sensors | status]\n", ++ __progname); + else + fprintf(stderr, "usage: %s [-dnSsv] [-f file] [-p file]\n", + __progname); +@@ -124,7 +125,7 @@ main(int argc, char *argv[]) + extern char *__progname; + time_t start_time; + +- if (strcmp(__progname, "ntpctl") == 0) { ++ if (strcmp(__progname, "openntpctl") == 0) { + ctl_main (argc, argv); + /* NOTREACHED */ + } +@@ -605,7 +606,7 @@ ctl_main(int argc, char *argv[]) + usage(); + + if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) +- err(1, "ntpctl: socket"); ++ err(1, "openntpctl: socket"); + + bzero(&sa, sizeof(sa)); + sa.sun_family = AF_UNIX; +@@ -650,7 +651,7 @@ ctl_main(int argc, char *argv[]) + if ((n = imsg_read(ibuf_ctl)) == -1) + err(1, "ibuf_ctl: imsg_read error"); + if (n == 0) +- errx(1, "ntpctl: pipe closed"); ++ errx(1, "openntpctl: pipe closed"); + + while (!done) { + if ((n = imsg_get(ibuf_ctl, &imsg)) == -1) diff --git a/network/openntpd/patches/02-ntpd_8_clean.diff b/network/openntpd/patches/02-ntpd_8_clean.diff new file mode 100644 index 000000000000..5133f5bc563f --- /dev/null +++ b/network/openntpd/patches/02-ntpd_8_clean.diff @@ -0,0 +1,39 @@ +--- a/ntpd.8.orig 2015-01-08 07:57:55.000000000 +0100 ++++ b/ntpd.8 2015-01-08 11:35:04.889368624 +0100 +@@ -1,7 +1,3 @@ +-.\" $OpenBSD: ntpd.8,v 1.36 2013/10/04 14:28:16 phessler Exp $ +-.\" +-.\" Copyright (c) 2003, 2004, 2006 Henning Brauer <henning@openbsd.org> +-.\" + .\" Permission to use, copy, modify, and distribute this software for any + .\" purpose with or without fee is hereby granted, provided that the above + .\" copyright notice and this permission notice appear in all copies. +@@ -99,19 +95,6 @@ adjusts the clock frequency using the + .Xr adjfreq 2 + system call to compensate for systematic drift. + .Pp +-.Nm +-is usually started at boot time, and can be enabled by +-setting +-.Va ntpd_flags +-in +-.Pa /etc/rc.conf.local . +-See +-.Xr rc 8 +-and +-.Xr rc.conf 8 +-for more information on the boot process +-and enabling daemons. +-.Pp + When + .Nm + starts up, it reads settings from its configuration file, +@@ -144,8 +127,6 @@ Socket file for communication with + .Xr adjtime 2 , + .Xr ntpd.conf 5 , + .Xr ntpctl 8 , +-.Xr rc 8 , +-.Xr rc.conf 8 , + .Xr rdate 8 + .Sh STANDARDS + .Rs diff --git a/network/openntpd/patches/02-ntpd_conf_5_clean.diff b/network/openntpd/patches/02-ntpd_conf_5_clean.diff new file mode 100644 index 000000000000..7a6e7cfdb5c1 --- /dev/null +++ b/network/openntpd/patches/02-ntpd_conf_5_clean.diff @@ -0,0 +1,18 @@ +--- a/ntpd.conf.5.orig 2015-01-08 11:35:23.671118459 +0100 ++++ b/ntpd.conf.5 2015-01-08 11:36:10.673989819 +0100 +@@ -1,5 +1,3 @@ +-.\" $OpenBSD: ntpd.conf.5,v 1.23 2011/09/21 15:41:30 phessler Exp $ +-.\" + .\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> + .\" + .\" Permission to use, copy, modify, and distribute this software for any +@@ -196,9 +194,3 @@ The + .Nm + file format first appeared in + .Ox 3.6 . +-.Sh CAVEATS +-When using different +-.Cm rtable +-options, +-.Xr ntpd 8 +-must be started in rtable 0. |