diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-08-23 18:30:40 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-08-23 19:21:42 +0200 |
commit | 0bb4f0eae500cb0dbdcdd5b5a4573f1c2e2acf23 (patch) | |
tree | 28417ee4c9fae7e438d770a5d8be77ffd24f84a2 /net-misc/sntpd | |
parent | net-misc/ntpclient: drop old version (diff) | |
download | gentoo-0bb4f0eae500cb0dbdcdd5b5a4573f1c2e2acf23.tar.gz gentoo-0bb4f0eae500cb0dbdcdd5b5a4573f1c2e2acf23.tar.bz2 gentoo-0bb4f0eae500cb0dbdcdd5b5a4573f1c2e2acf23.zip |
net-misc/ntpclient: rename to net-misc/sntpd
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-misc/sntpd')
-rw-r--r-- | net-misc/sntpd/Manifest | 1 | ||||
-rw-r--r-- | net-misc/sntpd/files/ntpclient-2018.244-linux-headers-5.2.patch | 10 | ||||
-rw-r--r-- | net-misc/sntpd/metadata.xml | 26 | ||||
-rw-r--r-- | net-misc/sntpd/sntpd-2.2018.244-r1.ebuild | 36 |
4 files changed, 73 insertions, 0 deletions
diff --git a/net-misc/sntpd/Manifest b/net-misc/sntpd/Manifest new file mode 100644 index 000000000000..ee7f4f690cd4 --- /dev/null +++ b/net-misc/sntpd/Manifest @@ -0,0 +1 @@ +DIST ntpclient-2018_244.tar.xz 108056 BLAKE2B 52c554fe238521e8820111a19220a532406137b2e21c67558fd8252ea2e4d60a7827f4acd1a2868f7a7f6f09c7b25c4267f4cd28773088a12132fa580b02bb4c SHA512 4c1c7e1088365679182507e21386bcf670713aed4b636687fbbe226219fdcbc25e27e2369912a78c662058cba9b6b409fb90978315806a3ed5ea59c70133e4bc diff --git a/net-misc/sntpd/files/ntpclient-2018.244-linux-headers-5.2.patch b/net-misc/sntpd/files/ntpclient-2018.244-linux-headers-5.2.patch new file mode 100644 index 000000000000..df87cb6ceb22 --- /dev/null +++ b/net-misc/sntpd/files/ntpclient-2018.244-linux-headers-5.2.patch @@ -0,0 +1,10 @@ +--- a/src/ntpclient.c 2018-08-27 20:38:12.000000000 +0200 ++++ b/src/ntpclient.c 2019-08-19 20:11:59.000000000 +0200 +@@ -40,6 +40,7 @@ + #include <unistd.h> + #include <errno.h> + #ifdef PRECISION_SIOCGSTAMP ++#include <linux/sockios.h> + #include <sys/ioctl.h> + #endif + #ifdef USE_OBSOLETE_GETTIMEOFDAY diff --git a/net-misc/sntpd/metadata.xml b/net-misc/sntpd/metadata.xml new file mode 100644 index 000000000000..3582e10f27d3 --- /dev/null +++ b/net-misc/sntpd/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>monsieurp@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>conikost@gentoo.org</email> + <name>Conrad Kostecki</name> + </maintainer> + <longdescription> + NTPClient is an NTP client for UNIX-like systems, RFC 1305 and RFC 4330. + Its functionality is a small subset of ntpd, chrony, OpenNTPd, and xntpd. + Since it is much smaller, it is also more relevant for embedded systems in need of only a client. + </longdescription> + <upstream> + <bugs-to>https://github.com/troglobit/sntpd/issues</bugs-to> + <remote-id type="github">troglobit/sntpd</remote-id> + </upstream> + <use> + <flag name="debug">Enable analysis code path and debugging of NTP protocol.</flag> + <flag name="embedded">Build a very small ntpclient, from OpenWRT project.</flag> + <flag name="obsolete">Enable obsolete features, to use with kernel versions older than 3.0</flag> + <flag name="syslog">Enable logging to syslog instead of logging to stderr.</flag> + </use> +</pkgmetadata> diff --git a/net-misc/sntpd/sntpd-2.2018.244-r1.ebuild b/net-misc/sntpd/sntpd-2.2018.244-r1.ebuild new file mode 100644 index 000000000000..f6b938200cc1 --- /dev/null +++ b/net-misc/sntpd/sntpd-2.2018.244-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="ntpclient" +MY_PV="${PV/2./}" +MY_P="${MY_PN}-${MY_PV/./_}" + +DESCRIPTION="A NTP (RFC-1305 and RFC-4330) client for unix-alike systems" +HOMEPAGE="https://github.com/troglobit/sntpd" +SRC_URI="https://github.com/troglobit/sntpd/releases/download/${MY_PV}/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86" +IUSE="debug embedded obsolete +syslog" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${MY_PN}-${MY_PV}-linux-headers-5.2.patch" +) + +src_configure() { + local myeconfargs=( + $(use_enable debug) + $(use_enable debug replay) + $(use_enable embedded mini) + $(use_enable obsolete) + $(use_enable !obsolete siocgstamp) + $(use_enable syslog) + ) + + econf "${myeconfargs[@]}" +} |