[153569] trunk/dports/net/netcat/Portfile

raimue at macports.org raimue at macports.org
Tue Oct 4 18:25:16 CEST 2016


Revision: 153569
          https://trac.macports.org/changeset/153569
Author:   raimue at macports.org
Date:     2016-10-04 09:25:16 -0700 (Tue, 04 Oct 2016)
Log Message:
-----------
net/netcat: reformat Portfile

Reorder options, add license, add alternative checksums.

Modified Paths:
--------------
    trunk/dports/net/netcat/Portfile

Modified: trunk/dports/net/netcat/Portfile
===================================================================
--- trunk/dports/net/netcat/Portfile	2016-10-04 16:15:26 UTC (rev 153568)
+++ trunk/dports/net/netcat/Portfile	2016-10-04 16:25:16 UTC (rev 153569)
@@ -2,43 +2,43 @@
 
 PortSystem 1.0
 
-name		netcat
-version		1.10
-revision	2
-categories	net
-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.
-platforms	darwin freebsd
-master_sites	ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \
-		ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/
+name                netcat
+version             1.10
+revision            2
+categories          net
+platforms           darwin freebsd
+license             permissive 
+maintainers         nomaintainer
 
-##		http://public.www.planetmirror.com/pub/lprng/TOOLS/netcat
-##		http://downloads.planetmirror.com/pub/lprng/TOOLS/netcat/nc110.tgz
+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.
 
-## provide a 'homepage' to make "port lint" happy...
-homepage    http://nc110.sourceforge.net/
+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
+# 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
+checksums           md5     402632f2fe01c169ff19a0ad6e9d608c \
+                    rmd160  3e891fa094d921940e53035fb6721e2f0c04efdb \
+                    sha256  5b3fda14e972d908896a605293f4634a72e2968278117410e12d8b3faf9a3976
 
-use_configure   no
-build.target	generic
+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
+    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
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161004/935aca26/attachment-0002.html>


More information about the macports-changes mailing list