# $Id: Portfile 30220 2007-10-22 22:42:03Z jmpp@macports.org $

PortSystem 1.0
name             forkbomb
version          1.4
categories       benchmarks
maintainers      nomaintainer
description      System stress testing tool
long_description \
    forkbomb is tool for stress testing. It can create many processes \
    using fork(), eats all available memory using realloc() and \
    accesses this memory. It has different switches for fine-tuning \
    operation. While classic fork() bomb is good only for fun, \
    running multiple memory-eaters can be useful for determining \
    maximum memory which can be given to servers (bind or squid) \
    without taking machine down. You can test different operation \
    systems with this tool and see how they are handling the load.
homepage         http://home.tiscali.cz:8080/~cz210552/forkbomb.html
platforms        darwin

master_sites     http://home.tiscali.cz:8080/~cz210552/distfiles/
checksums        md5 b806797a61a46c7176857bf24597a1b8

patch {
    reinplace s|/man|/share/man| ${worksrcpath}/Makefile
}

use_configure    no

destroot.destdir DESTDIR=${destroot} PREFIX=${prefix}
