summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoradam <adam>2017-02-13 17:20:06 +0000
committeradam <adam>2017-02-13 17:20:06 +0000
commit5fc2965ba76990040381dbca72e976bebf6007fb (patch)
tree0812365ddda09ce3723d5ea5c3a77684d9118c37 /net
parentc5fdcb52fd62c61c7708aa8559d2f47dcb3bee5d (diff)
downloadpkgsrc-5fc2965ba76990040381dbca72e976bebf6007fb.tar.gz
Added net/py-portend version 1.8:
Use portend to monitor TCP ports for bound or unbound states. For example, to wait for a port to be occupied, timing out after 3 seconds:: portend.occupied('www.pkgsrc.org', 80, timeout=3) Or to wait for a port to be free, timing out after 5 seconds:: portend.free('::1', 80, timeout=5) The portend may also be executed directly. If the function succeeds, it returns nothing and exits with a status of 0. If it fails, it prints a message and exits with a status of 1. For example:: python -m portend localhost:31923 free (exits immediately) python -m portend -t 1 localhost:31923 occupied (one second passes) Port 31923 not bound on localhost.
Diffstat (limited to 'net')
-rw-r--r--net/Makefile3
-rw-r--r--net/py-portend/DESCR20
-rw-r--r--net/py-portend/Makefile18
-rw-r--r--net/py-portend/PLIST10
-rw-r--r--net/py-portend/distinfo6
5 files changed, 56 insertions, 1 deletions
diff --git a/net/Makefile b/net/Makefile
index 2154a1feb77..e7e8ae743af 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1148 2017/02/07 09:50:32 hauke Exp $
+# $NetBSD: Makefile,v 1.1149 2017/02/13 17:20:06 adam Exp $
#
COMMENT= Networking tools
@@ -643,6 +643,7 @@ SUBDIR+= py-netifaces
SUBDIR+= py-netsnmp
SUBDIR+= py-omniORBpy
SUBDIR+= py-pcap
+SUBDIR+= py-portend
SUBDIR+= py-ptt
SUBDIR+= py-pydns
SUBDIR+= py-s3cmd
diff --git a/net/py-portend/DESCR b/net/py-portend/DESCR
new file mode 100644
index 00000000000..e69ea2dc5c2
--- /dev/null
+++ b/net/py-portend/DESCR
@@ -0,0 +1,20 @@
+Use portend to monitor TCP ports for bound or unbound states.
+
+For example, to wait for a port to be occupied, timing out after 3 seconds::
+
+ portend.occupied('www.pkgsrc.org', 80, timeout=3)
+
+Or to wait for a port to be free, timing out after 5 seconds::
+
+ portend.free('::1', 80, timeout=5)
+
+The portend may also be executed directly. If the function succeeds, it
+returns nothing and exits with a status of 0. If it fails, it prints a
+message and exits with a status of 1. For example::
+
+ python -m portend localhost:31923 free
+ (exits immediately)
+
+ python -m portend -t 1 localhost:31923 occupied
+ (one second passes)
+ Port 31923 not bound on localhost.
diff --git a/net/py-portend/Makefile b/net/py-portend/Makefile
new file mode 100644
index 00000000000..1864de371a0
--- /dev/null
+++ b/net/py-portend/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2017/02/13 17:20:06 adam Exp $
+
+DISTNAME= portend-1.8
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= net python
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/portend/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/jaraco/portend
+COMMENT= TCP port monitoring utilities
+LICENSE= mit
+
+USE_LANGUAGES= # none
+
+DEPENDS+= ${PYPKGPREFIX}-tempora-[0-9]*:../../time/py-tempora
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/py-portend/PLIST b/net/py-portend/PLIST
new file mode 100644
index 00000000000..7ec31af953f
--- /dev/null
+++ b/net/py-portend/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2017/02/13 17:20:06 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/namespace_packages.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/portend.py
+${PYSITELIB}/portend.pyc
+${PYSITELIB}/portend.pyo
diff --git a/net/py-portend/distinfo b/net/py-portend/distinfo
new file mode 100644
index 00000000000..bed9746b7ca
--- /dev/null
+++ b/net/py-portend/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/02/13 17:20:06 adam Exp $
+
+SHA1 (portend-1.8.tar.gz) = 741349aa7accba1451b8e04d9d25c085375da814
+RMD160 (portend-1.8.tar.gz) = 878298477286393f472e914b1dc82845158d62e3
+SHA512 (portend-1.8.tar.gz) = 731b38de3ceab3bbbd6975f3d7fc543fa29251928139d3fa02c2391cbd99199302a80d5749ddaa3b31b61e396c0aef61c3b6e2b1b58dda5ea035ff7220319f97
+Size (portend-1.8.tar.gz) = 7418 bytes