package Cpanel::Easy::OptLib::mcrypt;

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

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

    return {
        'name'         => 'libmcrypt',
        'install_path' => "/opt/libmcrypt/",
        'itis_up2date' => sub {
            `/opt/libmcrypt/bin/libmcrypt-config --version` =~ m{ 2[.]5[.]8 }xms;
        },
        'working_path' => 'libmcrypt-2.5.8',
        'command_list' => [ [qw(./configure --prefix=/opt/libmcrypt --disable-posix-threads --enable-static)], ['make'], [qw(make install)], ],
    };
}

1;
