Ticket #15038: netcat-cd.diff

File netcat-cd.diff, 1.3 KB (added by jmroot (Joshua Root), 17 years ago)
  • net/netcat/Portfile

     
    2828## The problem here is that nc110.tgz (at least) doesn't have a
    2929## directory in the tarball.  So we need some way to extract things
    3030## into a named directory rather than just into the work/ directory.
    31 pre-extract     { system "mkdir -p ${worksrcpath}" }
     31pre-extract     { file mkdir ${worksrcpath} }
    3232extract.dir     ${worksrcpath}
    3333
    3434platform darwin 6 {
     
    3636        patchfiles-append       patch-Makefile
    3737}
    3838
    39 configure       {}
     39use_configure   no
    4040build.target    generic
    4141
    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 
     42destroot  {
     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}