diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-20 19:52:06 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-20 19:52:06 +0000 |
commit | d4d7098dcb2f9dd257109bbcb55fd40beda1b78d (patch) | |
tree | 48d3c6b3c45f18db0f90650f822ea19a10284f61 /net-misc/sntpd/sntpd-3.1-r1.ebuild | |
parent | 4161fa7d1be6dac96e36f8ed343f234a8ef3a74f (diff) |
gentoo auto-resync : 20:12:2022 - 19:52:06
Diffstat (limited to 'net-misc/sntpd/sntpd-3.1-r1.ebuild')
-rw-r--r-- | net-misc/sntpd/sntpd-3.1-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-misc/sntpd/sntpd-3.1-r1.ebuild b/net-misc/sntpd/sntpd-3.1-r1.ebuild new file mode 100644 index 000000000000..97c84bd647d9 --- /dev/null +++ b/net-misc/sntpd/sntpd-3.1-r1.ebuild @@ -0,0 +1,38 @@ +# 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=" + adjtimex? ( !net-misc/adjtimex ) + 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 +} |