# $Id$ package Youri::Check::Input::Updates::Source::NetBSD; =head1 NAME Youri::Check::Input::Updates::Source::NetBSD - NetBSD source for updates =head1 DESCRIPTION This source plugin for L collects updates available from NetBSD. =cut use warnings; use strict; use Carp; use base 'Youri::Check::Input::Updates::Source'; use IO::Ftp; =head2 new(%args) Creates and returns a new Youri::Check::Input::Updates::Source::NetBSD object. Specific parameters: =over =item url $url URL to NetBSD mirror content file, without ftp: (default: //ftp.free.fr/mirrors/ftp.netbsd.org/NetBSD-current/pkgsrc/README-all.html) =back =cut sub _init { my $self = shift; my %options = ( url => '//ftp.free.fr/mirrors/ftp.netbsd.org/NetBSD-current/pkgsrc/README-all.html', @_ ); my $versions; my $urls; my $in = IO::Ftp->new('<',$options{url}) or croak "Can't fetch $options{url}: $!"; while (my $line = <$in>) { next unless $line =~ /