RECENT POSTS

P5-freebsd-ports

May 26, 2018

Perl modules for parsing FreeBSD’s Ports INDEX file

FreeBSDPorts and FreeBSDPortsPort 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, ‘FreeBSDPorts’, ‘/usr/ports/INDEX’; $ports->maintainer’tom@FreeBSD.org’; $ports->sort’alpha’; foreach my $p keys port print $p->as_ascii,”\n”;

WWW http//people.FreeBSD.org/~tom/portpm/