mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
3bf4973fab
commit
1985cf18f1
@ -9,6 +9,7 @@ exec_prefix=@exec_prefix@
|
|||||||
|
|
||||||
HTTPD_CONFIG_PATH=@httpd_config_path@
|
HTTPD_CONFIG_PATH=@httpd_config_path@
|
||||||
ICINGAWEB_CONFIG_PATH=@icingaweb_config_path@
|
ICINGAWEB_CONFIG_PATH=@icingaweb_config_path@
|
||||||
|
ICINGAWEB_LOG_PATH=@icingaweb_log_path@
|
||||||
|
|
||||||
INSTALL=@INSTALL@
|
INSTALL=@INSTALL@
|
||||||
INSTALL_OPTS=@INSTALL_OPTS@
|
INSTALL_OPTS=@INSTALL_OPTS@
|
||||||
@ -114,7 +115,7 @@ copy-folder-%:
|
|||||||
|
|
||||||
ensure-writable-folders:
|
ensure-writable-folders:
|
||||||
$(INSTALL) -m 775 $(INSTALL_OPTS_WEB) -d $(DESTDIR)$(prefix)/var/
|
$(INSTALL) -m 775 $(INSTALL_OPTS_WEB) -d $(DESTDIR)$(prefix)/var/
|
||||||
$(INSTALL) -m 775 $(INSTALL_OPTS_WEB) -d $(DESTDIR)$(prefix)/var/log
|
$(INSTALL) -m 775 $(INSTALL_OPTS_WEB) -d $(DESTDIR)$(ICINGAWEB_LOG_PATH)
|
||||||
chmod -R 775 $(DESTDIR)$(ICINGAWEB_CONFIG_PATH)
|
chmod -R 775 $(DESTDIR)$(ICINGAWEB_CONFIG_PATH)
|
||||||
|
|
||||||
|
|
||||||
|
1
config/.gitignore
vendored
1
config/.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
authentication.ini
|
authentication.ini
|
||||||
|
config.ini
|
||||||
modules/monitoring/backends.ini
|
modules/monitoring/backends.ini
|
||||||
modules/monitoring/instances.ini
|
modules/monitoring/instances.ini
|
||||||
resources.ini
|
resources.ini
|
||||||
|
@ -17,13 +17,13 @@ timeFormat = "g:i A"
|
|||||||
enable = "1"
|
enable = "1"
|
||||||
type = "stream"
|
type = "stream"
|
||||||
verbose = "1"
|
verbose = "1"
|
||||||
target = "{app}/var/log/icinga.log"
|
target = "@icingaweb_log_path@/icingaweb.log"
|
||||||
|
|
||||||
; For development and debug purposes: Logs additional (non critical) events to a
|
; For development and debug purposes: Logs additional (non critical) events to a
|
||||||
; seperate log
|
; seperate log
|
||||||
debug.enable = "1"
|
debug.enable = "1"
|
||||||
debug.type = "stream"
|
debug.type = "stream"
|
||||||
debug.target = "{app}/var/log/icinga.debug.log"
|
debug.target = "@icingaweb_log_path@/icingaweb.debug.log"
|
||||||
|
|
||||||
|
|
||||||
; Use ini store to store preferences on local disk
|
; Use ini store to store preferences on local disk
|
||||||
@ -35,4 +35,4 @@ type = "ini"
|
|||||||
;type=db
|
;type=db
|
||||||
;resource=icingaweb-mysql
|
;resource=icingaweb-mysql
|
||||||
|
|
||||||
configPath = "{app}/config/preferences"
|
configPath = "@icingaweb_config_path@/preferences"
|
24
configure
vendored
24
configure
vendored
@ -635,6 +635,7 @@ internal_db_port
|
|||||||
internal_db_host
|
internal_db_host
|
||||||
internal_db_name
|
internal_db_name
|
||||||
internal_db_type
|
internal_db_type
|
||||||
|
icingaweb_log_path
|
||||||
icingaweb_config_path
|
icingaweb_config_path
|
||||||
bin_group
|
bin_group
|
||||||
bin_user
|
bin_user
|
||||||
@ -690,6 +691,7 @@ ac_subst_files=''
|
|||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
with_icingaweb_config_path
|
with_icingaweb_config_path
|
||||||
|
with_icingaweb_log_path
|
||||||
with_web_user
|
with_web_user
|
||||||
with_web_group
|
with_web_group
|
||||||
with_web_path
|
with_web_path
|
||||||
@ -1351,7 +1353,10 @@ Optional Packages:
|
|||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||||
--with-icingaweb-config-path=PATH
|
--with-icingaweb-config-path=PATH
|
||||||
Configuration path for icinga web
|
Configuration path for icinga web (default
|
||||||
|
$prefix/config)
|
||||||
|
--with-icingaweb-log-path=PATH
|
||||||
|
Log path for icinga web (default $prefix/var/log)
|
||||||
--with-web-user=USER username for web writable files (default www-data)
|
--with-web-user=USER username for web writable files (default www-data)
|
||||||
--with-web-group=GROUP group for web writable files (default www-data)
|
--with-web-group=GROUP group for web writable files (default www-data)
|
||||||
--with-web-path=PATH web sub path (default /icingaweb)
|
--with-web-path=PATH web sub path (default /icingaweb)
|
||||||
@ -2276,6 +2281,19 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Log files
|
||||||
|
#
|
||||||
|
|
||||||
|
# Check whether --with-icingaweb_log_path was given.
|
||||||
|
if test "${with_icingaweb_log_path+set}" = set; then
|
||||||
|
withval=$with_icingaweb_log_path; icingaweb_log_path=$withval
|
||||||
|
else
|
||||||
|
icingaweb_log_path=$prefix/var/log
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Users for webfiles
|
# Users for webfiles
|
||||||
#
|
#
|
||||||
@ -2977,6 +2995,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Internal db setup
|
# Internal db setup
|
||||||
|
|
||||||
|
|
||||||
@ -3032,7 +3051,7 @@ fi
|
|||||||
#
|
#
|
||||||
# Create config files
|
# Create config files
|
||||||
#
|
#
|
||||||
ac_config_files="$ac_config_files Makefile config/authentication.ini config/resources.ini config/modules/monitoring/backends.ini config/modules/monitoring/instances.ini etc/apache/icingaweb.conf public/.htaccess public/index.php"
|
ac_config_files="$ac_config_files Makefile config/authentication.ini config/config.ini config/resources.ini config/modules/monitoring/backends.ini config/modules/monitoring/instances.ini etc/apache/icingaweb.conf public/.htaccess public/index.php"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -3649,6 +3668,7 @@ do
|
|||||||
case $ac_config_target in
|
case $ac_config_target in
|
||||||
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
||||||
"config/authentication.ini") CONFIG_FILES="$CONFIG_FILES config/authentication.ini" ;;
|
"config/authentication.ini") CONFIG_FILES="$CONFIG_FILES config/authentication.ini" ;;
|
||||||
|
"config/config.ini") CONFIG_FILES="$CONFIG_FILES config/config.ini" ;;
|
||||||
"config/resources.ini") CONFIG_FILES="$CONFIG_FILES config/resources.ini" ;;
|
"config/resources.ini") CONFIG_FILES="$CONFIG_FILES config/resources.ini" ;;
|
||||||
"config/modules/monitoring/backends.ini") CONFIG_FILES="$CONFIG_FILES config/modules/monitoring/backends.ini" ;;
|
"config/modules/monitoring/backends.ini") CONFIG_FILES="$CONFIG_FILES config/modules/monitoring/backends.ini" ;;
|
||||||
"config/modules/monitoring/instances.ini") CONFIG_FILES="$CONFIG_FILES config/modules/monitoring/instances.ini" ;;
|
"config/modules/monitoring/instances.ini") CONFIG_FILES="$CONFIG_FILES config/modules/monitoring/instances.ini" ;;
|
||||||
|
13
configure.ac
13
configure.ac
@ -30,11 +30,20 @@ AC_CHECK_PHP_MODULE([sockets json])
|
|||||||
# Configuration files
|
# Configuration files
|
||||||
#
|
#
|
||||||
AC_ARG_WITH([icingaweb_config_path],
|
AC_ARG_WITH([icingaweb_config_path],
|
||||||
AS_HELP_STRING([--with-icingaweb-config-path=PATH], [Configuration path for icinga web]),
|
AS_HELP_STRING([--with-icingaweb-config-path=PATH], [Configuration path for icinga web (default $prefix/config)]),
|
||||||
icingaweb_config_path="'$withval'",
|
icingaweb_config_path="'$withval'",
|
||||||
icingaweb_config_path="'$prefix/config/'"
|
icingaweb_config_path="'$prefix/config/'"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Log files
|
||||||
|
#
|
||||||
|
AC_ARG_WITH([icingaweb_log_path],
|
||||||
|
AS_HELP_STRING([--with-icingaweb-log-path=PATH], [Log path for icinga web (default $prefix/var/log)]),
|
||||||
|
icingaweb_log_path=$withval,
|
||||||
|
icingaweb_log_path=$prefix/var/log
|
||||||
|
)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Users for webfiles
|
# Users for webfiles
|
||||||
#
|
#
|
||||||
@ -378,6 +387,7 @@ AC_SUBST(httpd_config_path)
|
|||||||
AC_SUBST(bin_user)
|
AC_SUBST(bin_user)
|
||||||
AC_SUBST(bin_group)
|
AC_SUBST(bin_group)
|
||||||
AC_SUBST(icingaweb_config_path)
|
AC_SUBST(icingaweb_config_path)
|
||||||
|
AC_SUBST(icingaweb_log_path)
|
||||||
|
|
||||||
# Internal db setup
|
# Internal db setup
|
||||||
AC_SUBST(internal_db_type)
|
AC_SUBST(internal_db_type)
|
||||||
@ -437,6 +447,7 @@ AC_SUBST(INSTALL_OPTS_WEB)
|
|||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
config/authentication.ini
|
config/authentication.ini
|
||||||
|
config/config.ini
|
||||||
config/resources.ini
|
config/resources.ini
|
||||||
config/modules/monitoring/backends.ini
|
config/modules/monitoring/backends.ini
|
||||||
config/modules/monitoring/instances.ini
|
config/modules/monitoring/instances.ini
|
||||||
|
Loading…
x
Reference in New Issue
Block a user