From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- net-misc/sntpd/sntpd-3.0-r2.ebuild | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 net-misc/sntpd/sntpd-3.0-r2.ebuild (limited to 'net-misc/sntpd/sntpd-3.0-r2.ebuild') diff --git a/net-misc/sntpd/sntpd-3.0-r2.ebuild b/net-misc/sntpd/sntpd-3.0-r2.ebuild new file mode 100644 index 000000000000..f7b2bb80a6a1 --- /dev/null +++ b/net-misc/sntpd/sntpd-3.0-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 +} -- cgit v1.2.3