package Apache::TrafficCop;

use ExtUtils::MakeMaker;
use Apache::ExtUtils qw(command_table);
use Apache::src ();

my @directives=( 
                 { name     => '<TrafficCopSpeedLimits',
                   errmsg   => 'a district speed limit container',
                   args_how => 'RAW_ARGS',
                   req_override => 'OR_ALL'
		   },
                 { name => '</TrafficCopSpeedLimits>',
                   errmsg => 'end of speed limit container',
                   args_how => 'NO_ARGS',
                   req_override => 'OR_ALL',
	           },                     
                 { name => 'TrafficCopRoadBlock',
                   errmsg => 'On or Off',
                   args_how => 'FLAG',
                   req_override => 'OR_ALL',
	         },
                 { name => 'TrafficCopActiveSergeant',
                   errmsg => 'the active sergeant on duty',
                   args_how => 'TAKE1',
                   req_override => 'OR_ALL',
	         },
		 { name   => 'TrafficCopSpeedLimit',
		   errmsg => 'an integer specifying the maximum allowable bytes per second',
		   args_how => 'TAKE1',
		   req_override => 'OR_ALL',
	         },
		 { name   =>  'TrafficCopRightOfWay',
		   func   =>  'right_of_way',
		   errmsg =>  'list of domains that can go as fast as they want',
		   args_how => 'ITERATE',
		   req_override => 'OR_ALL',
		   cmd_data => '^[A-Z_]+$',
	         },
		 [TrafficCopTicket => 'violation and days'],
		);

command_table(\@directives);
WriteMakefile(
    'NAME'	=> __PACKAGE__,
    'VERSION'   => '0.01',
    'INC'	=> Apache::src->new->inc,
);
__END__
