regress: Add install_deps support for Debian Lenny

Perl convert-binary-c is not in Lenny repos yet, so install from
source.
This commit is contained in:
Brandon Heller
2010-02-17 20:25:42 -08:00
committed by Glen Gibb
parent fc8a51634d
commit b70d37144f
+8 -1
View File
@@ -143,7 +143,6 @@ sub install_ubuntu_debian {
'libpcap0.8-dev',
'iproute',
'psmisc',
'libconvert-binary-c-perl',
'libnet-pcap-perl',
'libnet-rawip-perl',
'wget',
@@ -157,6 +156,14 @@ sub install_ubuntu_debian {
'http://www.cpan.org/authors/id/J/JV/JV/Getopt-Long-2.38.tar.gz',
);
if ($distro eq UBUNTU) {
push (@pkts, 'libconvert-binary-c-perl')
}
else {
push (@modules,
'http://search.cpan.org/CPAN/authors/id/M/MH/MHX/Convert-Binary-C-0.74.tar.gz')
}
# Run apt-get
my @flags = ('-y');
push(@flags, '-s') if defined($sim);