diff options
author | Martin Holzer <mholzer@gentoo.org> | 2003-05-22 21:06:32 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2003-05-22 21:06:32 +0000 |
commit | fc5d644e28cbb490d747e8183fc88cb95802e640 (patch) | |
tree | 9074d0511b3ddda4a872e1605f6f69527d933c4c /net-misc | |
parent | initial ebuild (diff) | |
download | historical-fc5d644e28cbb490d747e8183fc88cb95802e640.tar.gz historical-fc5d644e28cbb490d747e8183fc88cb95802e640.tar.bz2 historical-fc5d644e28cbb490d747e8183fc88cb95802e640.zip |
initial ebuild
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/netkit-rwho/Manifest | 3 | ||||
-rw-r--r-- | net-misc/netkit-rwho/files/digest-netkit-rwho-0.17 | 1 | ||||
-rw-r--r-- | net-misc/netkit-rwho/files/netkit-rwho-0.17-gentoo.diff | 40 | ||||
-rw-r--r-- | net-misc/netkit-rwho/files/netkit-rwho-0.17-rc | 17 | ||||
-rw-r--r-- | net-misc/netkit-rwho/netkit-rwho-0.17.ebuild | 41 |
5 files changed, 101 insertions, 1 deletions
diff --git a/net-misc/netkit-rwho/Manifest b/net-misc/netkit-rwho/Manifest index 437dfb063a7e..71233dd8cf13 100644 --- a/net-misc/netkit-rwho/Manifest +++ b/net-misc/netkit-rwho/Manifest @@ -1,4 +1,5 @@ -MD5 2c099418f5300e0a5c75e7d8d253739c netkit-rwho-0.17.ebuild 1437 +MD5 513b65ca3a9c9dc9f18660d696786413 netkit-rwho-0.17.ebuild 997 +MD5 69b8969a671cf93866e73685e0708ed3 ChangeLog 486 MD5 25a5144430969258d0a607505ba7e00a files/netkit-rwho-0.17-gentoo.diff 1139 MD5 4817c77ec114079b62c6825805637f78 files/digest-netkit-rwho-0.17 67 MD5 fd330d52abc6a48b8e25ab058b39c2b5 files/netkit-rwho-0.17-rc 246 diff --git a/net-misc/netkit-rwho/files/digest-netkit-rwho-0.17 b/net-misc/netkit-rwho/files/digest-netkit-rwho-0.17 new file mode 100644 index 000000000000..5ed5db18811d --- /dev/null +++ b/net-misc/netkit-rwho/files/digest-netkit-rwho-0.17 @@ -0,0 +1 @@ +MD5 0f71620d45d472f89134ba0d74242e75 netkit-rwho-0.17.tar.gz 20610 diff --git a/net-misc/netkit-rwho/files/netkit-rwho-0.17-gentoo.diff b/net-misc/netkit-rwho/files/netkit-rwho-0.17-gentoo.diff new file mode 100644 index 000000000000..d7e2902de77b --- /dev/null +++ b/net-misc/netkit-rwho/files/netkit-rwho-0.17-gentoo.diff @@ -0,0 +1,40 @@ +--- netkit-rwho-0.17-org/rwhod/rwhod.c Sat Jul 22 21:19:48 2000 ++++ netkit-rwho-0.17/rwhod/rwhod.c Sat Jul 6 11:53:50 2002 +@@ -69,6 +69,7 @@ + #include <arpa/inet.h> + #include <pwd.h> + #include <grp.h> ++#include <time.h> + + #include "daemon.h" + +@@ -95,7 +96,7 @@ + static void broadcaster(void); + static int configure(int s); + static int verify(const char *name); +-static int getloadavg(double ptr[3], int n); ++int getloadavg(double ptr[3], int n); + + /* + * We communicate with each neighbor in +@@ -273,7 +274,7 @@ + wd.wd_hostname[sizeof(wd.wd_hostname)-1] = 0; + if (!verify(wd.wd_hostname)) { + syslog(LOG_WARNING, "malformed host name from %x", +- from.sin_addr); ++ from.sin_addr.s_addr); + continue; + } + snprintf(path, sizeof(path), "whod.%s", wd.wd_hostname); +@@ -359,9 +360,9 @@ + *cp = '\0'; + mynamelen = strlen(myname); + if (mynamelen > sizeof(mywd.wd_hostname)) +- mynamelen = sizeof(mywd.wd_hostname); ++ mynamelen = sizeof(mywd.wd_hostname) - 1; + strncpy(mywd.wd_hostname, myname, mynamelen); +- mywd.wd_hostname[sizeof(mywd.wd_hostname)-1] = 0; ++ mywd.wd_hostname[mynamelen] = 0; + + getboottime(&mywd); + diff --git a/net-misc/netkit-rwho/files/netkit-rwho-0.17-rc b/net-misc/netkit-rwho/files/netkit-rwho-0.17-rc new file mode 100644 index 000000000000..3f6de07a80e2 --- /dev/null +++ b/net-misc/netkit-rwho/files/netkit-rwho-0.17-rc @@ -0,0 +1,17 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting rwhod" + start-stop-daemon --start --quiet --exec /usr/sbin/rwhod -- -b + eend $? +} + +stop() { + ebegin "Stopping rwhod" + start-stop-daemon --stop --quiet --name rwhod + eend $? +} diff --git a/net-misc/netkit-rwho/netkit-rwho-0.17.ebuild b/net-misc/netkit-rwho/netkit-rwho-0.17.ebuild new file mode 100644 index 000000000000..59ab38e8fc52 --- /dev/null +++ b/net-misc/netkit-rwho/netkit-rwho-0.17.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rwho/netkit-rwho-0.17.ebuild,v 1.1 2003/05/22 21:06:17 mholzer Exp $ + +MY_P=netkit-rwho-${PV} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Netkit - ruptime/rwho/rwhod" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${MY_P}.tar.gz" +HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips" +LICENSE="BSD" +SLOT="0" + +DEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + patch -p0 < ${FILESDIR}/${PF}-gentoo.diff +} + +src_compile() { + ./configure || die + sed -i "s:-O2::" -i "s:-Wpointer-arith::" MCONFIG + emake || die +} + +src_install() { + keepdir /var/spool/rwho + + into /usr + dobin ruptime/ruptime + doman ruptime/ruptime.1 + dobin rwho/rwho + doman rwho/rwho.1 + dosbin rwhod/rwhod + doman rwhod/rwhod.8 + dodoc README ChangeLog + + exeinto /etc/init.d + newexe ${FILESDIR}/${PF}-rc rwhod +} |