# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A HTTP load testing tool for webservers" HOMEPAGE="http://hammerhead.sourceforge.net/" SRC_URI="http://unc.dl.sourceforge.net/sourceforge/hammerhead/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" S=${WORKDIR}/${P} src_unpack () { unpack ${A} einfo "Patching Makefile." patch ${S}/src/Makefile ${FILESDIR}/${P}-Makefile-gentoo.diff } src_compile() { econf || die emake || die } src_install() { make DESTDIR=${D} install || die dodoc ${S}/README docinto EXAMPLES dodoc ${S}/bin/* } pkg_postinst() { einfo "Be sure to edit /etc/hammerhead/hh.conf" einfo "to configure hammerhead before you use it!" einfo " " einfo "Examples for scripting hammerhead are located" einfo "in /usr/share/doc/${PF}/EXAMPLES" }