diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /net-misc/netkit-timed | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'net-misc/netkit-timed')
| -rw-r--r-- | net-misc/netkit-timed/Manifest | 1 | ||||
| -rw-r--r-- | net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch | 55 | ||||
| -rw-r--r-- | net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch | 12 | ||||
| -rw-r--r-- | net-misc/netkit-timed/files/netkit-timed-0.17-accept-build-flags.patch | 23 | ||||
| -rw-r--r-- | net-misc/netkit-timed/files/netkit-timed-0.17-c23-port.patch | 65 | ||||
| -rw-r--r-- | net-misc/netkit-timed/files/netkit-timed-0.17-c99-port.patch | 44 | ||||
| -rw-r--r-- | net-misc/netkit-timed/files/timed.rc6 | 19 | ||||
| -rw-r--r-- | net-misc/netkit-timed/metadata.xml | 5 | ||||
| -rw-r--r-- | net-misc/netkit-timed/netkit-timed-0.17-r11.ebuild | 39 | ||||
| -rw-r--r-- | net-misc/netkit-timed/netkit-timed-0.17-r12.ebuild | 39 |
10 files changed, 302 insertions, 0 deletions
diff --git a/net-misc/netkit-timed/Manifest b/net-misc/netkit-timed/Manifest new file mode 100644 index 000000000000..660ee86a7273 --- /dev/null +++ b/net-misc/netkit-timed/Manifest @@ -0,0 +1 @@ +DIST netkit-timed-0.17.tar.gz 48655 BLAKE2B 5e076394e2605569b8a9a34d47b59234ffa0f643a13ef7ac688b40d259079ec5d2eef99a0efa35d7975e11118c1fe87bd138edd98199dde68cc4d8d9f10c3599 SHA512 781a41555953a165949dde7e7279298d4faf348575ba1214c6ce60cdbc74f6f03ab31002d57a441cbcaf674f7e2cc00afa17632bc3fcb28e2afd95d39cd70b99 diff --git a/net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch b/net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch new file mode 100644 index 000000000000..6d3fbf704ba5 --- /dev/null +++ b/net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch @@ -0,0 +1,55 @@ +diff -ru netkit-timed-0.17/configure netkit-timed-0.17.fixed/configure +--- netkit-timed-0.17/configure 2000-07-23 15:12:26.000000000 +0930 ++++ netkit-timed-0.17.fixed/configure 2004-08-07 09:22:47.860505136 +0930 +@@ -115,39 +115,6 @@ + echo 'no' + fi + +-if [ x$DEBUG = x ]; then +- echo -n "Checking if $CC accepts -O2... " +- if ( +- $CC -O2 __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -O2" +- else +- echo 'no' +- echo -n "Checking if $CC accepts -O... " +- if ( +- $CC -O __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -O" +- else +- echo 'no' +- fi +- fi +- +-else +- echo -n "Checking if $CC accepts -g... " +- if ( +- $CC -g __conftest.c -o __conftest +- ) >/dev/null 2>&1; then +- echo 'yes' +- CFLAGS="$CFLAGS -g" +- else +- echo 'no' +- fi +- +-fi +- + LDFLAGS= + LIBS= + +diff -ru netkit-timed-0.17/timed/timed/timed.c netkit-timed-0.17.fixed/timed/timed/timed.c +--- netkit-timed-0.17/timed/timed/timed.c 1999-12-13 03:35:07.000000000 +0930 ++++ netkit-timed-0.17.fixed/timed/timed/timed.c 2004-08-07 09:26:32.299385240 +0930 +@@ -898,7 +898,7 @@ + void + get_goodgroup(int force) + { +-# define NG_DELAY (30*60*CLK_TCK) /* 30 minutes */ ++# define NG_DELAY (30*60*CLOCKS_PER_SEC) /* 30 minutes */ + static unsigned long last_update = -NG_DELAY; + unsigned long new_update; + /* struct hosttbl *htp; */ diff --git a/net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch b/net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch new file mode 100644 index 000000000000..5b5855478d5a --- /dev/null +++ b/net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch @@ -0,0 +1,12 @@ +diff -ur netkit-timed-0.17.orig/timed/timed/timed.c netkit-timed-0.17/timed/timed/timed.c +--- netkit-timed-0.17.orig/timed/timed/timed.c 2006-07-28 00:12:03.000000000 -0700 ++++ netkit-timed-0.17/timed/timed/timed.c 2006-07-28 00:12:52.000000000 -0700 +@@ -158,7 +158,7 @@ + struct nets *nt; + struct sockaddr_in server; + u_short port; +- char c; ++ signed char c; + #ifdef sgi + FILE *timetrim_st; + #endif diff --git a/net-misc/netkit-timed/files/netkit-timed-0.17-accept-build-flags.patch b/net-misc/netkit-timed/files/netkit-timed-0.17-accept-build-flags.patch new file mode 100644 index 000000000000..c72452ff0fdc --- /dev/null +++ b/net-misc/netkit-timed/files/netkit-timed-0.17-accept-build-flags.patch @@ -0,0 +1,23 @@ +was sed -i -e '/^LDFLAGS=/d' configure || die "sed configure" +--- a/configure 2024-05-09 06:02:18.884496589 -0000 ++++ b/configure 2024-05-09 06:02:26.304490777 -0000 +@@ -115,7 +115,6 @@ + echo 'no' + fi + +-LDFLAGS= + LIBS= + + rm -f __conftest* +was sed -i -e "s|ar -cruv|\${AR} -cruv|g" timed/lib/Makefile || die +--- a/timed/lib/Makefile 2024-05-09 06:02:18.886496588 -0000 ++++ b/timed/lib/Makefile 2024-05-09 06:02:31.568486653 -0000 +@@ -7,7 +7,7 @@ + OBJS = byteorder.o measure.o cksum.o + + libtimed.a: $(OBJS) +- ar -cruv $@ $^ ++ ${AR} -cruv $@ $^ + + install: ; + clean: diff --git a/net-misc/netkit-timed/files/netkit-timed-0.17-c23-port.patch b/net-misc/netkit-timed/files/netkit-timed-0.17-c23-port.patch new file mode 100644 index 000000000000..ad0410db4421 --- /dev/null +++ b/net-misc/netkit-timed/files/netkit-timed-0.17-c23-port.patch @@ -0,0 +1,65 @@ +#bug https://bugs.gentoo.org/715776 +#bug https://bugs.gentoo.org/919876 +and general port to C23 +--- a/configure ++++ b/configure +@@ -134,6 +100,7 @@ + + echo -n 'Checking for BSD signal semantics... ' + cat <<EOF >__conftest.c ++#define _DEFAULT_SOURCE + #include <unistd.h> + #include <signal.h> + int count=0; +--- a/timed/lib/cksum.c ++++ b/timed/lib/cksum.c +@@ -41,6 +41,7 @@ + #ident "$Revision: 1.4 $" + #endif + ++#define _DEFAULT_SOURCE + #include <sys/types.h> + #include <sys/time.h> + #include "timed-extern.h" +--- a/timed/timed/globals.h ++++ b/timed/timed/globals.h +@@ -37,6 +37,7 @@ + #ident "$Revision: 1.5 $" + #endif + ++#define _DEFAULT_SOURCE + #include <sys/param.h> + #include <sys/time.h> + #include <sys/socket.h> +--- a/timed/timedc/cmds.c ++++ b/timed/timedc/cmds.c +@@ -41,6 +41,7 @@ + #ident "$Revision: 1.11 $" + #endif + ++#define _DEFAULT_SOURCE + #include "timedc.h" + #include <string.h> + #include <sys/file.h> +--- a/timed/timedc/timedc.c ++++ b/timed/timedc/timedc.c +@@ -45,6 +45,7 @@ + #ident "$Revision: 1.8 $" + #endif + ++#define _DEFAULT_SOURCE + #include "timedc.h" + #include <string.h> + #include <signal.h> +--- a/timed/timed/networkdelta.c ++++ b/timed/timed/networkdelta.c +@@ -40,8 +40,8 @@ + #ifdef sgi + #ident "$Revision: 1.4 $" + #endif +-#include <math.h> + #include "globals.h" ++#include <math.h> + + static long median(float, float*, long*, long*, unsigned int); + diff --git a/net-misc/netkit-timed/files/netkit-timed-0.17-c99-port.patch b/net-misc/netkit-timed/files/netkit-timed-0.17-c99-port.patch new file mode 100644 index 000000000000..f46408049b14 --- /dev/null +++ b/net-misc/netkit-timed/files/netkit-timed-0.17-c99-port.patch @@ -0,0 +1,44 @@ +Simple port to C99 +#bug https://bugs.gentoo.org/919876 +--- a/timed/lib/measure.c ++++ b/timed/lib/measure.c +@@ -75,7 +75,7 @@ measure(u_long maxmsec, /* wait this many msec at most */ + struct sockaddr_in *xaddr, + int doprint) /* print complaints on stderr */ + { +- size_t length; ++ socklen_t length; + int measure_status; + int rcvcount, trials = 0; + int cc, count; +--- a/timed/timed/correct.c ++++ b/timed/timed/correct.c +@@ -165,7 +165,7 @@ adjclock(struct timeval *corr) + } + } else { + syslog(LOG_WARNING, +- "clock correction %d sec too large to adjust", ++ "clock correction %ld sec too large to adjust", + adj.tv_sec); + (void) gettimeofday(&now, 0); + timevaladd(&now, corr); +--- a/timed/timed/networkdelta.c ++++ b/timed/timed/networkdelta.c +@@ -40,7 +40,7 @@ char nd_rcsid[] = + #ifdef sgi + #ident "$Revision: 1.4 $" + #endif +- ++#include <math.h> + #include "globals.h" + + static long median(float, float*, long*, long*, unsigned int); +@@ -238,7 +238,7 @@ median(float a, /* initial guess for the median */ + (long)a, pass, npts); + return a; + } +- eps = AFAC*abs(aa - a); ++ eps = AFAC*fabsf(aa - a); + *eps_ptr = eps; + a = aa; + } diff --git a/net-misc/netkit-timed/files/timed.rc6 b/net-misc/netkit-timed/files/timed.rc6 new file mode 100644 index 000000000000..eb939565310a --- /dev/null +++ b/net-misc/netkit-timed/files/timed.rc6 @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting timed" + start-stop-daemon --start --quiet --exec /usr/sbin/timed + eend $? +} + +stop() { + ebegin "Stopping timed" + start-stop-daemon --stop --quiet --exec /usr/sbin/timed + eend $? +} diff --git a/net-misc/netkit-timed/metadata.xml b/net-misc/netkit-timed/metadata.xml new file mode 100644 index 000000000000..85e4ed814fa2 --- /dev/null +++ b/net-misc/netkit-timed/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> diff --git a/net-misc/netkit-timed/netkit-timed-0.17-r11.ebuild b/net-misc/netkit-timed/netkit-timed-0.17-r11.ebuild new file mode 100644 index 000000000000..ae8eca6a7592 --- /dev/null +++ b/net-misc/netkit-timed/netkit-timed-0.17-r11.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Netkit - timed: Time daemon" +HOMEPAGE="https://wiki.linuxfoundation.org/networking/netkit" +SRC_URI="http://ftp.linux.org.uk/pub/linux/Networking/netkit/${P}.tar.gz" + +KEYWORDS="amd64 ~mips ppc ppc64 ~sparc x86" +LICENSE="BSD GPL-2" +SLOT="0" + +src_prepare() { + eapply "${FILESDIR}"/0.17-CFLAG-DEF-fix.patch + eapply "${FILESDIR}"/0.17-timed-opt-parsing.patch + sed -i -e '/^LDFLAGS=/d' configure || die "sed configure" + sed -i -e "s|ar -cruv|\${AR} -cruv|g" timed/lib/Makefile || die + default +} + +src_configure() { + tc-export AR + # Note this is not an autoconf configure script. econf fails + append-flags -DCLK_TCK=CLOCKS_PER_SEC + ./configure --prefix=/usr --with-c-compiler="$(tc-getCC)" || die "bad configure" +} + +src_install() { + dosbin timed/timed/timed + doman timed/timed/timed.8 + dosbin timed/timedc/timedc + doman timed/timedc/timedc.8 + einstalldocs + + newinitd "${FILESDIR}"/timed.rc6 timed +} diff --git a/net-misc/netkit-timed/netkit-timed-0.17-r12.ebuild b/net-misc/netkit-timed/netkit-timed-0.17-r12.ebuild new file mode 100644 index 000000000000..015570aeb735 --- /dev/null +++ b/net-misc/netkit-timed/netkit-timed-0.17-r12.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Netkit - timed: Time daemon" +HOMEPAGE="https://wiki.linuxfoundation.org/networking/netkit" +SRC_URI="http://ftp.linux.org.uk/pub/linux/Networking/netkit/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc ppc64 ~sparc x86" + +PATCHES=( + "${FILESDIR}/0.17-CFLAG-DEF-fix.patch" + "${FILESDIR}/0.17-timed-opt-parsing.patch" + "${FILESDIR}/${P}-c99-port.patch" + "${FILESDIR}/${P}-accept-build-flags.patch" + "${FILESDIR}/${P}-c23-port.patch" +) + +src_configure() { + tc-export AR + # Note this is not an autoconf configure script. econf fails + append-flags -DCLK_TCK=CLOCKS_PER_SEC + ./configure --prefix=/usr --with-c-compiler="$(tc-getCC)" || die "bad configure" +} + +src_install() { + dosbin timed/timed/timed + doman timed/timed/timed.8 + dosbin timed/timedc/timedc + doman timed/timedc/timedc.8 + einstalldocs + + newinitd "${FILESDIR}"/timed.rc6 timed +} |
