package Cpanel::Easy::Apache::Version;

# cpanel - Cpanel/Easy/Apache/2_4/Version.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

our $easyconfig = {
    'name'    => 'Version',
    'url'     => 'http://httpd.apache.org/docs/[% apache_uri_version %]/mod/mod_version.html',
    'reverse' => 0,
    'step'    => {
        '0' => {
            'name'    => 'to config options',
            'command' => sub {
                my ($self) = @_;

                # You do not need to use 'reverse' when selecting mod_version in
                # Apache 2.4 because we use './configure --enable-modules=none'.
                # Use of this option allows us to keep 'positive' logic.
                $self->add_to_configure( { '--enable-version' => ['static'] } );
                return ( 1, 'Ok' );
            },
        },
    },
};

1;
