net/py-portend 3.2.1 NetBSD
TCP port monitoring utilities
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- net, python
- Package size
- 10.3 KiB, 33.3 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | net/py-portend | 3.2.1 |
| FreeBSD | net/py-portend | 3.2.1 |
| OpenBSD | net/py-portend | 3.2.1p1 |
| DragonFly | net/py-portend | 2.5_2 |
| MidnightBSD | net/py-portend | 2.5_2 |
| HardenedBSD | net/py-portend | 3.2.1 |
| GhostBSD | net/py-portend | 2.5_2 |
Install
Binary package:
pkgin install py311-portend
From pkgsrc:
cd /usr/pkgsrc/net/py-portend && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 3.2.1 |
| NetBSD 10.1 aarch64 | 3.2.1 |
| SmartOS / illumos x86_64 | 3.2.1 |
| macOS 15 arm64 | 3.2.1 |
Dependencies
Run dependencies 2
Required by 2
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-portend-3.2.1,py313-portend-3.2.1,py314-portend-3.2.1