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 921A8138359 for ; Tue, 25 Aug 2020 10:36:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC6FDE082F; Tue, 25 Aug 2020 10:36:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 A0BA7E0866 for ; Tue, 25 Aug 2020 10:36:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 774E4340B3F for ; Tue, 25 Aug 2020 10:36:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 27E292B2 for ; Tue, 25 Aug 2020 10:36:30 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1598351772.a0afd56d1ce1f0d09006e62f182646657fb0f7b0.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/sntpd/files/, net-misc/sntpd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/sntpd/files/sntpd.initd-r1 net-misc/sntpd/sntpd-3.0-r1.ebuild X-VCS-Directories: net-misc/sntpd/files/ net-misc/sntpd/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a0afd56d1ce1f0d09006e62f182646657fb0f7b0 X-VCS-Branch: master Date: Tue, 25 Aug 2020 10:36:30 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d5b9e4c5-8752-410f-8898-bc6dbf19e984 X-Archives-Hash: 4020f238babfe78b67f48ededadc41fd commit: a0afd56d1ce1f0d09006e62f182646657fb0f7b0 Author: Conrad Kostecki gentoo org> AuthorDate: Tue Aug 25 10:32:58 2020 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Aug 25 10:36:12 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0afd56d net-misc/sntpd: fix creation of pidfile Also added missing systemd inherit. Closes: https://bugs.gentoo.org/738870 Closes: https://bugs.gentoo.org/738894 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Conrad Kostecki gentoo.org> net-misc/sntpd/files/sntpd.initd-r1 | 14 ++++++++++++++ net-misc/sntpd/sntpd-3.0-r1.ebuild | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-misc/sntpd/files/sntpd.initd-r1 b/net-misc/sntpd/files/sntpd.initd-r1 new file mode 100644 index 00000000000..ebe857af4af --- /dev/null +++ b/net-misc/sntpd/files/sntpd.initd-r1 @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="sntpd" +pidfile="/run/sntpd.pid" + +command="/usr/sbin/sntpd" +command_args="-n ${SNTPD_OPTS}" +command_background="true" + +depend() { + use net dns logger +} diff --git a/net-misc/sntpd/sntpd-3.0-r1.ebuild b/net-misc/sntpd/sntpd-3.0-r1.ebuild new file mode 100644 index 00000000000..5edf61d7f02 --- /dev/null +++ b/net-misc/sntpd/sntpd-3.0-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd + +DESCRIPTION="A NTP (RFC-1305 and RFC-4330) client and server for unix-alike systems" +HOMEPAGE="https://github.com/troglobit/sntpd" +SRC_URI="https://github.com/troglobit/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="adjtimex systemd" + +RDEPEND="systemd? ( sys-apps/systemd )" +DEPEND="${RDEPEND}" + +src_configure() { + local myeconfargs=( + $(use_with adjtimex) + $(use_with systemd systemd $(systemd_get_systemunitdir)) + --with-ntpclient + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + newinitd "${FILESDIR}"/sntpd.initd-r1 sntpd + newconfd "${FILESDIR}"/sntpd.confd sntpd +}