From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E398A138334 for ; Fri, 1 Jun 2018 19:10:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CC1CE0855; Fri, 1 Jun 2018 19:10:30 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BDCD0E0855 for ; Fri, 1 Jun 2018 19:10:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B1D81335C0C for ; Fri, 1 Jun 2018 19:10:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4620A2A0 for ; Fri, 1 Jun 2018 19:10:25 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1527880214.6eb170217d70df674dccf0973f6d933c8e88305a.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/omnisync/files/, net-misc/omnisync/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/omnisync/Manifest net-misc/omnisync/files/omnisync.confd net-misc/omnisync/files/omnisync.initd net-misc/omnisync/metadata.xml net-misc/omnisync/omnisync-1.0.ebuild X-VCS-Directories: net-misc/omnisync/ net-misc/omnisync/files/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 6eb170217d70df674dccf0973f6d933c8e88305a X-VCS-Branch: master Date: Fri, 1 Jun 2018 19:10:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 84b33057-c731-43fd-9176-cab147032013 X-Archives-Hash: dd38106f143ec402a66e39bf50a9ee4d commit: 6eb170217d70df674dccf0973f6d933c8e88305a Author: Brian Evans gentoo org> AuthorDate: Fri Jun 1 19:10:14 2018 +0000 Commit: Brian Evans gentoo org> CommitDate: Fri Jun 1 19:10:14 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb17021 net-misc/omnisync: New package Driver for NTPd for people who are firewall-challenged Package-Manager: Portage-2.3.40, Repoman-2.3.9 net-misc/omnisync/Manifest | 1 + net-misc/omnisync/files/omnisync.confd | 21 ++++++++++++++++++ net-misc/omnisync/files/omnisync.initd | 20 +++++++++++++++++ net-misc/omnisync/metadata.xml | 8 +++++++ net-misc/omnisync/omnisync-1.0.ebuild | 40 ++++++++++++++++++++++++++++++++++ 5 files changed, 90 insertions(+) diff --git a/net-misc/omnisync/Manifest b/net-misc/omnisync/Manifest new file mode 100644 index 00000000000..176a959130c --- /dev/null +++ b/net-misc/omnisync/Manifest @@ -0,0 +1 @@ +DIST omnisync-1.0.tgz 27725 BLAKE2B 00e546e3a04c8483f4a3995207fe6715e25526ca639f517220725c31d50d1c01fe0d15927e11e84143f3b2c8aa80ede1317c818945f0249147548bb03d27f744 SHA512 742ffc0a85bd923b99ae7e4f50a6aaa29107eaa987039e902797c78a9673e914e1fa61b2484c6777f62b0caf8b3110a071fd103c8b18456083883df534a1ef4d diff --git a/net-misc/omnisync/files/omnisync.confd b/net-misc/omnisync/files/omnisync.confd new file mode 100644 index 00000000000..c2ab3cc58f0 --- /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 00000000000..7820af6e94e --- /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: diff --git a/net-misc/omnisync/metadata.xml b/net-misc/omnisync/metadata.xml new file mode 100644 index 00000000000..b651dc535e3 --- /dev/null +++ b/net-misc/omnisync/metadata.xml @@ -0,0 +1,8 @@ + + + + + grknight@gentoo.org + Brian Evans + + diff --git a/net-misc/omnisync/omnisync-1.0.ebuild b/net-misc/omnisync/omnisync-1.0.ebuild new file mode 100644 index 00000000000..6c0ff7635dc --- /dev/null +++ b/net-misc/omnisync/omnisync-1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="A driver for NTPd for people who are firewall-challenged" +HOMEPAGE="https://www.vanheusden.com/time/omnisync" +LICENSE="GPL-2" +SRC_URI="https://www.vanheusden.com/time/${PN}/${P}.tgz" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +RDEPEND="dev-libs/openssl:0= net-analyzer/net-snmp:=" +DEPEND="${RDEPEND}" +DOCS=( readme.txt Changes ) + +src_prepare() { + default + tc-export CC + sed -i -e 's/-O2 -Wall/-Wall/' -e 's/-lsnmp/-lnetsnmp/' "${S%/}/Makefile" || die + use debug || sed -i -e 's/$(DEBUG)//' "${S%/}/Makefile" || die +} + +src_install() { + dosbin omnisync + newinitd "${FILESDIR%/}/${PN}.initd" ${PN} + newconfd "${FILESDIR%/}/${PN}.confd" ${PN} + einstalldocs +} + +pkg_postinst() { + local isConfigured=$(grep 'OMNISYNC_MODE=""' "${ROOT%/}/etc/conf.d/${PN}") + if [[ -n "${isConfigured}" ]] ; then + elog "Be sure to configure ${PN} in ${ROOT%/}/etc/conf.d before trying to start the service" + fi +}