# $Id: Portfile 153569 2016-10-04 16:25:16Z raimue@macports.org $ PortSystem 1.0 name netcat version 1.10 revision 2 categories net platforms darwin freebsd license permissive maintainers nomaintainer description Utility for managing network connections long_description \ Netcat is a simple Unix utility which reads and writes data across \ network connections using TCP or UDP protocol. It is designed to be a \ reliable "back-end" tool that can be used directly or easily driven by \ other programs and scripts. At the same time it is a feature-rich \ network debugging and exploration tool, since it can create almost any \ kind of connection you would need and has several interesting built-in \ capabilities. homepage http://nc110.sourceforge.net/ master_sites ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \ ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ # build the version string to match how netcat is distributed regsub -all "\\." ${version} "" num # and appropriately name the distfile distfiles nc${num}.tgz extract.mkdir yes checksums md5 402632f2fe01c169ff19a0ad6e9d608c \ rmd160 3e891fa094d921940e53035fb6721e2f0c04efdb \ sha256 5b3fda14e972d908896a605293f4634a72e2968278117410e12d8b3faf9a3976 use_configure no build.target generic destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/netcat xinstall -m 755 -s -W ${worksrcpath} nc ${destroot}${prefix}/bin xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/netcat }