net/p5-Net-Wake 0.02p2 OpenBSD
perl5 module for Wake On LAN
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- Okan Demirmen <[email protected]>
- Categories
- net, perl5
Description
This package sends wake-on-lan (AKA magic) packets to turn on machines that are wake-on-lan capable.
For now there is only one function in this package: Net::Wake::by_udp([$host], $mac_address, [$port]);
You can omit the colons in the $mac_address, but not leading zeros.
Generally speaking, you should use a broadcast address for $host. Using the host's last known IP address is usually not sufficient since the IP address may no longer be in the ARP cache. A $host value of '255.255.255.255' is implied if $host is undef. If you wish to send a magic packet to a remote subnet, you can use a variation of '192.168.0.255', given that you know the subnet mask to generate the proper broadcast address.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | net/p5-Net-Wake | 0.02p2 |
| FreeBSD | net/p5-Net-Wake | 0.02_1 |
| DragonFly | net/p5-Net-Wake | 0.02_1 |
| HardenedBSD | net/p5-Net-Wake | 0.02_1 |
| GhostBSD | net/p5-Net-Wake | 0.02_1 |
Install
Binary package:
pkg_add p5-Net-Wake
From the ports tree:
cd /usr/ports/net/p5-Net-Wake && make install
Dependencies
No port depends on this one.