pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net Added net/py-portend version 1.8:
details: https://anonhg.NetBSD.org/pkgsrc/rev/e510e5639ba2
branches: trunk
changeset: 358477:e510e5639ba2
user: adam <adam%pkgsrc.org@localhost>
date: Mon Feb 13 17:20:06 2017 +0000
description:
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:
net/Makefile | 3 ++-
net/py-portend/DESCR | 20 ++++++++++++++++++++
net/py-portend/Makefile | 18 ++++++++++++++++++
net/py-portend/PLIST | 10 ++++++++++
net/py-portend/distinfo | 6 ++++++
5 files changed, 56 insertions(+), 1 deletions(-)
diffs (87 lines):
diff -r 8e32ece70a38 -r e510e5639ba2 net/Makefile
--- a/net/Makefile Mon Feb 13 17:15:00 2017 +0000
+++ b/net/Makefile Mon Feb 13 17:20:06 2017 +0000
@@ -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-netsnmp
SUBDIR+= py-omniORBpy
SUBDIR+= py-pcap
+SUBDIR+= py-portend
SUBDIR+= py-ptt
SUBDIR+= py-pydns
SUBDIR+= py-s3cmd
diff -r 8e32ece70a38 -r e510e5639ba2 net/py-portend/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-portend/DESCR Mon Feb 13 17:20:06 2017 +0000
@@ -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 -r 8e32ece70a38 -r e510e5639ba2 net/py-portend/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-portend/Makefile Mon Feb 13 17:20:06 2017 +0000
@@ -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@localhost
+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 -r 8e32ece70a38 -r e510e5639ba2 net/py-portend/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-portend/PLIST Mon Feb 13 17:20:06 2017 +0000
@@ -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 -r 8e32ece70a38 -r e510e5639ba2 net/py-portend/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-portend/distinfo Mon Feb 13 17:20:06 2017 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index