diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-01-21 23:47:11 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-01-21 23:47:11 +0000 |
commit | 60c4f79ecb9ae1dd8dc740a6359f1409b3a4f5ea (patch) | |
tree | ba49aa7d4bf754b7f3c32ae04218ea9bd521218e /net-misc/iperf/iperf-1.7.0.ebuild | |
parent | Minor fixup to completion script (diff) | |
download | gentoo-2-60c4f79ecb9ae1dd8dc740a6359f1409b3a4f5ea.tar.gz gentoo-2-60c4f79ecb9ae1dd8dc740a6359f1409b3a4f5ea.tar.bz2 gentoo-2-60c4f79ecb9ae1dd8dc740a6359f1409b3a4f5ea.zip |
Added init.d script for running iperf in server mode; fixes bug 69609.
(Portage version: 2.0.51-r14)
Diffstat (limited to 'net-misc/iperf/iperf-1.7.0.ebuild')
-rw-r--r-- | net-misc/iperf/iperf-1.7.0.ebuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/net-misc/iperf/iperf-1.7.0.ebuild b/net-misc/iperf/iperf-1.7.0.ebuild index b0ce3341c5b4..6ed3094a7734 100644 --- a/net-misc/iperf/iperf-1.7.0.ebuild +++ b/net-misc/iperf/iperf-1.7.0.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/iperf/iperf-1.7.0.ebuild,v 1.6 2004/09/25 08:16:50 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/iperf/iperf-1.7.0.ebuild,v 1.7 2005/01/21 23:47:11 ka0ttic Exp $ IUSE="" DESCRIPTION="tool to measure IP bandwidth using UDP or TCP" @@ -16,17 +16,25 @@ DEPEND="virtual/libc" src_unpack() { unpack ${A} cd ${S} - sed -i 's:@read INSTALL_DIR;::' Makefile + sed -i 's:@read INSTALL_DIR;::' Makefile || die "sed Makefile failed" } src_compile() { cd cfg - econf || die + econf || die "econf failed" cd .. - emake || die + emake || die "emake failed" } src_install() { - make INSTALL_DIR=${D}/usr/bin install || die + make INSTALL_DIR=${D}/usr/bin install || die "make install failed" dodoc INSTALL README VERSION + newinitd ${FILESDIR}/${PN}.initd ${PN} +} + +pkg_postinst() { + echo + einfo "To run iperf in server mode, run:" + einfo " /etc/init.d/iperf start" + echo } |