The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: Searching the ports
Author: parv 
Date:   19-09-05 23:09

Have you tried textproc/p5-FreeBSD-Ports? From the description ...

<quote>
FreeBSD::Ports and FreeBSD::Ports::Port are modules for parsing
FreeBSD's Ports INDEX file and selecting ports that match certain
criteria.

For example, you might want to list ports maintained by tom@FreeBSD.org
sorted alphabetically:
my $ports = tie my %port, 'FreeBSD::Ports', '/usr/ports/INDEX';
$ports->maintainer('tom@FreeBSD.org');
$ports->sort('alpha');
foreach my $p (keys %port) {
print $p->as_ascii,"\n";
}
</quote>

...which i promote over my own version ...

http://www103.pair.com/parv/comp/src/perl/parse-index
http://www103.pair.com/parv/comp/src/perl/pod/parse-index.pod

... which requires a custom module not available via CPAN ...

http://www103.pair.com/parv/comp/src/perl/dist/Parv-Util-1.10.tar.gz

- Parv

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Searching the ports   new
William Cooper 21-02-02 14:06 
 Re: Searching the ports   new
parv 22-02-02 10:34 
 Re: Searching the ports   new
Benjamin Lutz 09-04-02 02:48 
 Re: Searching the ports   new
parv 15-04-02 07:00 
 Re: Searching the ports   new
parv 15-04-02 07:05 
 Re: Searching the ports   new
el_kab0ng 19-09-05 18:09 
 Re: Searching the ports   new
Dan 19-09-05 18:31 
 Re: Searching the ports   new
el_kab0ng 19-09-05 18:38 
 Re: Searching the ports   new
parv 19-09-05 23:09 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org