summaryrefslogtreecommitdiff
path: root/net-misc/sntpd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-misc/sntpd
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'net-misc/sntpd')
-rw-r--r--net-misc/sntpd/Manifest8
-rw-r--r--net-misc/sntpd/files/ntpclient-2018.244-linux-headers-5.2.patch10
-rw-r--r--net-misc/sntpd/files/sntpd.confd5
-rw-r--r--net-misc/sntpd/files/sntpd.initd13
-rw-r--r--net-misc/sntpd/metadata.xml27
-rw-r--r--net-misc/sntpd/sntpd-2.2018.244-r1.ebuild36
-rw-r--r--net-misc/sntpd/sntpd-3.0.ebuild33
7 files changed, 132 insertions, 0 deletions
diff --git a/net-misc/sntpd/Manifest b/net-misc/sntpd/Manifest
new file mode 100644
index 000000000000..f798293cbaae
--- /dev/null
+++ b/net-misc/sntpd/Manifest
@@ -0,0 +1,8 @@
+AUX ntpclient-2018.244-linux-headers-5.2.patch 298 BLAKE2B bf39e7f0300b925a468c423d2ed6d41bb646ff4b034e264784e64fc6aeb9497c40154e21b1a76930104d2f62b8cdfa3d17ba3abdbbfefe95a3329438a009938d SHA512 dc92198426f3a859c5ff2618f754c279aa24e147ec0b165baa85af213c42bf011e7f2f13e33116839fc5b8fdc7e79405f113cee253bc5adbfb2fa40cbc6c3596
+AUX sntpd.confd 243 BLAKE2B fc2d82b48e8b57e346ebe5fc65750368b09dce96dadbc159033d7181e9bf0a71794969b24310975b72d10faa22753ca3cc751c03b3f0775aa085f39d87f695f0 SHA512 b2ecb3e96418d36504c8ceab5ec88f7415e7fc32c00bd9fee0eb6fb643f207b5c0e481427e1fdb7a3e52a5bc2619b67363e7c27dd48e67eab61910906b86df3f
+AUX sntpd.initd 252 BLAKE2B b574c0e208548dc960a8dcef5998fc44246c77972a7d09938c775b54beffdcb39cfd300b7d72c502f16c9382b30c8aab65881386bb027ab4d5969e3bf7a5abd3 SHA512 7bc79fe425d078309c1b064e365ec6ff02880f97a05c83607bd4ebcd747be1d11e9f26d64408edfff53044555fa6fb828887f1902d09c69e7d03c148bac588d1
+DIST ntpclient-2018_244.tar.xz 108056 BLAKE2B 52c554fe238521e8820111a19220a532406137b2e21c67558fd8252ea2e4d60a7827f4acd1a2868f7a7f6f09c7b25c4267f4cd28773088a12132fa580b02bb4c SHA512 4c1c7e1088365679182507e21386bcf670713aed4b636687fbbe226219fdcbc25e27e2369912a78c662058cba9b6b409fb90978315806a3ed5ea59c70133e4bc
+DIST sntpd-3.0.tar.gz 151995 BLAKE2B a67615c874fd119e083d99d269a92a550d875a18a973e0b2904cab1fe6631b6c4e98d86959fbd9c1a387396f1854ed1c264920e2b40e6355871cbc8a4e40a4b5 SHA512 664e95e590b329dc847275c99829711c159bf91fadb2a90989c2706fbd8b074480146a7a05c5532a1bbfcaebd4b489262a44e418fa8ac57362c4f7db659fd1ea
+EBUILD sntpd-2.2018.244-r1.ebuild 861 BLAKE2B 453645dce4a010fa7b58164ee9229204e5b697754320e5b31c0d8fa27229fbe2e21022343585e2503e8074e40fd4d278ec6e7288285e8de428e857631066c05f SHA512 4062ce0572a597f336009fd11104f7f6aaac43aef17b41ab77978089aacdb780245bf96d5aa2125a68cab41b13753593257462eb4fbd6ba078eb3f1f0cdc9d70
+EBUILD sntpd-3.0.ebuild 803 BLAKE2B 78a4ebd3e706f02548695580e29582c18162cf2e2ee037d54d3f10b9de0689ca816eac72ac2bf25004f235c52f077e289951588778a42f3866996d407fe41956 SHA512 5df2212d0c740738b5ff1fe74932ea64cf62b71862f16bdb89c3d665ac30d1c017534979c8424fea809a668da26b94cbfa355166dc237fb370e6f6c719a49b05
+MISC metadata.xml 1215 BLAKE2B ea6284bde03ea2157cd105851ad90a1a2cf379bc6b5f0742866d25fdb2997e0875dcb350984daa79b63625b525d1b53cde28b3fa47220591540a165955273fc4 SHA512 eba1d1787f52e8101cb64df313df7eb3ddc2e6b593d9acbc8b5a8accacdd6d7b0fd02c4b73e65ffd73fce1bbbd10f3d206989e5b2d5280ad84aac97506568659
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/files/sntpd.confd b/net-misc/sntpd/files/sntpd.confd
new file mode 100644
index 000000000000..ef7a12ef8a43
--- /dev/null
+++ b/net-misc/sntpd/files/sntpd.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Additional command line options
+SNTPD_OPTS="-s 0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
diff --git a/net-misc/sntpd/files/sntpd.initd b/net-misc/sntpd/files/sntpd.initd
new file mode 100644
index 000000000000..2e4c0652c940
--- /dev/null
+++ b/net-misc/sntpd/files/sntpd.initd
@@ -0,0 +1,13 @@
+#!/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="${SNTPD_OPTS}"
+
+depend() {
+ use net dns logger
+}
diff --git a/net-misc/sntpd/metadata.xml b/net-misc/sntpd/metadata.xml
new file mode 100644
index 000000000000..0d0a5d1ae349
--- /dev/null
+++ b/net-misc/sntpd/metadata.xml
@@ -0,0 +1,27 @@
+<?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="adjtimex">Install adjtimex for the clock adjustment algorithm.</flag>
+ <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[@]}"
+}
diff --git a/net-misc/sntpd/sntpd-3.0.ebuild b/net-misc/sntpd/sntpd-3.0.ebuild
new file mode 100644
index 000000000000..4b7079d372b3
--- /dev/null
+++ b/net-misc/sntpd/sntpd-3.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 sntpd
+ newconfd "${FILESDIR}"/sntpd.confd sntpd
+}