IMPORTANT: do not directly or indirectly require native_support; we can‘t compile it yet until we have a compiler, and installers usually check whether a compiler is installed.
FILE_LOCATION | = | File.expand_path(__FILE__) | ||
PACKAGE_NAME | = | 'passenger' | Names and version numbers ###### | |
VERSION_STRING | = | '4.0.25' | Run ‘rake ext/common/Constants.h’ after changing this number. | |
PREFERRED_NGINX_VERSION | = | '1.4.4' | ||
NGINX_SHA256_CHECKSUM | = | '7c989a58e5408c9593da0bebcd0e4ffc3d892d1316ba5042ddb0be5b0b4102b9' | ||
PREFERRED_PCRE_VERSION | = | '8.32' | ||
PCRE_SHA256_CHECKSUM | = | 'd5d8634b36baf3d08be442a627001099583b397f456bc795304a013383b6423a' | ||
STANDALONE_INTERFACE_VERSION | = | 1 | ||
GLOBAL_NAMESPACE_DIRNAME | = | "passenger" | Directories ###### | |
USER_NAMESPACE_DIRNAME | = | ".passenger" | Subdirectory under $HOME to use for storing stuff. | |
PLUGIN_DIRS | = | [ "/usr/share/#{GLOBAL_NAMESPACE_DIRNAME}/plugins", "/usr/local/share/#{GLOBAL_NAMESPACE_DIRNAME}/plugins", "~/#{USER_NAMESPACE_DIRNAME}/plugins" | Directories in which to look for plugins. | |
REQUIRED_LOCATIONS_INI_FIELDS | = | [ :bin_dir, :agents_dir, :lib_dir, :helper_scripts_dir, :resources_dir, :include_dir, :doc_dir, :ruby_libdir, :node_libdir, :apache2_module_path, :ruby_extension_source_dir, :nginx_module_source_dir | ||
OPTIONAL_LOCATIONS_INI_FIELDS | = | [ # Directory in which downloaded Phusion Passenger binaries are stored. # Only available when originally packaged. :download_cache_dir | ||
BINARIES_URL_ROOT | = | "https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release" | Other resource locations ###### | |
INDEX_DOC_NAME | = | "Users guide.html" | ||
APACHE2_DOC_NAME | = | "Users guide Apache.html" | ||
NGINX_DOC_NAME | = | "Users guide Nginx.html" | ||
STANDALONE_DOC_NAME | = | "Users guide Standalone.html" | ||
PASSENGER_ANALYTICS_WEB_LOG | = | "PASSENGER_ANALYTICS_WEB_LOG".freeze | ||
PASSENGER_TXN_ID | = | "PASSENGER_TXN_ID".freeze | ||
PASSENGER_UNION_STATION_KEY | = | "UNION_STATION_KEY".freeze | ||
RACK_HIJACK_IO | = | "rack.hijack_io".freeze |
Whether the current Phusion Passenger installation is installed from a release package, e.g. an official gem or official tarball. Retruns false if e.g. the gem was built by the user, or if this install is from a git repository.
Returns whether this Phusion Passenger installation is in the ‘originally packaged’ configuration (as opposed to the ‘natively packaged’ configuration.