From b70d37144ffa4adf1a1cccaee44862c7ae2a196e Mon Sep 17 00:00:00 2001 From: Brandon Heller Date: Wed, 17 Feb 2010 20:25:42 -0800 Subject: [PATCH] regress: Add install_deps support for Debian Lenny Perl convert-binary-c is not in Lenny repos yet, so install from source. --- regress/scripts/install_deps.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/regress/scripts/install_deps.pl b/regress/scripts/install_deps.pl index d7ae4a1..b043285 100755 --- a/regress/scripts/install_deps.pl +++ b/regress/scripts/install_deps.pl @@ -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);