[115052] trunk/dports/benchmarks/forkbomb

ryandesign at macports.org ryandesign at macports.org
Mon Dec 23 00:15:05 PST 2013


Revision: 115052
          https://trac.macports.org/changeset/115052
Author:   ryandesign at macports.org
Date:     2013-12-23 00:15:03 -0800 (Mon, 23 Dec 2013)
Log Message:
-----------
forkbomb: fix build failure "unable to make temporary file"; add rmd160 and sha256 checksums; ensure we're UsingTheRightCompiler and -arch flags and add universal variant; license public-domain

Modified Paths:
--------------
    trunk/dports/benchmarks/forkbomb/Portfile

Added Paths:
-----------
    trunk/dports/benchmarks/forkbomb/files/
    trunk/dports/benchmarks/forkbomb/files/patch-Makefile.diff

Modified: trunk/dports/benchmarks/forkbomb/Portfile
===================================================================
--- trunk/dports/benchmarks/forkbomb/Portfile	2013-12-23 07:55:55 UTC (rev 115051)
+++ trunk/dports/benchmarks/forkbomb/Portfile	2013-12-23 08:15:03 UTC (rev 115052)
@@ -5,6 +5,7 @@
 version          1.4
 categories       benchmarks
 maintainers      nomaintainer
+license             public-domain
 description      System stress testing tool
 long_description \
     forkbomb is tool for stress testing. It can create many processes \
@@ -19,12 +20,18 @@
 platforms        darwin
 
 master_sites     http://home.tiscali.cz:8080/~cz210552/distfiles/
-checksums        md5 b806797a61a46c7176857bf24597a1b8
+checksums               md5     b806797a61a46c7176857bf24597a1b8 \
+                        rmd160  9f3a8b92c9f12f7181af49271a020cfe107faea8 \
+                        sha256  729b937e44c8408ad743fb243ee98580d01c9223a6716e8b25e0e1099097f1b6
 
-patch {
-    reinplace s|/man|/share/man| ${worksrcpath}/Makefile
-}
+patchfiles              patch-Makefile.diff
 
 use_configure    no
 
-destroot.destdir DESTDIR=${destroot} PREFIX=${prefix}
+variant universal {}
+
+build.env-append        CC=${configure.cc} \
+                        CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
+                        LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
+
+destroot.args-append    PREFIX=${prefix}

Added: trunk/dports/benchmarks/forkbomb/files/patch-Makefile.diff
===================================================================
--- trunk/dports/benchmarks/forkbomb/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/benchmarks/forkbomb/files/patch-Makefile.diff	2013-12-23 08:15:03 UTC (rev 115052)
@@ -0,0 +1,23 @@
+--- Makefile.orig	2005-05-13 06:04:16.000000000 -0500
++++ Makefile	2013-12-23 02:07:55.000000000 -0600
+@@ -1,10 +1,9 @@
+-CFLAGS?=	-Wall -ggdb -W -O
++CFLAGS+=	-Wall -ggdb -W
+ CC?=		gcc
+ LIBS?=
+ LDFLAGS?=
+ PREFIX?=	/usr/local
+ VERSION=1.4
+-TMPDIR=/tmp/forkbomb-$(VERSION)
+ 
+ all:   forkbomb tags
+ 
+@@ -13,7 +12,7 @@
+ 
+ install: forkbomb
+ 	install -s forkbomb $(DESTDIR)$(PREFIX)/sbin
+-	install -m 444 forkbomb.8 $(DESTDIR)$(PREFIX)/man/man8
++	install -m 444 forkbomb.8 $(DESTDIR)$(PREFIX)/share/man/man8
+ 
+ forkbomb: forkbomb.c Makefile
+ 	${CC} $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o forkbomb forkbomb.c $(LIBS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131223/797d2ae3/attachment.html>


More information about the macports-changes mailing list