RCS file: /Volumes/src/cvs/od/projects/darwinports/dports/net/netcat/Portfile,v
retrieving revision 1.18
diff -u -r1.18 Portfile
|
|
|
3 | 3 | PortSystem 1.0 |
4 | 4 | name netcat |
5 | 5 | version 1.10 |
6 | | revision 1 |
| 6 | revision 2 |
7 | 7 | categories net |
8 | 8 | maintainers opendarwin.org@darkart.com |
9 | 9 | description Utility for managing network connections |
… |
… |
|
18 | 18 | master_sites ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \ |
19 | 19 | ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ \ |
20 | 20 | http://public.www.planetmirror.com/pub/lprng/TOOLS/ |
| 21 | ## |
| 22 | ## build the version string to match how netcat is distributed |
21 | 23 | regsub -all "\\." ${portversion} "" num |
| 24 | ## and appropriately name the distfile |
22 | 25 | distfiles nc${num}.tgz |
| 26 | |
23 | 27 | checksums md5 402632f2fe01c169ff19a0ad6e9d608c |
24 | | extract { cd ${workpath} |
25 | | system "mkdir -p ${worksrcdir}" |
26 | | cd ${worksrcdir} |
27 | | system "tar xfz ${distpath}/${distfiles}" } |
| 28 | ## The problem here is that nc110.tgz (at least) doesn't have a |
| 29 | ## directory in the tarball. So we need some way to extract things |
| 30 | ## into a named directory rather than just into the work/ directory. |
| 31 | pre-extract { system "mkdir -p ${worksrcpath}" } |
| 32 | extract.dir ${worksrcpath} |
28 | 33 | configure {} |
29 | | build.target next |
| 34 | build.target generic |
30 | 35 | |
31 | | variant darwin { |
32 | | patchfiles patch-Makefile |
33 | | } |
| 36 | destroot { cd ${workpath}/${worksrcdir} |
| 37 | system "install -m 755 -d ${destroot}/${prefix}/bin" |
| 38 | system "install -m 755 -d ${destroot}/${prefix}/share/doc/netcat" |
| 39 | system "install -m 755 -s -c nc ${destroot}/${prefix}/bin" |
| 40 | system "install -m 644 -c README ${destroot}/${prefix}/share/doc/netcat" } |
34 | 41 | |
35 | | destroot { cd ${workpath}/${worksrcdir} |
36 | | system "install -o root -m 755 -d ${destroot}/${prefix}/bin" |
37 | | system "install -o root -m 755 -d ${destroot}/${prefix}/share/doc/netcat" |
38 | | system "install -o root -m 755 -s -c nc ${destroot}/${prefix}/bin" |
39 | | system "install -o root -m 644 -c README \ |
40 | | ${destroot}/${prefix}/share/doc/netcat" } |