- rename nc to netcat to prevent /usr/bin/nc from shadowing

/usr/local/bin/nc

PR:             ports/11970
Submitted by:   Jonathan Liu <Net147@hotmail.com>
Approved by:    maintainer timeout (sumikawa ; 960 days)
This commit is contained in:
Philip M. Gollucci 2010-09-05 02:30:19 +00:00
parent 110eef605f
commit b291c01064
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260572
3 changed files with 18 additions and 12 deletions

View file

@ -5,6 +5,12 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20100904
AFFECTS: net/netcat
AUTHOR: pgollucci@FreeBSD.org
Rename nc to netcat to prevent /usr/bin/nc shadowing /usr/local/bin/nc
20100902:
AFFECTS: users of KDE4
AUTHOR: kde@FreeBSD.org

View file

@ -8,7 +8,7 @@
PORTNAME= netcat
PORTVERSION= 1.10
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net ipv6
MASTER_SITES= ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/ \
ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/ \
@ -30,9 +30,9 @@ OPTIONS= IPV6 "enable IPv6 support" on \
TELNET "enable TELNET support" on \
GAPING "enable GAPING_SECURITY_HOLE support" on
PLIST_FILES= bin/nc
PLIST_FILES= bin/netcat
PORTDOCS= README
MAN1= nc.1
MAN1= netcat.1
.include <bsd.port.pre.mk>
@ -48,11 +48,11 @@ XFLAGS+= -DTELNET
XFLAGS+= -DGAPING_SECURITY_HOLE
.endif
MAKE_ENV= XFLAGS="$(XFLAGS)"
MAKE_ENV= XFLAGS="${XFLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nc ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/nc.1 ${PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/nc ${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${FILESDIR}/nc.1 ${PREFIX}/man/man1/${MAN1}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}

View file

@ -1,11 +1,11 @@
.TH NC 1
.TH NETCAT 1
.SH NAME
nc \- TCP/IP swiss army knife
netcat \- TCP/IP swiss army knife
.SH SYNOPSIS
.B nc
.B netcat
.I "[-options] hostname port[s] [ports] ..."
.br
.B nc
.B netcat
.I "-l -p port [-options] [hostname] [port]"
.SH "DESCRIPTION"
.B netcat
@ -15,11 +15,11 @@ reliable "back-end" tool that can be used directly or easily driven by
other programs and scripts. At the same time, it is a feature-rich
network debugging and exploration tool, since it can create almost any
kind of connection you would need and has several interesting built-in
capabilities. Netcat, or "nc" as the actual program is named, should
capabilities. Netcat, or "netcat" as the actual program is named, should
have been supplied long ago as another one of those cryptic but
standard Unix tools.
.P
In the simplest usage, "nc host port" creates a TCP connection to the
In the simplest usage, "netcat host port" creates a TCP connection to the
given port on the given target host. Your standard input is then sent
to the host, and anything that comes back across the connection is
sent to your standard output. This continues indefinitely, until the