Don't build clickhouse-server-metrika package if private data is not available [#METR-20000].

This commit is contained in:
Alexey Milovidov 2016-03-02 23:30:56 +03:00
parent c934015e54
commit 11096f46e3
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,9 @@ CONTROL=debian/control
CHLOG=debian/changelog
CHDATE=$(LC_ALL=C date -R | sed -e 's/,/\\,/g') # Заменим запятую на '\,'
# Собирать пакет с конфигурационными файлами для Яндекс.Метрики.
BUILD_PACKAGE_FOR_METRIKA=$([ -f 'private/Server/metrika/config.xml' ] && echo 'yes')
# Список демонов для сборки может быть указан в аргументах командной строки.
if [ $# -gt 0 ]
then

View File

@ -37,7 +37,7 @@ function make_control {
case "$DAEMON_PKG" in
'clickhouse-server' )
add_daemon_impl clickhouse-server-base '' 'clickhouse-server binary'
add_daemon_impl clickhouse-server-metrika "clickhouse-server-base(=0.0.$REVISION)" 'Configuration files specific for Metrika project for clickhouse-server-base package'
[ -n "$BUILD_PACKAGE_FOR_METRIKA" ] && add_daemon_impl clickhouse-server-metrika "clickhouse-server-base(=0.0.$REVISION)" 'Configuration files specific for Metrika project for clickhouse-server-base package'
add_daemon_impl clickhouse-server-common "clickhouse-server-base(=0.0.$REVISION)" 'Common configuration files for clickhouse-server-base package'
;;
'clickhouse-client' )