package Cpanel::Easy::OptLib::curlnossl;

# cpanel - Cpanel/Easy/OptLib/curlnossl.pm        Copyright(c) 2014 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited

my $version = '7.61.1';

sub path_installed {
    my ($easy_obj) = @_;

    my ($shortver) = split /\./, $version;

    return {
        'name'         => 'Curl',
        'install_path' => '/opt/curl/',
        'itis_up2date' => sub {
            `/opt/curl/bin/curl -V` =~ m{ curl \s+ \Q$version\E }xms;
        },
        'working_path' => "curl-$shortver",
        'command_list' => [ [qw(patch -N -i ../cppatch_curl-config_libs.patch)], [qw(./configure --prefix=/opt/curl/ --without-libssh2 --without-ssl)], ['make'], [qw(make install)], ],
    };
}

1;
