<commit_before>define 'apache2' do
	name 'Apache 2'
	website 'http://httpd.apache.org/'
	define_checker do
		require 'phusion_passenger/platform_info/apache'
		if check_for_command(PlatformInfo.httpd)
			{
				:found => true,
				"Location of httpd" => PlatformInfo.httpd,
				"Apache version"    => PlatformInfo.httpd_version
			}
		else
			false
		end
	end

	on :debian do
		apt_get_install "apache2-mpm-worker"
	end
	on :mandriva do
		urpmi "apache"
	end
	on :redhat do
		yum_install "httpd"
	end
	on :gentoo do
		emerge "apache"
	end
end

define 'apache2-dev' do
	name "Apache 2 development headers"
	website "http://httpd.apache.org/"
	define_checker do
		require 'phusion_passenger/platform_info/apache'
		if PlatformInfo.apxs2
			{
				:found => true,
				"Location of apxs2" => PlatformInfo.apxs2
			}
		else
			false
		end
	end

	on :debian do
		apt_get_install "apache2-worker-dev"
	end
	on :mandriva do
		urpmi "apache-devel"
	end
	on :redhat do
		yum_install "httpd-devel"
	end
	on :gentoo do
		emerge "apache"
	end
	on :macosx do
		xcode_install "Command Line Tools"
	end
end

define 'apr-dev' do
	name "Apache Portable Runtime (APR) development headers"
	website "http://httpd.apache.org/"
	define_checker do
		require 'phusion_passenger/platform_info/apache'
		if PlatformInfo.apr_config
			{
				:found     => true,
				"Location" => PlatformInfo.apr_config,
				"Version"  => `#{PlatformInfo.apr_config} --version`.strip
			}<commit_msg>Apparently the Debian package name for the Apache worker MPM dev headers is apache2-threaded-dev, not apache2-worker-dev.<commit_after>define 'apache2' do
	name 'Apache 2'
	website 'http://httpd.apache.org/'
	define_checker do
		require 'phusion_passenger/platform_info/apache'
		if check_for_command(PlatformInfo.httpd)
			{
				:found => true,
				"Location of httpd" => PlatformInfo.httpd,
				"Apache version"    => PlatformInfo.httpd_version
			}
		else
			false
		end
	end

	on :debian do
		apt_get_install "apache2-mpm-worker"
	end
	on :mandriva do
		urpmi "apache"
	end
	on :redhat do
		yum_install "httpd"
	end
	on :gentoo do
		emerge "apache"
	end
end

define 'apache2-dev' do
	name "Apache 2 development headers"
	website "http://httpd.apache.org/"
	define_checker do
		require 'phusion_passenger/platform_info/apache'
		if PlatformInfo.apxs2
			{
				:found => true,
				"Location of apxs2" => PlatformInfo.apxs2
			}
		else
			false
		end
	end

	on :debian do
		apt_get_install "apache2-threaded-dev"
	end
	on :mandriva do
		urpmi "apache-devel"
	end
	on :redhat do
		yum_install "httpd-devel"
	end
	on :gentoo do
		emerge "apache"
	end
	on :macosx do
		xcode_install "Command Line Tools"
	end
end

define 'apr-dev' do
	name "Apache Portable Runtime (APR) development headers"
	website "http://httpd.apache.org/"
	define_checker do
		require 'phusion_passenger/platform_info/apache'
		if PlatformInfo.apr_config
			{
				:found     => true,
				"Location" => PlatformInfo.apr_config,
				"Version"  => `#{PlatformInfo.apr_config} --version`.strip
			}
{'fraction_non_alphanumeric': 0.09874088800530152, 'fraction_numerical': 0.0066269052352551355, 'mean_word_length': 3.5127055306427506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6814767', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1124, 'n_words': 287}