Skip to content
Permalink
Browse files

Update from maintainer

Bug:            https://trac.macports.org/ticket/1299
Submitted by:   Eric Hall <opendarwin.org@darkart.com>

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4234 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Shantonu Sen
Shantonu Sen committed Dec 16, 2003
1 parent d4ad78a commit fc04bdb5bafbbd6af916f6eedb4bc8a268cea779
Showing with 17 additions and 16 deletions.
  1. +17 −16 net/netcat/Portfile
@@ -1,9 +1,9 @@
# $Id: Portfile,v 1.18 2003/10/18 01:10:43 fkr Exp $
# $Id: Portfile,v 1.19 2003/12/16 18:16:46 ssen Exp $

PortSystem 1.0
name netcat
version 1.10
revision 1
revision 2
categories net
maintainers opendarwin.org@darkart.com
description Utility for managing network connections
@@ -18,23 +18,24 @@ platforms darwin freebsd
master_sites ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \
ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ \
http://public.www.planetmirror.com/pub/lprng/TOOLS/
##
## build the version string to match how netcat is distributed
regsub -all "\\." ${portversion} "" num
## and appropriately name the distfile
distfiles nc${num}.tgz

checksums md5 402632f2fe01c169ff19a0ad6e9d608c
extract { cd ${workpath}
system "mkdir -p ${worksrcdir}"
cd ${worksrcdir}
system "tar xfz ${distpath}/${distfiles}" }
## The problem here is that nc110.tgz (at least) doesn't have a
## directory in the tarball. So we need some way to extract things
## into a named directory rather than just into the work/ directory.
pre-extract { system "mkdir -p ${worksrcpath}" }
extract.dir ${worksrcpath}
configure {}
build.target next
build.target generic

variant darwin {
patchfiles patch-Makefile
}
destroot { cd ${workpath}/${worksrcdir}
system "install -m 755 -d ${destroot}/${prefix}/bin"
system "install -m 755 -d ${destroot}/${prefix}/share/doc/netcat"
system "install -m 755 -s -c nc ${destroot}/${prefix}/bin"
system "install -m 644 -c README ${destroot}/${prefix}/share/doc/netcat" }

destroot { cd ${workpath}/${worksrcdir}
system "install -o root -m 755 -d ${destroot}/${prefix}/bin"
system "install -o root -m 755 -d ${destroot}/${prefix}/share/doc/netcat"
system "install -o root -m 755 -s -c nc ${destroot}/${prefix}/bin"
system "install -o root -m 644 -c README \
${destroot}/${prefix}/share/doc/netcat" }

0 comments on commit fc04bdb

Please sign in to comment.
You can’t perform that action at this time.