diff options
author | aaron <aaron@FreeBSD.org> | 2006-05-26 06:25:43 +0800 |
---|---|---|
committer | aaron <aaron@FreeBSD.org> | 2006-05-26 06:25:43 +0800 |
commit | 774501c51aaac013a2838e8fefa21fccb2ad211d (patch) | |
tree | dd73204e470f0e5c93eb1c899fde94a824e0626c | |
parent | 34eadbddb392849309ce2d3fc77e0612109e6475 (diff) | |
download | freebsd-ports-gnome-774501c51aaac013a2838e8fefa21fccb2ad211d.tar.gz freebsd-ports-gnome-774501c51aaac013a2838e8fefa21fccb2ad211d.tar.zst freebsd-ports-gnome-774501c51aaac013a2838e8fefa21fccb2ad211d.zip |
Adding port net/p5-Net-MAC-Vendor, look up the vendor for a MAC.
Approved by: tobez (implicit)
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/p5-Net-MAC-Vendor/Makefile | 30 | ||||
-rw-r--r-- | net/p5-Net-MAC-Vendor/distinfo | 3 | ||||
-rw-r--r-- | net/p5-Net-MAC-Vendor/pkg-descr | 24 | ||||
-rw-r--r-- | net/p5-Net-MAC-Vendor/pkg-plist | 7 |
5 files changed, 65 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 68623be93c7e..6bc132123f76 100644 --- a/net/Makefile +++ b/net/Makefile @@ -422,6 +422,7 @@ SUBDIR += p5-Net-Gopher SUBDIR += p5-Net-HL7 SUBDIR += p5-Net-Ident + SUBDIR += p5-Net-MAC-Vendor SUBDIR += p5-Net-MovableType SUBDIR += p5-Net-NBName SUBDIR += p5-Net-OpenDHT diff --git a/net/p5-Net-MAC-Vendor/Makefile b/net/p5-Net-MAC-Vendor/Makefile new file mode 100644 index 000000000000..f85c935df980 --- /dev/null +++ b/net/p5-Net-MAC-Vendor/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: p5-Net-MAC-Vendor +# Date created: 25 May 2006 +# Whom: Aaron Dalton <aaron@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Net-MAC-Vendor +PORTVERSION= 1.01 +CATEGORIES= net perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Net +PKGNAMEPREFIX= p5- + +MAINTAINER= aaron@FreeBSD.org +COMMENT= Look up the vendor for a MAC + +BUILD_DEPENDS= ${SITE_PERL}/LWP/Simple.pm:${PORTSDIR}/www/p5-libwww + +MAN3= Net::MAC::Vendor.3 + +PERL_CONFIGURE= yes + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +IGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again +.endif + +.include <bsd.port.post.mk> diff --git a/net/p5-Net-MAC-Vendor/distinfo b/net/p5-Net-MAC-Vendor/distinfo new file mode 100644 index 000000000000..91ad9cdab51d --- /dev/null +++ b/net/p5-Net-MAC-Vendor/distinfo @@ -0,0 +1,3 @@ +MD5 (Net-MAC-Vendor-1.01.tar.gz) = c3f16ae1be735fa76facacd191e8c0ba +SHA256 (Net-MAC-Vendor-1.01.tar.gz) = a3a14fa709c1328c92c675e8c15758b3a7b7781171bf110fb16592c94886f36f +SIZE (Net-MAC-Vendor-1.01.tar.gz) = 5962 diff --git a/net/p5-Net-MAC-Vendor/pkg-descr b/net/p5-Net-MAC-Vendor/pkg-descr new file mode 100644 index 000000000000..1f75f64e0fcb --- /dev/null +++ b/net/p5-Net-MAC-Vendor/pkg-descr @@ -0,0 +1,24 @@ +The Institute of Electrical and Electronics Engineers (IEEE) assigns an +Organizational Unique Identifier (OUI) to manufacturers of network +interfaces. Each interface has a Media Access Control (MAC) address of six +bytes. The first three bytes are the OUI. + +This module allows you to take a MAC address and turn it into the OUI and +vendor information. You can, for instance, scan a network, collect MAC +addresses, and turn those addresses into vendors. With vendor information, +you can often guess at what what you are looking at (e.g. an Apple +product). + +You can use this as a module as its individual functions, or call it as a +script with a list of MAC addresses as arguments. The module can figure it +out. + +This module tries to persistently cache with DBM::Deep the OUI information +so it can avoid using the network. If it cannot load DBM::Deep, it uses a +normal hash (which is lost when the process finishes). You can preload +this cache with the load_cache() function. So far, the module looks in the +current working directory for a file named mac_oui.db to find the cache. I +need to come up with a way to let the user set that location. + +WWW: http://search.cpan.org/dist/Net-MAC-Vendor +Author: brian d foy <bdfoy@cpan.org> diff --git a/net/p5-Net-MAC-Vendor/pkg-plist b/net/p5-Net-MAC-Vendor/pkg-plist new file mode 100644 index 000000000000..64b9135ba76a --- /dev/null +++ b/net/p5-Net-MAC-Vendor/pkg-plist @@ -0,0 +1,7 @@ +%%SITE_PERL%%/Net/MAC/Vendor.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/MAC/Vendor/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/MAC/Vendor +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/MAC +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net +@dirrmtry %%SITE_PERL%%/Net/MAC +@dirrmtry %%SITE_PERL%%/Net |