Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ AS_CASE([${enable_shared}], [yes], AC_DEFINE([BOOST_ALL_DYN_LINK]))

# Check dependencies.
#==============================================================================
# Require Boost of at least version 1.56.0 and output ${boost_CPPFLAGS/LDFLAGS}.
# Require Boost of at least version 1.57.0 and output ${boost_CPPFLAGS/LDFLAGS}.
#------------------------------------------------------------------------------
AS_CASE([${CC}], [*],
[AX_BOOST_BASE([1.56.0],
[AX_BOOST_BASE([1.57.0],
[AC_SUBST([boost_CPPFLAGS], [${BOOST_CPPFLAGS}])
AC_SUBST([boost_LDFLAGS], [${BOOST_LDFLAGS}])
AC_MSG_NOTICE([boost_CPPFLAGS : ${boost_CPPFLAGS}])
AC_MSG_NOTICE([boost_LDFLAGS : ${boost_LDFLAGS}])],
[AC_MSG_ERROR([Boost 1.56.0 or later is required but was not found.])])])
[AC_MSG_ERROR([Boost 1.57.0 or later is required but was not found.])])])

AS_CASE([${with_tests}], [yes],
[AX_BOOST_UNIT_TEST_FRAMEWORK
Expand Down
8 changes: 4 additions & 4 deletions console/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ executor::executor(parser& metadata, std::istream& input,
network.archive_directory,
network.rotation_size,
network.maximum_archive_size,
network.minimum_free_space
////network.maximum_archive_files
network.minimum_free_space,
network.maximum_archive_files
};

const log::rotable_file error_file
Expand All @@ -73,8 +73,8 @@ executor::executor(parser& metadata, std::istream& input,
network.archive_directory,
network.rotation_size,
network.maximum_archive_size,
network.minimum_free_space
////network.maximum_archive_files
network.minimum_free_space,
network.maximum_archive_files
};

log::stream console_out(&output_, null_deleter());
Expand Down
16 changes: 11 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ BUILD_DIR="build-libbitcoin-server"

# Boost archive.
#------------------------------------------------------------------------------
BOOST_URL="http://downloads.sourceforge.net/project/boost/boost/1.56.0/boost_1_56_0.tar.bz2"
BOOST_ARCHIVE="boost_1_56_0.tar.bz2"
BOOST_URL="http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2"
BOOST_ARCHIVE="boost_1_57_0.tar.bz2"


# Initialize the build environment.
Expand Down Expand Up @@ -453,6 +453,7 @@ build_from_tarball()

# Use the suffixed archive name as the extraction directory.
local EXTRACT="build-$ARCHIVE"
push_directory "$BUILD_DIR"
create_directory $EXTRACT
push_directory $EXTRACT

Expand Down Expand Up @@ -485,6 +486,8 @@ build_from_tarball()
# Restore flags to prevent side effects.
export LDFLAGS=$SAVE_LDFLAGS
export CPPFLAGS=$SAVE_LCPPFLAGS

pop_directory
}

# Because boost ICU detection assumes in incorrect ICU path.
Expand Down Expand Up @@ -570,6 +573,7 @@ build_from_tarball_boost()

# Use the suffixed archive name as the extraction directory.
local EXTRACT="build-$ARCHIVE"
push_directory "$BUILD_DIR"
create_directory $EXTRACT
push_directory $EXTRACT

Expand Down Expand Up @@ -635,11 +639,14 @@ build_from_tarball_boost()
"$@"

pop_directory
pop_directory
}

# Standard build from github.
build_from_github()
{
push_directory "$BUILD_DIR"

local ACCOUNT=$1
local REPO=$2
local BRANCH=$3
Expand All @@ -660,6 +667,7 @@ build_from_github()
push_directory $REPO
make_current_directory $JOBS "${CONFIGURATION[@]}"
pop_directory
pop_directory
}

# Standard build of current directory.
Expand Down Expand Up @@ -691,10 +699,8 @@ build_from_travis()

# The primary build is not downloaded if we are running in Travis.
if [[ $TRAVIS == true ]]; then
push_directory ".."
build_from_local "Local $TRAVIS_REPO_SLUG" $JOBS "${OPTIONS[@]}" "$@"
make_tests $JOBS
pop_directory
else
build_from_github $ACCOUNT $REPO $BRANCH $JOBS "${OPTIONS[@]}" "$@"
push_directory $REPO
Expand Down Expand Up @@ -727,5 +733,5 @@ build_all()
create_directory "$BUILD_DIR"
push_directory "$BUILD_DIR"
initialize_git
time build_all "${CONFIGURE_OPTIONS[@]}"
pop_directory
time build_all "${CONFIGURE_OPTIONS[@]}"
5 changes: 5 additions & 0 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ options_metadata parser::load_settings()
value<size_t>(&configured.network.minimum_free_space),
"The minimum free space required in the archive directory, defaults to 0."
)
(
"log.maximum_archive_files",
value<size_t>(&configured.network.maximum_archive_files),
"The maximum number of logs to persist, defaults to 'maximum'."
)
/* [network] */
(
"network.threads",
Expand Down