# Copyright 1999-2004 Gentoo Foundation # 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.9 2004/07/15 03:08:14 agriffis Exp $ inherit eutils IUSE="" DESCRIPTION="Netkit - ruptime/rwho/rwhod" HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html" SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz" SLOT="0" LICENSE="BSD" KEYWORDS="x86 ~ppc ~sparc alpha ~mips s390" DEPEND="virtual/libc >=sys-apps/sed-4" src_unpack() { unpack ${A} epatch ${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 }