1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

Adding port net/p5-Net-MAC-Vendor, look up the vendor for a MAC.

Approved by:	tobez (implicit)
This commit is contained in:
Aaron Dalton 2006-05-25 22:25:43 +00:00
parent ef6445d066
commit fab0f8ee45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163432
5 changed files with 65 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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