BSD Ports

net/p5-Net-Subnet 1.03_1 FreeBSD

Fast IP-in-subnet matcher for IPv4 and IPv6, CIDR or mask

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10
Categories
net, perl5
Package size
9.1 KiB, 16.0 KiB installed

Description

This is a simple but fast pure Perl module for determining whether a given IP address is in a given set of IP subnets. It's iterative, and it doesn't use any fancy tries, but because it uses simple bitwise operations on strings it's still very fast.

All documented functions are exported by default.

Subnets have to be given in "address/mask" or "address/length" (CIDR) format. The Socket and Socket6 modules are used to normalise addresses, which means that any of the address formats supported by inet_aton and inet_pton can be used with Net::Subnet.

In the other systems

SystemPortVersion
FreeBSDnet/p5-Net-Subnet1.03_1
DragonFlynet/p5-Net-Subnet1.03_1

Install

Binary package:

pkg install p5-Net-Subnet

From the ports tree:

cd /usr/ports/net/p5-Net-Subnet/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Net-Subnet>0:net/p5-Net-Subnet

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.03_11.03_11.03_11.03_11.03_1
FreeBSD:14:quarterly1.03_11.03_1n/a1.03_11.03_1
FreeBSD:15:latest1.03_11.03_1n/a1.03_11.03_1
FreeBSD:15:quarterly1.03_11.03_1n/an/an/a
FreeBSD:16:latest1.03_11.03_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 2
Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%PERL5_MAN3%%/Net::Subnet.3.gz
  • %%SITE_PERL%%/Net/Subnet.pm
distinfo 1
FileSizeSHA256
Net-Subnet-1.03.tar.gz4305125e6db64c98026439f9b585115f94f42315a31d8f16ca63d0c939ab66019afa
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.