<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d29adb931d2fd2b72c4495769e7cd822e6ddfbfd">https://github.com/macports/macports-ports/commit/d29adb931d2fd2b72c4495769e7cd822e6ddfbfd</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new d29adb931d2 ttcp: Fix implicit declaration of functions
</span>d29adb931d2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit d29adb931d2fd2b72c4495769e7cd822e6ddfbfd
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue May 11 20:29:41 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> ttcp: Fix implicit declaration of functions
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fix implicit declaration of functions that prevented building with Xcode
</span><span style='display:block; white-space:pre;color:#404040;'> 12 and later.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/62861
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Add a Makefile and use it to build and install. Use the makefile 1.0
</span><span style='display:block; white-space:pre;color:#404040;'> portgroup to use the right compiler, cflags, ldflags, and arch flags,
</span><span style='display:block; white-space:pre;color:#404040;'> and to add a universal variant. Since this changes how it builds,
</span><span style='display:block; white-space:pre;color:#404040;'> increase the revision.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Modernize checksums.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Indicate the license.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Switch the homepage to something that exists.
</span>---
net/ttcp/Portfile | 39 ++++++++++++++++++++++++---------------
net/ttcp/files/Makefile | 17 +++++++++++++++++
net/ttcp/files/implicit.patch | 20 ++++++++++++++++++++
3 files changed, 61 insertions(+), 15 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/ttcp/Portfile b/net/ttcp/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c37c345d6b3..7d090fd9fb4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/ttcp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/ttcp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +1,27 @@
</span> PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span>
name ttcp
version 1.10
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums ttcp.c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 99e8f596134eec2077989fd7205648187716e016 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 e630a95788efacfee226dff3550e58ed908987ef96817efc8ad4862657a60c3b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 19170 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ttcp.1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 4820c2b9c058a430030a774dcf012d41c8e6ec8c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 edb5dbc156c06584d7a73b6ffdb0049dca1b819f0c79aa2289005d60acaddbc9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 3885 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ README \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 0552eb0f8c2c545cce32a5b0b67cf8b592bd7bfb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a5c033bcfdcbca3cfe82c36b8c82d8b25d7bc1968a5a664f61052bfe31a1a531 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 781
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories net
platforms darwin
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0ffe0;'>+license public-domain
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> description Benchmarking tool for analysing TCP and UDP performance
long_description TTCP is a benchmarking tool for determining \
TCP and UDP performance between 2 systems. \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,26 +29,18 @@ long_description TTCP is a benchmarking tool for determining \
</span> The program was created at the US Army Ballistics Research Lab (BRL) \
and is in the public domain. Feel free to distribute this program \
but please do leave the credit notices in the source and man page intact.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage ftp://ftp.sgi.com/sgi/src/ttcp/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://en.wikipedia.org/wiki/Ttcp
</span> master_sites ftp://ftp.sgi.com/sgi/src/ttcp/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-dist_subdir ttcp
</span> distfiles ttcp.c ttcp.1 README
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums ttcp.c md5 3d1b75f6116cc246a4def9788ce58c26 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ttcp.1 md5 01d3a511a05dc8a0669f30c15ebaae82 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- README md5 6b1e5ff6247a9f284f3b58eb651b37a9
</span>
extract.mkdir yes
extract.cmd cp
extract.pre_args
extract.post_args .
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd \"${worksrcpath}\" && cc -o ttcp ttcp.c"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "install ${worksrcpath}/ttcp ${destroot}${prefix}/bin"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "install ${worksrcpath}/ttcp.1 ${destroot}${prefix}/share/man/man1"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "install -d ${destroot}${prefix}/share/doc/ttcp"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "install ${worksrcpath}/README ${destroot}${prefix}/share/doc/ttcp"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles implicit.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args -f ${filespath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.args {*}${build.args}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/ttcp/files/Makefile b/net/ttcp/files/Makefile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d6b5e59986d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/ttcp/files/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PREFIX ?= /usr/local
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+DESTDIR ?=
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+all: ttcp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ttcp: ttcp.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+install: ttcp ttcp.1 README
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install -d $(DESTDIR)$(PREFIX)/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install -m 755 ttcp $(DESTDIR)$(PREFIX)/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install -d $(DESTDIR)$(PREFIX)/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install -m 644 ttcp.1 $(DESTDIR)$(PREFIX)/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install -d $(DESTDIR)$(PREFIX)/share/doc/ttcp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install -m 644 README $(DESTDIR)$(PREFIX)/share/doc/ttcp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+.PHONY: all install
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/ttcp/files/implicit.patch b/net/ttcp/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d355774278b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/ttcp/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix implicit declaration of functions.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ttcp.c.orig 2021-05-11 19:48:58.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ttcp.c 2021-05-11 20:17:33.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,6 +45,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* #define SYSV */ /* required on SGI IRIX releases before 3.3 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <signal.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -55,6 +57,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <arpa/inet.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <netdb.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/time.h> /* struct timeval */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <unistd.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(SYSV)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/times.h>
</span></pre><pre style='margin:0'>
</pre>