FreeBSD::Ports - A simple wrapper for working with the FreeBSD ports.
Version 0.0.0
use FreeBSD::Ports; my $ports = FreeBSD::Ports->new();
This runs a specified make type. Please see ports(7) for more information on the available types.
Three arguements are accepted. The first is the type. The second is the port. The third is a string containing any options to be appended.
$ports->do('install', 'www/firefox'); if($ports->{error}){ print "Errot!\n;"; }
This blanks the error storage and is only meant for internal usage.
It does the following.
$self->{error}=undef; $self->{errorString}='';
This is contained in $port->{error}. A description can be found in $ports->{errorString}.
Command failed.
Port does not exist.
Portsdir does not exist.
Make errored.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-freebsd-ports at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=FreeBSD-Ports. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-freebsd-ports at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc FreeBSD::Ports
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=FreeBSD-Ports
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/FreeBSD-Ports
CPAN Ratings
http://cpanratings.perl.org/d/FreeBSD-Ports
Search CPAN
http://search.cpan.org/dist/FreeBSD-Ports
Copyright 2008 Zane C. Bowers, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install FreeBSD::Ports, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FreeBSD::Ports
CPAN shell
perl -MCPAN -e shell install FreeBSD::Ports
For more information on module installation, please visit the detailed CPAN module installation guide.