summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-06-01 15:10:14 -0400
committerBrian Evans <grknight@gentoo.org>2018-06-01 15:10:14 -0400
commit6eb170217d70df674dccf0973f6d933c8e88305a (patch)
treea867f5b7952c9cbdbb907b5ae29062ddeb0c7545 /net-misc/omnisync/files
parentsys-fs/hfsutils: use HTTPs (diff)
downloadgentoo-6eb170217d70df674dccf0973f6d933c8e88305a.tar.gz
gentoo-6eb170217d70df674dccf0973f6d933c8e88305a.tar.bz2
gentoo-6eb170217d70df674dccf0973f6d933c8e88305a.zip
net-misc/omnisync: New package
Driver for NTPd for people who are firewall-challenged Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-misc/omnisync/files')
-rw-r--r--net-misc/omnisync/files/omnisync.confd21
-rw-r--r--net-misc/omnisync/files/omnisync.initd20
2 files changed, 41 insertions, 0 deletions
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..7820af6e94e3
--- /dev/null
+++ b/net-misc/omnisync/files/omnisync.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+}
+
+command="/usr/sbin/omnisync"
+command_args="-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: