pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Feb 13 17:20:06 UTC 2017

Modified Files:
        pkgsrc/net: Makefile
Added Files:
        pkgsrc/net/py-portend: DESCR Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1148 -r1.1149 pkgsrc/net/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/net/py-portend/DESCR \
    pkgsrc/net/py-portend/Makefile pkgsrc/net/py-portend/PLIST \
    pkgsrc/net/py-portend/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/Makefile
diff -u pkgsrc/net/Makefile:1.1148 pkgsrc/net/Makefile:1.1149
--- pkgsrc/net/Makefile:1.1148  Tue Feb  7 09:50:32 2017
+++ pkgsrc/net/Makefile Mon Feb 13 17:20:06 2017
@@ -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

Added files:

Index: pkgsrc/net/py-portend/DESCR
diff -u /dev/null pkgsrc/net/py-portend/DESCR:1.1
--- /dev/null   Mon Feb 13 17:20:06 2017
+++ pkgsrc/net/py-portend/DESCR Mon Feb 13 17:20:06 2017
@@ -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.
Index: pkgsrc/net/py-portend/Makefile
diff -u /dev/null pkgsrc/net/py-portend/Makefile:1.1
--- /dev/null   Mon Feb 13 17:20:06 2017
+++ pkgsrc/net/py-portend/Makefile      Mon Feb 13 17:20:06 2017
@@ -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"
Index: pkgsrc/net/py-portend/PLIST
diff -u /dev/null pkgsrc/net/py-portend/PLIST:1.1
--- /dev/null   Mon Feb 13 17:20:06 2017
+++ pkgsrc/net/py-portend/PLIST Mon Feb 13 17:20:06 2017
@@ -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
Index: pkgsrc/net/py-portend/distinfo
diff -u /dev/null pkgsrc/net/py-portend/distinfo:1.1
--- /dev/null   Mon Feb 13 17:20:06 2017
+++ pkgsrc/net/py-portend/distinfo      Mon Feb 13 17:20:06 2017
@@ -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