source: trunk/dports/net/netcat/Portfile

Last change on this file was 153569, checked in by raimue@…, 14 months ago

net/netcat: reformat Portfile

Reorder options, add license, add alternative checksums.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 153569 2016-10-04 16:25:16Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                netcat
6version             1.10
7revision            2
8categories          net
9platforms           darwin freebsd
10license             permissive
11maintainers         nomaintainer
12
13description         Utility for managing network connections
14long_description    \
15            Netcat is a simple Unix utility which reads and writes data across \
16            network connections using TCP or UDP protocol.  It is designed to be a \
17            reliable "back-end" tool that can be used directly or easily driven by \
18            other programs and scripts.  At the same time it is a feature-rich \
19            network debugging and exploration tool, since it can create almost any \
20            kind of connection you would need and has several interesting built-in \
21            capabilities.
22
23homepage            http://nc110.sourceforge.net/
24master_sites        ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \
25                    ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/
26
27# build the version string to match how netcat is distributed
28regsub -all "\\." ${version} "" num
29# and appropriately name the distfile
30distfiles           nc${num}.tgz
31extract.mkdir       yes
32
33checksums           md5     402632f2fe01c169ff19a0ad6e9d608c \
34                    rmd160  3e891fa094d921940e53035fb6721e2f0c04efdb \
35                    sha256  5b3fda14e972d908896a605293f4634a72e2968278117410e12d8b3faf9a3976
36
37use_configure       no
38build.target        generic
39
40destroot {
41    xinstall -m 755 -d ${destroot}${prefix}/share/doc/netcat
42    xinstall -m 755 -s -W ${worksrcpath} nc ${destroot}${prefix}/bin
43    xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/netcat
44}
Note: See TracBrowser for help on using the repository browser.