summaryrefslogtreecommitdiff
path: root/net-misc/clockspeed
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-01 17:48:32 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-01 17:48:32 +0000
commit22230e510e031a97cafc85353610e573b7508e98 (patch)
tree5c9d831e9e8f88f2242dc85d277019715f77c501 /net-misc/clockspeed
parent1e39e6a8c127767a57f0465ed9ece4fefb44b4ae (diff)
gentoo auto-resync : 01:02:2024 - 17:48:32
Diffstat (limited to 'net-misc/clockspeed')
-rw-r--r--net-misc/clockspeed/Manifest2
-rw-r--r--net-misc/clockspeed/clockspeed-0.62-r9.ebuild47
-rw-r--r--net-misc/clockspeed/files/clockspeed-0.62-fix-clang16-build.patch212
3 files changed, 261 insertions, 0 deletions
diff --git a/net-misc/clockspeed/Manifest b/net-misc/clockspeed/Manifest
index 5ee1003a2a0a..966603f6ffa8 100644
--- a/net-misc/clockspeed/Manifest
+++ b/net-misc/clockspeed/Manifest
@@ -1,6 +1,8 @@
+AUX clockspeed-0.62-fix-clang16-build.patch 4096 BLAKE2B 000d3fc58ccb8a92a9d7c33db2fbb20dd70a3177d645dc927e2bedccb227a53583d2a987a16d22ba78f4f3df27b5ed5e78e4bec012fcd53335537c0b7b5ca7f0 SHA512 9e7fba53942b79818c6940abce4f8f4527e4ef89c4aed623b74082960c1210bd96ee2858944cf71c21b80e69a30f87c61d3a32d52f40c8e8e774c2633aefa0a9
AUX clockspeed-0.62-gentoo.patch 6605 BLAKE2B e8394fe60510c0505cd343fb38ac080ccdd8d80d14aeed09bae24113748aa33d3cb5428bedbcc164355e48c90fcb9ffd391e198806c6089bfcb8a9f20c19ab85 SHA512 83a7e8ff40a0b3871256b9e151dd99bda903c8e230698d753a535d336a2d95c8514e97133dfd271a69345f4b100fb608d621b46183f082ec6f62bbf4d24d784b
AUX ntpclockset 1100 BLAKE2B a84e6d6ec78e8d0e9be34640db9f18cb6a15dfe35c583b3f1af654ec6ba39ede15bab5d92ed333c3c9758db532c29503f031157b5e18ee6eb3abcd3104b7410e SHA512 4301f84956df473aea2e13f304fc320897e680619a6933f5fe3b6fa229fc4e34dd6874bb6fa417c462f6eae2513ad7cccc843108331ee0a45fb19c7f0563dc6c
DIST clockspeed-0.62.tar.gz 25797 BLAKE2B 3e409b09dd426dbe33a1aa27e08313bafb5f682ce4fb42740b88841bad2a88b6095e3b0d178c3d2b0f338a99a8ede03e00e79ce09559dc136addfd1d1e1ceca3 SHA512 4dae1cfcfc5eb1398fd5a7642ff91987487d9828d314d4bd9f93cdadc60fe99889280a7f8e9192674ed19d246bd4a450ad32b1258e450216111c488074db7978
DIST leapsecs.dat.20081114 192 BLAKE2B 71113068e1fce9a11b9acba1527d90f6977302b6d8042fe83522fc2fea260a15b18226bc34cd84637b00d0e58a24c24d6f9ea537f1064b82655647ad4c58e0b6 SHA512 c85634ce30f40a03ae45983ee29483fe5859f291a0a69835dad1f50459327b212b8187a0c2c18c9a27fd74f2d69ed0d9a556349c8b2833b9a30107ed259aacc7
EBUILD clockspeed-0.62-r8.ebuild 1172 BLAKE2B bfa0f55f24646ec2c907176353fb95dc8a2c153f9a3c184321aea112b8266e9b4e9ea5512d0a3d86a0f6726bc9a6c282deb2767ef92e2e72327c6c4c37649cf5 SHA512 2896db7d033118923b45898265533cd54969b930c492e92be3eecb0a359a11efe66a6d7e84a9491f43789c27ffbd73bc9e822e4e9696a5573b0f9547f8c51106
+EBUILD clockspeed-0.62-r9.ebuild 1219 BLAKE2B 54a08e5f8f3f818d8edc9c7a913ff0127e23a9c44019219ba765a494aeebf84b1ac8d434bff5bc37e27992a37349d58334c8b47d550b8ae02885f1ad8bd5d28a SHA512 665a0c26765d8a791c28ae71b885f31430a34c071b98ef020a134abaceaaa23f3711d6d20a5c45371b41084a4720ab7a78440b771c2cd76b4c1031a25c8d6c72
MISC metadata.xml 417 BLAKE2B e179a1dcedba9631104d1f58eef7293f9a6e21574983849740f1fb0593f784a6138ccd1940382caa175431fad97aa32dcb18ff183bd54418dccd0da0e0fd860c SHA512 2ee16f79a9b12ac2ba6455c5d19c06ce7fc9ad67b4a51b231fec0e5d57b3b3f57d4e2105686822c98ced5efa2a7f28a3bf5fb9d39dfd0929950bc9cfb55a235b
diff --git a/net-misc/clockspeed/clockspeed-0.62-r9.ebuild b/net-misc/clockspeed/clockspeed-0.62-r9.ebuild
new file mode 100644
index 000000000000..5607768def91
--- /dev/null
+++ b/net-misc/clockspeed/clockspeed-0.62-r9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Simple Network Time Protocol (NTP) client"
+HOMEPAGE="https://cr.yp.to/clockspeed.html"
+
+# this is the trailing part of the name for the latest leapseconds file.
+LEAPSECONDS_DATE="20081114"
+
+SRC_URI="https://cr.yp.to/clockspeed/${P}.tar.gz
+ https://dev.gentoo.org/~pacho/maintainer-needed/leapsecs.dat."$LEAPSECONDS_DATE""
+
+# http://cr.yp.to/distributors.html
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~x86"
+IUSE="static selinux"
+RESTRICT="mirror bindist test"
+
+DEPEND="sys-apps/groff"
+RDEPEND="net-dns/djbdns"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-fix-clang16-build.patch
+)
+
+src_configure() {
+ echo "$(tc-getCC) ${CFLAGS} ${ASFLAGS}" > conf-cc || die
+ use static && append-ldflags -static
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
+}
+
+src_install() {
+ dobin clockspeed clockadd clockview sntpclock taiclock taiclockd
+ dosbin "${FILESDIR}"/ntpclockset
+
+ doman *.1
+ dodoc BLURB CHANGES INSTALL README THANKS TODO
+
+ insinto /var/lib/clockspeed
+ newins "${DISTDIR}"/leapsecs.dat."$LEAPSECONDS_DATE" leapsecs.dat
+}
diff --git a/net-misc/clockspeed/files/clockspeed-0.62-fix-clang16-build.patch b/net-misc/clockspeed/files/clockspeed-0.62-fix-clang16-build.patch
new file mode 100644
index 000000000000..66bc89d0c261
--- /dev/null
+++ b/net-misc/clockspeed/files/clockspeed-0.62-fix-clang16-build.patch
@@ -0,0 +1,212 @@
+Since clang16 implicit function declarations and implicit integers
+result in a compilation error.
+
+Bug: https://bugs.gentoo.org/882307
+Patch has been sent upstream via mail
+
+Pascal Jäger <pascal.jaeger@leimstift.de> (2023-10-03)
+
+--- a/clockspeed.c
++++ b/clockspeed.c
+@@ -1,6 +1,7 @@
++#include <stdio.h>
++#include <sys/stat.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include "readwrite.h"
+ #include "exit.h"
+ #include "select.h"
+ #include "scan.h"
+@@ -11,11 +12,12 @@
+ #include "error.h"
+ #include "auto_home.h"
+ #include "timing.h"
++#include "unistd.h"
+
+ #ifndef HASRDTSC
+ #ifndef HASGETHRTIME
+
+- Error! Need an unadjusted hardware clock.
++#error Need an unadjusted hardware clock.
+
+ #endif
+ #endif
+--- a/clockview.c
++++ b/clockview.c
+@@ -1,3 +1,4 @@
++#include <sys/time.h>
+ #include <sys/types.h>
+ #include <time.h>
+ #include "substdio.h"
+--- a/hier.c
++++ b/hier.c
+@@ -1,5 +1,24 @@
+ #include "auto_home.h"
+
++extern void h(char *home,
++int uid,
++int gid,
++int mode);
++
++extern void d(char *home,
++char *subdir,
++int uid,
++int gid,
++int mode);
++
++extern void c(
++char *home,
++char *subdir,
++char *file,
++int uid,
++int gid,
++int mode);
++
+ void hier()
+ {
+ d("/var/lib","clockspeed",-1,-1,0755);
+--- a/install.c
++++ b/install.c
+@@ -2,8 +2,9 @@
+ #include "strerr.h"
+ #include "error.h"
+ #include "open.h"
+-#include "readwrite.h"
+ #include "exit.h"
++#include <sys/stat.h>
++#include <unistd.h>
+
+ extern void hier();
+
+--- a/instcheck.c
++++ b/instcheck.c
+@@ -2,8 +2,9 @@
+ #include <sys/stat.h>
+ #include "strerr.h"
+ #include "error.h"
+-#include "readwrite.h"
+ #include "exit.h"
++#include <sys/stat.h>
++#include <unistd.h>
+
+ extern void hier();
+
+--- a/leapsecs_read.c
++++ b/leapsecs_read.c
+@@ -1,7 +1,9 @@
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
++#include <unistd.h>
+ #include "tai.h"
+ #include "leapsecs.h"
+
+--- a/sntpclock.c
++++ b/sntpclock.c
+@@ -3,12 +3,12 @@
+ #include <sys/param.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
++#include <unistd.h>
+ #include "strerr.h"
+ #include "ip.h"
+ #include "str.h"
+ #include "byte.h"
+ #include "substdio.h"
+-#include "readwrite.h"
+ #include "select.h"
+ #include "scan.h"
+ #include "leapsecs.h"
+@@ -79,7 +79,7 @@ int flagleap;
+ }
+
+ char outbuf[16];
+-substdio ssout = SUBSTDIO_FDBUF(write,1,outbuf,sizeof outbuf);
++substdio ssout = SUBSTDIO_FDBUF((int(*)())write,1,outbuf,sizeof outbuf);
+
+ #define FATAL "sntpclock: fatal: "
+ #define WARNING "sntpclock: warning: "
+--- a/taiclock.c
++++ b/taiclock.c
+@@ -3,17 +3,17 @@
+ #include <sys/param.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
++#include <unistd.h>
+ #include "strerr.h"
+ #include "ip.h"
+ #include "str.h"
+ #include "byte.h"
+ #include "substdio.h"
+-#include "readwrite.h"
+ #include "select.h"
+ #include "taia.h"
+
+ char outbuf[16];
+-substdio ssout = SUBSTDIO_FDBUF(write,1,outbuf,sizeof outbuf);
++substdio ssout = SUBSTDIO_FDBUF((int(*)())write,1,outbuf,sizeof outbuf);
+
+ #define FATAL "taiclock: fatal: "
+ #define WARNING "taiclock: warning: "
+
+--- a/auto-str.c
++++ b/auto-str.c
+@@ -5,7 +5,7 @@
+ char buf1[256];
+ substdio ss1 = SUBSTDIO_FDBUF(write,1,buf1,sizeof(buf1));
+
+-void puts(s)
++void myputs(s)
+ char *s;
+ {
+ if (substdio_puts(&ss1,s) == -1) _exit(111);
+@@ -25,20 +25,20 @@ char **argv;
+ value = argv[2];
+ if (!value) _exit(100);
+
+- puts("char ");
+- puts(name);
+- puts("[] = \"\\\n");
++ myputs("char ");
++ myputs(name);
++ myputs("[] = \"\\\n");
+
+ while (ch = *value++) {
+- puts("\\");
++ myputs("\\");
+ octal[3] = 0;
+ octal[2] = '0' + (ch & 7); ch >>= 3;
+ octal[1] = '0' + (ch & 7); ch >>= 3;
+ octal[0] = '0' + (ch & 7);
+- puts(octal);
++ myputs(octal);
+ }
+
+- puts("\\\n\";\n");
++ myputs("\\\n\";\n");
+ if (substdio_flush(&ss1) == -1) _exit(111);
+ _exit(0);
+ }
+--- a/trygethr.c
++++ b/trygethr.c
+@@ -1,7 +1,7 @@
+ #include <sys/types.h>
+ #include <sys/time.h>
+
+-main()
++int main()
+ {
+ hrtime_t t;
+
+--- a/tryrdtsc.c
++++ b/tryrdtsc.c
+@@ -1,4 +1,6 @@
+-main()
++#include <unistd.h>
++
++int main()
+ {
+ unsigned long x[2];
+ unsigned long y[2];