# here goes apache2 specific macroses
# (although not all of them are required
# for building modules)
%apache_branch		%apache2_branch
%a_name			%apache2_name
%a_dname		%apache2_dname

%apache_version		%apache2_version
%apache_release		%apache2_release

# Users and groups
%apache_user		%apache2_user
%apache_group		%apache2_group
%apache_webmaster	%apache2_webmaster

# Use webserver-common macros
%apache_datadir		%apache2_datadir
%apache_htdocsdir	%apache2_htdocsdir
%apache_htdocsaddondir	%apache2_htdocsaddondir
%apache_cgibindir	%apache2_cgibindir
%apache_iconsdir	%apache2_iconsdir
%apache_iconssmalldir	%apache2_iconssmalldir
%apache_vhostdir	%apache2_vhostdir
%apache_webappsdir	%apache2_webappsdir

%a_datadir		%apache2_datadir
%a_htdocsdir		%apache2_htdocsdir
%a_addondocdir		%apache2_manualaddonsdir
%a_cgidir		%apache2_cgibindir
%a_iconsdir		%apache2_iconsdir

# Server specific datadirs
%a2_datadir		%apache2_serverdatadir
%a_manualdir		%apache2_manualdir
%a_errordir		%apache2_errordir

%a_bindir		%apache2_bindir
%a_sbindir		%apache2_sbindir
%a_mandir		%apache2_mandir
%a_localstatedir	%apache2_localstatedir
%a_logfiledir		%apache2_logfiledir
%a_includedir		%apache2_includedir
%a_runtimedir		%apache2_runtimedir
%a_proxycachedir	%apache2_proxycachedir
%a_spooldir		%apache2_spooldir
%a_infodir		%apache2_infodir
%a_libdir		%apache2_libdir
%a_installbuilddir	%apache2_installbuilddir
%a_libexecdir		%apache2_libexecdir

%apache_moduledir	%apache2_moduledir
%apache_logdir		%apache2_logdir
%apache_tmpdir		%apache2_tmpdir


# Basedir
%apache_basedir		%apache2_basedir
%a_prefix		%apache2_basedir

# Links in basedir
%apache_modulelink	%apache2_modulelink
%apache_loglink		%apache2_loglink

# Configs
%a_rel_sysconfdir	%apache2_confdir_name
%a_sysconfdir		%apache2_confdir

%apache_confdir		%apache2_confdir
%apache_conf		%apache2_conf

# Debian`like conf
%a_mods_available	%apache2_mods_available
%a_mods_enabled		%apache2_mods_enabled
%a_mods_start		%apache2_mods_start
%a_ports_available	%apache2_ports_available
%a_ports_enabled	%apache2_ports_enabled
%a_ports_start		%apache2_ports_start
%a_sites_available	%apache2_sites_available
%a_sites_enabled	%apache2_sites_enabled
%a_sites_start		%apache2_sites_start
%a_extra_available	%apache2_extra_available
%a_extra_enabled	%apache2_extra_enabled
%a_extra_start		%apache2_extra_start

# Old macros
%apache_addonconfdir	%apache2_addonconfdir

# This tells apache-based packages what
# APR to require and use
%apache_apr_buildreq	%apache2_apr_buildreq
%apache_apr_config	%apache2_apr_config
%apache_apu_config	%apache2_apu_config

%a_exec_prefix		%apache2_exec_prefix

%a_apxs			%apache2_apxs
%apache_apxs		%apache2_apxs

%suexec_docroot		%apache2_suexec_docroot

# Standard %%post/%%postun scripts for packages extending apache configuration
# see also https://bugzilla.altlinux.org/show_bug.cgi?id=1735
%post_apacheconf	%post_apache2conf
%postun_apacheconf	%postun_apache2conf

# apache2 macros removed
%apache2_compat_htdocsaddondir	%apache2_compat_manualaddonsdir
