Browse Source

merge config files; all setting can be overwritten by putting them into ezbuild.conf or ezsync.conf

master
belliash 8 years ago
parent
commit
1c9f883f15
4 changed files with 31 additions and 58 deletions
  1. +29
    -0
      config/common.conf
  2. +0
    -29
      config/ezbuild.conf
  3. +0
    -29
      config/ezsync.conf
  4. +2
    -0
      libraries/common

+ 29
- 0
config/common.conf View File

@@ -0,0 +1,29 @@
# A time designation representing the time in seconds that you allow the connection to
# the server to take. This only limits the connection phase, once curl has connected
# this option is of no more use. Setting a timeout to 0 disables it altogether. Unless
# you know what you are doing, it is best not to change the default timeout settings.
FETCHTIMEOUT="180"

# Sets the number of times EzBuild will attempt to download files and retrieve portage
# and overlays before it exits with an error. This allows for a more successful retrieval
# without user intervention most times.
FETCHTRIES="3"

# Specifies where EzBuild will store everything that it builds, and also where it will
# put all its temporary files and caches.
TEMPDIR="/var/tmp/ezbuild"

# When enabled, causes EzBuild to save every information about progress and all executed
# commands output in the log file. This might provide many useful information necessary
# for debugging purposes.
LOGGING="yes"

# Using this, the default log date format can be changed according to the requirement.
# This customizable format may be needed when you want to perform analysis on the logs
# stored in the log file.
LOGDATEFORMAT="%d/%m/%Y %H:%M:%S"

# Specifies an e-mail address, where all notifications will be sent to. If this variable
# is empty, none notification will be sent at all. This option requires logging to be
# also enabled.
NOTIFY=""

+ 0
- 29
config/ezbuild.conf View File

@@ -1,29 +0,0 @@
# A time designation representing the time in seconds that you allow the connection to
# the server to take. This only limits the connection phase, once curl has connected
# this option is of no more use. Setting a timeout to 0 disables it altogether. Unless
# you know what you are doing, it is best not to change the default timeout settings.
FETCHTIMEOUT="180"

# Sets the number of times EzBuild will attempt to download files and retrieve portage
# and overlays before it exits with an error. This allows for a more successful retrieval
# without user intervention most times.
FETCHTRIES="3"

# Specifies where EzBuild will store everything that it builds, and also where it will
# put all its temporary files and caches.
TEMPDIR="/var/tmp/ezbuild"

# When enabled, causes EzBuild to save every information about progress and all executed
# commands output in the log file. This might provide many useful information necessary
# for debugging purposes.
LOGGING="yes"

# Using this, the default log date format can be changed according to the requirement.
# This customizable format may be needed when you want to perform analysis on the logs
# stored in the log file.
LOGDATEFORMAT="%d/%m/%Y %H:%M:%S"

# Specifies an e-mail address, where all notifications will be sent to. If this variable
# is empty, none notification will be sent at all. This option requires logging to be
# also enabled.
NOTIFY=""

+ 0
- 29
config/ezsync.conf View File

@@ -1,29 +0,0 @@
# A time designation representing the time in seconds that you allow the connection to
# the server to take. This only limits the connection phase, once curl has connected
# this option is of no more use. Setting a timeout to 0 disables it altogether. Unless
# you know what you are doing, it is best not to change the default timeout settings.
FETCHTIMEOUT="180"

# Sets the number of times EzBuild will attempt to download files and retrieve portage
# and overlays before it exits with an error. This allows for a more successful retrieval
# without user intervention most times.
FETCHTRIES="3"

# Specifies where EzBuild will store everything that it builds, and also where it will
# put all its temporary files and caches.
TEMPDIR="/var/tmp/ezbuild"

# When enabled, causes EzBuild to save every information about progress and all executed
# commands output in the log file. This might provide many useful information necessary
# for debugging purposes.
LOGGING="yes"

# Using this, the default log date format can be changed according to the requirement.
# This customizable format may be needed when you want to perform analysis on the logs
# stored in the log file.
LOGDATEFORMAT="%d/%m/%Y %H:%M:%S"

# Specifies an e-mail address, where all notifications will be sent to. If this variable
# is empty, none notification will be sent at all. This option requires logging to be
# also enabled.
NOTIFY=""

+ 2
- 0
libraries/common View File

@@ -123,8 +123,10 @@ function isSet() {
# Loads EzBuild configuration
#-------------------------------------------------------------------------------
function loadConfiguration() {
source ${EZROOT}/config/common.conf &> /dev/null || panic
source ${EZROOT}/config/${EZNAME}.conf &> /dev/null || panic
source ${EZROOT}/config/layout.conf &> /dev/null || panic
source /etc/ezbuild/common.conf &> /dev/null || panic
source /etc/ezbuild/${EZNAME}.conf &> /dev/null || panic
source /etc/ezbuild/layout.conf &> /dev/null || panic
}


Loading…
Cancel
Save