summaryrefslogtreecommitdiff
path: root/net-misc/sntpd/files
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/files
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'net-misc/sntpd/files')
-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
3 files changed, 28 insertions, 0 deletions
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
+}