summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/wdd/Manifest13
-rw-r--r--sys-apps/wdd/files/digest-wdd-06
-rw-r--r--sys-apps/wdd/files/warning.patch34
-rw-r--r--sys-apps/wdd/wdd-0.ebuild37
4 files changed, 90 insertions, 0 deletions
diff --git a/sys-apps/wdd/Manifest b/sys-apps/wdd/Manifest
new file mode 100644
index 00000000..3e18d057
--- /dev/null
+++ b/sys-apps/wdd/Manifest
@@ -0,0 +1,13 @@
+AUX warning.patch 774 RMD160 4c7147c373d8872cf35ddd4eb4b67f50b52749ac SHA1 6c84a76542769c001bc8912558f87a63b983e42e SHA256 918e0fcd1acadbc574f5bdb4e90e1a62a4f607497ec2a689498d0d89254ae7d6
+MD5 10641dd22905c30de48a8ff564a01431 files/warning.patch 774
+RMD160 4c7147c373d8872cf35ddd4eb4b67f50b52749ac files/warning.patch 774
+SHA256 918e0fcd1acadbc574f5bdb4e90e1a62a4f607497ec2a689498d0d89254ae7d6 files/warning.patch 774
+DIST wdd.8 3198 RMD160 34aa288bd79e0f15229ca75f8567bde8d45f76a1 SHA1 1f83bdc0fd2f8aaeb439ac60f1d79487a8e88f88 SHA256 7129d465b7fa4c96dd488f22a4dc265a0d2d343e1c40ac0aa6827e53dd8aec2b
+DIST wdd.c 2841 RMD160 f4555a2132545e371d7325bc71755c48f64a57b9 SHA1 b68d654ec1511bbce66a1a07d40bf9b7c3272243 SHA256 66be5e748b6199f7afbdbc7b6aaed6cbbfa2e0634aa90d3c0aefa743756ae6a7
+EBUILD wdd-0.ebuild 679 RMD160 89dc513441a22c36613e37db309f335c5a14c51c SHA1 602f972dea49e2ff85675fcfe0cf425e9e7e3af4 SHA256 924f40fe0dda2916568a62ef161308cfb87f0d125e59eea9ff254b1405526029
+MD5 84da2aeebc7a4758b108366356eed7cf wdd-0.ebuild 679
+RMD160 89dc513441a22c36613e37db309f335c5a14c51c wdd-0.ebuild 679
+SHA256 924f40fe0dda2916568a62ef161308cfb87f0d125e59eea9ff254b1405526029 wdd-0.ebuild 679
+MD5 daf370de16bb7113a86e207d54e19b78 files/digest-wdd-0 380
+RMD160 710fd022e21ffbba48307977288272fdeed7d8a4 files/digest-wdd-0 380
+SHA256 6e41671e09cefce5f0cc7b22630bb8b31eaa4b11e723822913b75c710b5c79ad files/digest-wdd-0 380
diff --git a/sys-apps/wdd/files/digest-wdd-0 b/sys-apps/wdd/files/digest-wdd-0
new file mode 100644
index 00000000..554d8ddd
--- /dev/null
+++ b/sys-apps/wdd/files/digest-wdd-0
@@ -0,0 +1,6 @@
+MD5 51bae2fba47ded6d09385f179afe3e39 wdd.8 3198
+RMD160 34aa288bd79e0f15229ca75f8567bde8d45f76a1 wdd.8 3198
+SHA256 7129d465b7fa4c96dd488f22a4dc265a0d2d343e1c40ac0aa6827e53dd8aec2b wdd.8 3198
+MD5 c86cb0063b5a5969f7592ab0a0de6b37 wdd.c 2841
+RMD160 f4555a2132545e371d7325bc71755c48f64a57b9 wdd.c 2841
+SHA256 66be5e748b6199f7afbdbc7b6aaed6cbbfa2e0634aa90d3c0aefa743756ae6a7 wdd.c 2841
diff --git a/sys-apps/wdd/files/warning.patch b/sys-apps/wdd/files/warning.patch
new file mode 100644
index 00000000..0b93b73c
--- /dev/null
+++ b/sys-apps/wdd/files/warning.patch
@@ -0,0 +1,34 @@
+--- wdd.c.ori 2007-07-18 18:03:18.000000000 +0200
++++ wdd.c 2007-07-18 18:06:11.000000000 +0200
+@@ -3,9 +3,13 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <unistd.h>
++#include <sys/wait.h>
++#include <string.h>
+
+ const char dev_wd_str[] = "/dev/watchdog";
+ const char root_str[] = "/";
+@@ -18,7 +22,7 @@
+ static inline void try_malloc() {
+ void *heap;
+
+- heap = (void*)sbrk(NULL);
++ heap = (void*)sbrk(0);
+ if (brk(heap + 4096))
+ exit(1);
+ memset(heap, 0, 4096);
+@@ -52,7 +56,7 @@
+ void *heap;
+ int ret;
+
+- heap = (void*)sbrk(NULL);
++ heap = (void*)sbrk(0);
+ if (brk(heap + sizeof (struct stat)))
+ exit(1);
+ memset(heap, 0, sizeof (struct stat));
diff --git a/sys-apps/wdd/wdd-0.ebuild b/sys-apps/wdd/wdd-0.ebuild
new file mode 100644
index 00000000..924ac33e
--- /dev/null
+++ b/sys-apps/wdd/wdd-0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Simple Watchdog Daemon"
+HOMEPAGE="http://linux.exosec.net/watchdog/"
+SRC_URI="http://linux.exosec.net/watchdog/daemon/wdd.c
+ http://linux.exosec.net/watchdog/daemon/wdd.8"
+
+LICENSE="Public-Domain"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack () {
+ mkdir -p ${S}
+ mv ${DISTDIR}/wdd.{c,8} ${S}
+
+ cd ${S}
+ epatch ${FILESDIR}/warning.patch
+}
+
+src_compile () {
+ echo "gcc -W -Wall $CFLAGS -o wdd wdd.c"
+ gcc -W -Wall $CFLAGS -o wdd wdd.c || die "compile failed"
+}
+
+src_install () {
+ dosbin wdd
+ doman wdd.8
+}
+