diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-06-02 10:47:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-06-02 10:47:13 +0100 |
commit | 6c14fa2586d9e9c4427b5f727dc6c8ab77587cec (patch) | |
tree | 401ffbc2ade49ce18f6182969ec5fb697a57ce48 /net-misc/omnisync/files | |
parent | d4bd6695641f6d2ec7ff8681913d304e995902f5 (diff) |
gentoo resync : 02.06.2018
Diffstat (limited to 'net-misc/omnisync/files')
-rw-r--r-- | net-misc/omnisync/files/omnisync-1.0-help.patch | 16 | ||||
-rw-r--r-- | net-misc/omnisync/files/omnisync-1.0-maxshm.patch | 18 | ||||
-rw-r--r-- | net-misc/omnisync/files/omnisync-1.0-statfile.patch | 18 | ||||
-rw-r--r-- | net-misc/omnisync/files/omnisync.confd | 21 | ||||
-rw-r--r-- | net-misc/omnisync/files/omnisync.initd | 27 |
5 files changed, 100 insertions, 0 deletions
diff --git a/net-misc/omnisync/files/omnisync-1.0-help.patch b/net-misc/omnisync/files/omnisync-1.0-help.patch new file mode 100644 index 000000000000..47ff5201c030 --- /dev/null +++ b/net-misc/omnisync/files/omnisync-1.0-help.patch @@ -0,0 +1,16 @@ +main: fix help missing newline + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> + +diff -Nuar --exclude '*~' omnisync-1.0.orig/main.c omnisync-1.0/main.c +--- omnisync-1.0.orig/main.c 2009-01-02 01:03:20.000000000 -0800 ++++ omnisync-1.0/main.c 2018-06-01 14:31:25.720686155 -0700 +@@ -139,7 +139,7 @@ + printf("-c x community (snmp only)\n"); + printf("-h x host to connect to\n"); + printf("-u x ntpd shared memory unit\n"); +- printf("-z x do an initial step, to speed up syncing, parameter is number of samples"); ++ printf("-z x do an initial step, to speed up syncing, parameter is number of samples\n"); + printf("-S x write measurements to file x\n"); + printf("-n do NOT submit to NTPd/set clock, query only (use in combination with -v and -f)\n"); + printf("-f do not fork\n"); diff --git a/net-misc/omnisync/files/omnisync-1.0-maxshm.patch b/net-misc/omnisync/files/omnisync-1.0-maxshm.patch new file mode 100644 index 000000000000..678c6e0072dd --- /dev/null +++ b/net-misc/omnisync/files/omnisync-1.0-maxshm.patch @@ -0,0 +1,18 @@ +main: raise SHM unit limit + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> + +diff -Nuar --exclude '*~' omnisync-1.0.orig/main.c omnisync-1.0/main.c +--- omnisync-1.0.orig/main.c 2009-01-02 01:03:20.000000000 -0800 ++++ omnisync-1.0/main.c 2018-06-01 14:32:34.630066839 -0700 +@@ -346,8 +346,8 @@ + unit_nr = atoi(optarg); + if (unit_nr < 0) + error_exit("-u requires a positive value\n"); +- if (unit_nr > 3) +- error_exit("NTPd normally supports only 4 shared memory devices, still continuing though\n"); ++ if (unit_nr > 254) ++ error_exit("NTPd normally supports only 254 shared memory devices\n"); + break; + + case 'v': diff --git a/net-misc/omnisync/files/omnisync-1.0-statfile.patch b/net-misc/omnisync/files/omnisync-1.0-statfile.patch new file mode 100644 index 000000000000..972316a33bd1 --- /dev/null +++ b/net-misc/omnisync/files/omnisync-1.0-statfile.patch @@ -0,0 +1,18 @@ +main: wire up stats_file variable + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> + +diff -Nuar --exclude '*~' omnisync-1.0.orig/main.c omnisync-1.0/main.c +--- omnisync-1.0.orig/main.c 2009-01-02 01:03:20.000000000 -0800 ++++ omnisync-1.0/main.c 2018-06-01 14:39:22.115229735 -0700 +@@ -358,6 +358,10 @@ + version(); + return 0; + ++ case 'S': ++ stats_file = optarg; ++ break; ++ + default: + help(); + return 1; diff --git a/net-misc/omnisync/files/omnisync.confd b/net-misc/omnisync/files/omnisync.confd new file mode 100644 index 000000000000..c2ab3cc58f0e --- /dev/null +++ b/net-misc/omnisync/files/omnisync.confd @@ -0,0 +1,21 @@ +# REQUIRED, must be one of time/tcp time/udp daytime/tcp daytime/udp http https +# snts irc icmp icmp snmp simpleptpl socks5sntp sntp +OMNISYNC_MODE="" + +# Options to add +# -F x fudge factor (default: 0.000000) -m x max. offset (default: 7200.000000) +# -p x proxy-server (http/https/socks5sntp only) +# -B x bind to interface x (not for snmp) +# -I x username[:password] (irc/socks5 auth. only) +# -c x community (snmp only) +# -h x host to connect to +# -u x ntpd shared memory unit +# -z x do an initial step, to speed up syncing, parameter is number of samples-S x write measurements to file x +# -n do NOT submit to NTPd/set clock, query only (use in combination with -v and -f) +# -f do not fork +# -i x check interval (default: 60) +# -d x timeout +# -U x set user to run as +# -P x write pid to file x +# -v increase verbosity +OMNISYNC_ARGS="" diff --git a/net-misc/omnisync/files/omnisync.initd b/net-misc/omnisync/files/omnisync.initd new file mode 100644 index 000000000000..c71e63d4d3e3 --- /dev/null +++ b/net-misc/omnisync/files/omnisync.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net dns +} + +INSTANCE=${SVCNAME#*.} +if [ -n "${INSTANCE}" ] && [ ${SVCNAME} != "omnisync" ]; then + pidfile="/var/run/omnisync.${INSTANCE}.pid" +else + pidfile="/var/run/omnisync.pid" +fi + +command="/usr/sbin/omnisync" +command_args="-P ${pidfile} -M ${OMNISYNC_MODE} ${OMNISYNC_ARGS}" + +start_pre() { + if [ -z "${OMNISYNC_MODE}" ] ; then + eerror 'Configuration incomplete! OMNISYNC_MODE not set' + return 1 + fi + return 0 +} + +# vim: filetype=gentoo-init-d sw=2 ts=2 sts=2 noet: |