How to check if one can install Net::LDAP via the ports

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Nov 4 09:30:45 PST 2004


On Thu, Nov 04, 2004 at 12:11:56PM -0500, Danny wrote:
> I ran the following command from /usr/ports
> 
> mx1# make search key="net::ldap"
> Port:   p5-ResourcePool-Resource-Net-LDAP-1.0002
> Path:   /usr/ports/net/p5-ResourcePool-Resource-Net-LDAP
> Info:   A ResourcePool wrapper for Net::LDAP
> Maint:  erwin at FreeBSD.org
> B-deps: p5-Authen-SASL-2.07 p5-Convert-ASN1-0.18 p5-Digest-1.06
> p5-Digest-MD5-2.33 p5-IO-Socket-SSL-0.95 p5-MIME-Base64-3.01
> p5-Net-SSLeay-1.23 p5-ResourcePool-1.0103 p5-Storable-2.09 p5-URI-1.30
> p5-XML-SAX-Base-1.04 p5-perl-ldap-0.30
> R-deps: p5-Authen-SASL-2.07 p5-Convert-ASN1-0.18 p5-Digest-1.06
> p5-Digest-MD5-2.33 p5-IO-Socket-SSL-0.95 p5-MIME-Base64-3.01
> p5-Net-SSLeay-1.23 p5-ResourcePool-1.0103 p5-Storable-2.09 p5-URI-1.30
> p5-XML-SAX-Base-1.04 p5-perl-ldap-0.30
> 
> But, I do not think this is what I am looking for - referencing:
> http://www-personal.umich.edu/~malth/gaptuning/postfix/
> 
> Anyway, what's the best way to search for a Perl module in the ports,
> such as Net::LDAP, and if I can't find it, what would Plan B, be?

The convention is that a perl module Foo::Bar when turned into a port,
is called p5-Foo-Bar.  This applies to the vast majority of perl
module ports: however there are some, largely historical exceptions
(and those usually don't obey the standard module naming conventions
on CPAN either).  Examples of exceptions are: www/p5-libwww,
biology/p5-bioperl, p5-Nysql-modules and various other p5-lib<mumble>
ports.

On the specific question of Net::LDAP, the port you want is one of the
exceptions: net/p5-perl-ldap.  I found that but doing:

    % make search name=ldap

which turned up a couple of likely suspects.  A quick check of the
pkg-plist confirmed that it was the right module:

    % less /usr/ports/net/p5-perl-ldap/pkg-plist

Looking at the pkg-plist and pkg-descr file is usually enough to tell
you what you need to know when looking for the appropriate port.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041104/42e10e2c/attachment.bin


More information about the freebsd-questions mailing list