summaryrefslogtreecommitdiff
path: root/sys-apps/wdd
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2008-06-12 21:25:58 +0200
committerBertrand Jacquin <beber@meleeweb.net>2008-06-12 21:25:58 +0200
commit8cf69d7f49876eeecdacf370088cccc784fc0278 (patch)
tree001d7f38ca0544a2121308d51a0e823da76d1c27 /sys-apps/wdd
parentAdd coreutils and iproute2 cross-compile aware version (diff)
downloadportage-8cf69d7f49876eeecdacf370088cccc784fc0278.tar.xz
make wdd cross compile aware
Diffstat (limited to 'sys-apps/wdd')
-rw-r--r--sys-apps/wdd/Manifest1
-rw-r--r--sys-apps/wdd/wdd-0-r2.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/sys-apps/wdd/Manifest b/sys-apps/wdd/Manifest
index f57bafd6..82fedf96 100644
--- a/sys-apps/wdd/Manifest
+++ b/sys-apps/wdd/Manifest
@@ -5,4 +5,5 @@ AUX wdd.initd 421 RMD160 f42dd9c91bbd1efe38253db237b7fee70f303c67 SHA1 36b4ef136
DIST wdd.8 3198 RMD160 34aa288bd79e0f15229ca75f8567bde8d45f76a1 SHA1 1f83bdc0fd2f8aaeb439ac60f1d79487a8e88f88 SHA256 7129d465b7fa4c96dd488f22a4dc265a0d2d343e1c40ac0aa6827e53dd8aec2b
DIST wdd.c 2841 RMD160 f4555a2132545e371d7325bc71755c48f64a57b9 SHA1 b68d654ec1511bbce66a1a07d40bf9b7c3272243 SHA256 66be5e748b6199f7afbdbc7b6aaed6cbbfa2e0634aa90d3c0aefa743756ae6a7
EBUILD wdd-0-r1.ebuild 902 RMD160 f7becfbb2bfd8081869f294b61fe5630013f83db SHA1 7b535b3610d5c87cf627840c4088be8ee0f482da SHA256 1db5296b020ff4db819d3170ccc166c3d0265690cfde6f79144669c88a2288c0
+EBUILD wdd-0-r2.ebuild 890 RMD160 59024d8ddebb1119071a112c3f67c718e5cd42ed SHA1 e512684edabdbaef3fb7fec6e163cbcd042df892 SHA256 ce41b60c9455f073b7faedb0bbc6defc7ef98f2a3294f0f742c24a78a0395e4b
EBUILD wdd-0.ebuild 756 RMD160 d6b133180c7ad6e45e021ab5cccc022ff5d08e99 SHA1 07062968c759ec3eefaea0a08b935ca3e6616712 SHA256 dbaa31f81d629ff15c6615dbad4a088fd256cf0a9a977e6d2465f9ca160fb0d6
diff --git a/sys-apps/wdd/wdd-0-r2.ebuild b/sys-apps/wdd/wdd-0-r2.ebuild
new file mode 100644
index 00000000..f15943e4
--- /dev/null
+++ b/sys-apps/wdd/wdd-0-r2.ebuild
@@ -0,0 +1,43 @@
+# 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.fr/watchdog/"
+SRC_URI="http://linux.exosec.fr/watchdog/daemon/wdd.c
+ http://linux.exosec.fr/watchdog/daemon/wdd.8"
+
+LICENSE="Public-Domain"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="syslog"
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack () {
+ mkdir -p ${S}
+ mv ${DISTDIR}/wdd.{c,8} ${S}
+
+ cd ${S}
+ #epatch ${FILESDIR}/warning.patch
+ use syslog && epatch ${FILESDIR}/wdd-syslog-errors.diff
+}
+
+src_compile () {
+ use syslog && CFLAGS="${CFLAGS} -D_USE_SYSLOG_"
+
+ echo "$(tc-getCC) -W -Wall ${CFLAGS} -o wdd wdd.c"
+ $(tc-getCC) -W -Wall ${CFLAGS} -o wdd wdd.c || die "compile failed"
+}
+
+src_install () {
+ dosbin wdd
+ doman wdd.8
+
+ newinitd ${FILESDIR}/wdd.initd wdd
+ newconfd ${FILESDIR}/wdd.confd wdd
+}
+