summaryrefslogtreecommitdiff
path: root/net/obnc
diff options
context:
space:
mode:
authorDima Dorfman <dd@FreeBSD.org>2001-07-04 01:07:06 +0000
committerDima Dorfman <dd@FreeBSD.org>2001-07-04 01:07:06 +0000
commit40ac86fea46758bb01cfc419e80350ff221a6d32 (patch)
tree5c75d02130ac3ec76ab9e41dbaccfffd63a90e4a /net/obnc
parentAdd NOPORTDOCS support (diff)
Add Yet Another incarnation of netcat to the ever-growing ports tree.
This one is a rewrite by one of the OpenBSD folks, and features cleaner code and IPv6 support (which neither of the others have).
Notes
Notes: svn path=/head/; revision=44730
Diffstat (limited to 'net/obnc')
-rw-r--r--net/obnc/Makefile74
-rw-r--r--net/obnc/distinfo1
-rw-r--r--net/obnc/files/tarignore1
-rw-r--r--net/obnc/pkg-comment1
-rw-r--r--net/obnc/pkg-descr4
-rw-r--r--net/obnc/pkg-plist1
6 files changed, 82 insertions, 0 deletions
diff --git a/net/obnc/Makefile b/net/obnc/Makefile
new file mode 100644
index 000000000000..234821b21d66
--- /dev/null
+++ b/net/obnc/Makefile
@@ -0,0 +1,74 @@
+# New ports collection makefile for: obnc
+# Date created: 3 July 2001
+# Whom: dd
+#
+# $FreeBSD$
+#
+
+PORTNAME= obnc
+PORTVERSION= 20010703
+CATEGORIES= net ipv6
+MASTER_SITES= ${MASTER_SITE_LOCAL} \
+ http://www.unixfreak.org/~dima/distfiles/
+MASTER_SITE_SUBDIR= dd
+
+MAINTAINER= dd@FreeBSD.org
+
+MANSECTS= 1
+MAN1= nc.1
+MANCOMPRESSED= maybe
+
+# MAN page COMPression SUFFIX
+.if !defined(NOMANCOMPRESS)
+MANCOMPSUFFIX= .gz
+.else
+MANCOMPSUFFIX=
+.endif
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/nc ${PREFIX}/bin/nc
+.for __s in ${MANSECTS}
+.for __m in ${MAN${__s}:S/$/${MANCOMPSUFFIX}/}
+ @${INSTALL_MAN} ${WRKSRC}/${__m} ${PREFIX}/man/man${__s}/${__m}
+.endfor
+.endfor
+
+#
+# Ports build/install stuff stops here. Tarball creation stuff begins here.
+#
+.include <bsd.port.pre.mk>
+CVS_CMD?= cvs -z3
+CVS_DATE= Tue Jul 3 17:56:05 PDT 2001
+CVS_SITES?= anoncvs@anoncvs3.usa.openbsd.org:/cvs \
+ anoncvs@anoncvs1.ca.openbsd.org:/cvs
+CVS_MODULE= src/usr.bin/nc
+
+#
+# CVS checkout stuff mostly stolen from security/openssh-askpass port by
+# kris@freebsd.org
+#
+tarball:
+ @${MKDIR} ${DISTDIR}/${PKGNAME} && \
+ cd ${DISTDIR}/${PKGNAME}; \
+ for CVS_SITE in ${CVS_SITES}; do \
+ ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
+ if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \
+ ${CVS_MODULE}; then \
+ cd ${DISTDIR}; \
+ ${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
+ ${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \
+ ${MV} ${PKGNAME}/${CVS_MODULE} \
+ ${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
+ ${TAR} -cz \
+ -X ${FILESDIR}/tarignore \
+ -f ${PKGNAME}.tar.gz \
+ -C ${PKGNAME}/${CVS_MODULE:H} \
+ ${PKGNAME}; \
+ exit; \
+ fi \
+ done; \
+ ${RMDIR} ${DISTDIR}/${PKGNAME}; \
+ ${ECHO_MSG} ">> CVS checkout failed."; \
+ exit 1;
+
+.include <bsd.port.post.mk>
diff --git a/net/obnc/distinfo b/net/obnc/distinfo
new file mode 100644
index 000000000000..c44289a704f3
--- /dev/null
+++ b/net/obnc/distinfo
@@ -0,0 +1 @@
+MD5 (obnc-20010703.tar.gz) = 3e09393e56203f01342a55bf29afdde6
diff --git a/net/obnc/files/tarignore b/net/obnc/files/tarignore
new file mode 100644
index 000000000000..7ac83b287f2f
--- /dev/null
+++ b/net/obnc/files/tarignore
@@ -0,0 +1 @@
+CVS
diff --git a/net/obnc/pkg-comment b/net/obnc/pkg-comment
new file mode 100644
index 000000000000..a18fef9f8de1
--- /dev/null
+++ b/net/obnc/pkg-comment
@@ -0,0 +1 @@
+OpenBSD's netcat: cleaner code, familiar interface, IPv6 support
diff --git a/net/obnc/pkg-descr b/net/obnc/pkg-descr
new file mode 100644
index 000000000000..a857cbae9ff1
--- /dev/null
+++ b/net/obnc/pkg-descr
@@ -0,0 +1,4 @@
+This is OpenBSD's nc(1), featuring cleaner code, an interface
+compatible with *hobbit*'s netcat, and IPv6 support.
+
+Please note that despite the port/package name, this installs as bin/nc!
diff --git a/net/obnc/pkg-plist b/net/obnc/pkg-plist
new file mode 100644
index 000000000000..682ce4d99312
--- /dev/null
+++ b/net/obnc/pkg-plist
@@ -0,0 +1 @@
+bin/nc