summaryrefslogtreecommitdiff
path: root/net-misc/netkit-timed/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/netkit-timed/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/netkit-timed/files')
-rw-r--r--net-misc/netkit-timed/files/0.17-CFLAG-DEF-fix.patch55
-rw-r--r--net-misc/netkit-timed/files/0.17-timed-opt-parsing.patch12
-rw-r--r--net-misc/netkit-timed/files/timed.rc619
3 files changed, 86 insertions, 0 deletions
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/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 $?
+}