Ticket #15038: netcat-cd.diff
File netcat-cd.diff, 1.3 KB (added by jmroot (Joshua Root), 17 years ago) |
---|
-
net/netcat/Portfile
28 28 ## The problem here is that nc110.tgz (at least) doesn't have a 29 29 ## directory in the tarball. So we need some way to extract things 30 30 ## into a named directory rather than just into the work/ directory. 31 pre-extract { system "mkdir -p ${worksrcpath}"}31 pre-extract { file mkdir ${worksrcpath} } 32 32 extract.dir ${worksrcpath} 33 33 34 34 platform darwin 6 { … … 36 36 patchfiles-append patch-Makefile 37 37 } 38 38 39 configure {} 39 use_configure no 40 40 build.target generic 41 41 42 destroot { cd ${workpath}/${worksrcdir}43 system "install -m 755 -d ${destroot}/${prefix}/bin"44 system "install -m 755 -d ${destroot}/${prefix}/share/doc/netcat"45 system "install -m 755 -s -c nc ${destroot}/${prefix}/bin"46 system "install -m 644 -c README ${destroot}/${prefix}/share/doc/netcat" }47 42 destroot { 43 xinstall -m 755 -d ${destroot}/${prefix}/bin 44 xinstall -m 755 -d ${destroot}/${prefix}/share/doc/netcat 45 xinstall -m 755 -s -c ${worksrcpath}/nc ${destroot}/${prefix}/bin 46 xinstall -m 644 -c ${worksrcpath}/README ${destroot}/${prefix}/share/doc/netcat 47 }