package Cpanel::Easy::PHP5::SNMP;

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

our $easyconfig = {
    'name'      => 'SNMP',
    'note'      => 'Requires the SNMP Dev libraries to be installed first!!!',
    'url'       => 'http://www.php.net/manual/en/ref.snmp.php',
    'ensurepkg' => [ 'snmp-devel', 'net-snmp', 'net-snmp-devel' ],
    'step'      => {
        '0' => {
            'name'    => 'to config options',
            'command' => sub {
                my ($self) = @_;
                $self->add_to_configure( { '--with-snmp' => '', '--enable-ucd-snmp-hack' => '' } );
                return ( 1, 'Ok' );
            },
        },
    },
};

1;
