Ticket #1299: netcat.Portfile.diff

File netcat.Portfile.diff, 2.1 KB (added by opendarwin.org@…, 21 years ago)

patch to net/netcat Portfile

  • Portfile

    RCS file: /Volumes/src/cvs/od/projects/darwinports/dports/net/netcat/Portfile,v
    retrieving revision 1.18
    diff -u -r1.18 Portfile
     
    33PortSystem 1.0
    44name            netcat
    55version         1.10
    6 revision        1
     6revision        2
    77categories      net
    88maintainers     opendarwin.org@darkart.com     
    99description     Utility for managing network connections
     
    1818master_sites    ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \
    1919                ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ \
    2020                 http://public.www.planetmirror.com/pub/lprng/TOOLS/
     21##
     22## build the version string to match how netcat is distributed
    2123regsub -all     "\\." ${portversion} "" num
     24## and appropriately name the distfile
    2225distfiles       nc${num}.tgz
     26
    2327checksums       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.
     31pre-extract     { system "mkdir -p ${worksrcpath}" }
     32extract.dir     ${worksrcpath}
    2833configure       {}
    29 build.target    next
     34build.target    generic
    3035
    31 variant darwin {
    32         patchfiles      patch-Makefile
    33 }
     36destroot  { 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" }
    3441
    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" }