Changeset 4234


Ignore:
Timestamp:
Dec 16, 2003, 6:16:46 PM (17 years ago)
Author:
ssen
Message:

Update from maintainer
Bug: 1299
Submitted by: Eric Hall <opendarwin.org@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/netcat/Portfile

    r3697 r4234  
    1 # $Id: Portfile,v 1.18 2003/10/18 01:10:43 fkr Exp $
     1# $Id: Portfile,v 1.19 2003/12/16 18:16:46 ssen Exp $
    22
    33PortSystem 1.0
    44name            netcat
    55version         1.10
    6 revision        1
     6revision        2
    77categories      net
    88maintainers     opendarwin.org@darkart.com     
     
    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" }
Note: See TracChangeset for help on using the changeset viewer.