./net/py-portend, TCP port monitoring utilities

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.2.0, Package name: py312-portend-3.2.0, Maintainer: pkgsrc-users

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.


Required to run:
[devel/py-setuptools] [time/py-tempora] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

Filesize: 10.268 KB

Version history: (Expand)


CVS history: (Expand)


   2023-11-17 21:52:27 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-portend: updated to 3.2.0

v3.2.0

Features

- Require Python 3.8 or later.
   2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319)
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
   2022-11-06 19:19:52 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-portend: updated to 3.1.0

v3.1.0
======
Require Python 3.7 or later.

v3.0.0
======
Removed legacy aliases ``wait_for_occupied_port``
and ``wait_for_free_port``.

v2.7.2
======
Packaging refresh.

v2.7.1
======
Fix host/port order.

v2.7.0
======
Refresh package. Require Python 3.6 or later.
   2022-01-13 20:31:25 by Thomas Klausner | Files touched by this commit (43)
Log message:
*: setuptools_scm: switch to versioned_dependencies
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:07:15 by Nia Alarie | Files touched by this commit (958)
Log message:
net: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Not committed (merge conflicts...):

net/radsecproxy/distinfo

The following distfiles could not be fetched (fetched conditionally?):

./net/citrix_ica/distinfo citrix_ica-10.6.115659/en.linuxx86.tar.gz
./net/djbdns/distinfo dnscache-1.05-multiple-ip.patch
./net/djbdns/distinfo djbdns-1.05-test28.diff.xz
./net/djbdns/distinfo djbdns-1.05-ignoreip2.patch
./net/djbdns/distinfo djbdns-1.05-multiip.diff
./net/djbdns/distinfo djbdns-cachestats.patch
   2021-10-07 16:43:07 by Nia Alarie | Files touched by this commit (962)
Log message:
net: Remove SHA1 hashes for distfiles
   2020-05-16 20:00:32 by Adam Ciarcinski | Files touched by this commit (9)
Log message:
pytest from versioned depends