Skip to content

Commit

Permalink
Debian: Rename packages (#678)
Browse files Browse the repository at this point in the history
* Debian: rename packages

* wip

* wip

* wip

* move limits.d/clickhouse.conf to common

* wip

* fix

* bad clang

* update changelog

* more Provides: Conflicts:

* clickhouse-zookeeper-cli [#CLICKHOUSE-2947]

* fix utils desc

* Fix docs

* use cmake links

* fix doc

* Fix test install

* Test me

* Test me

* Test me.

* Dont use pre-depends

* fix

* Minimize control changes

* del

* debian/clickhouse-common.install -> debian/clickhouse-common-static.install

* debian/clickhouse-common.install -> debian/clickhouse-common-static.install
  • Loading branch information
proller authored and alexey-milovidov committed Apr 1, 2018
1 parent 412edac commit 802cac7
Show file tree
Hide file tree
Showing 21 changed files with 56 additions and 54 deletions.
2 changes: 1 addition & 1 deletion copy_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Требуется clang, желательно наиболее свежий (trunk).
#
# Используется при сборке пакетов.
# Заголовочные файлы записываются в пакет clickhouse-server-base, в директорию /usr/share/clickhouse/headers.
# Заголовочные файлы записываются в пакет clickhouse-common, в директорию /usr/share/clickhouse/headers.
#
# Если вы хотите установить их самостоятельно, без сборки пакета,
# чтобы clickhouse-server видел их там, где ожидается, выполните:
Expand Down
12 changes: 6 additions & 6 deletions debian/clickhouse-client.install
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/usr/bin/clickhouse-client
/usr/bin/clickhouse-local
/usr/bin/clickhouse-compressor
/usr/bin/clickhouse-benchmark
/etc/clickhouse-client/config.xml
/usr/bin/clickhouse-extract-from-config
usr/bin/clickhouse-client
usr/bin/clickhouse-local
usr/bin/clickhouse-compressor
usr/bin/clickhouse-benchmark
etc/clickhouse-client/config.xml
usr/bin/clickhouse-extract-from-config
3 changes: 3 additions & 0 deletions debian/clickhouse-common-static.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
usr/bin/clickhouse
etc/security/limits.d/clickhouse.conf
usr/share/clickhouse/*
11 changes: 0 additions & 11 deletions debian/clickhouse-server-base.install

This file was deleted.

2 changes: 0 additions & 2 deletions debian/clickhouse-server-common.install

This file was deleted.

1 change: 1 addition & 0 deletions debian/clickhouse-server-metrika.links
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/bin/clickhouse usr/bin/clickhouse-server
File renamed without changes.
8 changes: 8 additions & 0 deletions debian/clickhouse-server.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
usr/bin/clickhouse-server
usr/bin/clickhouse-clang
usr/bin/clickhouse-lld
usr/bin/clickhouse-copier
usr/bin/clickhouse-report
etc/clickhouse-server/config.xml
etc/clickhouse-server/users.xml
etc/systemd/system/clickhouse-server.service
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 22 additions & 13 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Build-Depends: debhelper (>= 9),
libreadline-dev,
libssl-dev,
unixodbc-dev
Standards-Version: 3.8.0
Standards-Version: 3.9.8

Package: clickhouse-client
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, clickhouse-server-base (= ${binary:Version})
Depends: ${shlibs:Depends}, ${misc:Depends}, clickhouse-common-static (= ${binary:Version})
Replaces: clickhouse-compressor
Conflicts: clickhouse-compressor
Description: Client binary for clickhouse
Expand All @@ -26,28 +26,37 @@ Description: Client binary for clickhouse
.
This package provides clickhouse-client , clickhouse-local and clickhouse-benchmark

Package: clickhouse-server-base
Package: clickhouse-common-static
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, tzdata
Description: Server binary for clickhouse
Depends: ${shlibs:Depends}, ${misc:Depends}
Replaces: clickhouse-server-base
Provides: clickhouse-server-base
Conflicts: clickhouse-server-base
Description: Common files for clickhouse
Yandex ClickHouse is a column-oriented database management system
that allows generating analytical data reports in real time.
.
This package provides clickhouse common configuration files
This package provides common files for both clickhouse server and client

Package: clickhouse-server-common
Package: clickhouse-server
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, clickhouse-server-base (= ${binary:Version})
Description: clickhouse-server-common
Common configuration files for clickhouse-server-base package
Depends: ${shlibs:Depends}, ${misc:Depends}, clickhouse-common-static (= ${binary:Version}), adduser, tzdata
Replaces: clickhouse-server-common
Provides: clickhouse-server-common
Conflicts: clickhouse-server-common
Description: Server binary for clickhouse
Yandex ClickHouse is a column-oriented database management system
that allows generating analytical data reports in real time.
.
This package provides clickhouse common configuration files

Package: clickhouse-common-dbg
Architecture: any
Section: debug
Priority: extra
Depends: ${misc:Depends}, clickhouse-server-base (= ${binary:Version})
Description: debugging symbols for clickhouse-server-base
This package contains the debugging symbols for clickhouse-server-base.
Depends: ${misc:Depends}, clickhouse-common-static (= ${binary:Version})
Description: debugging symbols for clickhouse-common-static
This package contains the debugging symbols for clickhouse-common.

Package: clickhouse-test
Priority: extra
Expand Down
14 changes: 4 additions & 10 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -66,32 +66,26 @@ override_dh_auto_test:
override_dh_clean:
rm -rf $(BUILDDIR)
rm -rf $(DESTDIR)
rm -rf debian/copyright debian/clickhouse-server-common.docs debian/clickhouse-client.docs
rm -rf debian/copyright debian/clickhouse-client.docs debian/clickhouse-common-static.docs
dh_clean

override_dh_strip:
dh_strip -pclickhouse-server-base --dbg-package=clickhouse-common-dbg
dh_strip -pclickhouse-common-static --dbg-package=clickhouse-common-dbg

override_dh_install:
# Making docs
cp LICENSE debian/copyright

ln -sf clickhouse-server-base.docs debian/clickhouse-client.docs
ln -sf clickhouse-server-base.docs debian/clickhouse-server-common.docs
ln -sf clickhouse-server.docs debian/clickhouse-client.docs
ln -sf clickhouse-server.docs debian/clickhouse-common-static.docs

mkdir -p $(DESTDIR)/etc/security/limits.d
cp debian/clickhouse.limits $(DESTDIR)/etc/security/limits.d/clickhouse.conf

# todo: remove after renaming package:
mkdir -p $(DESTDIR)/etc/init.d
cp debian/clickhouse-server.init $(DESTDIR)/etc/init.d/clickhouse-server
# systemd compatibility
mkdir -p $(DESTDIR)/etc/systemd/system/
cp debian/clickhouse-server.service $(DESTDIR)/etc/systemd/system/

mkdir -p $(DESTDIR)/etc/cron.d
cp debian/clickhouse-server.cron.d $(DESTDIR)/etc/cron.d/clickhouse-server

# In case building clickhouse-server, adding to package binary of clang, ld and header files - for dynamic compilation.
mkdir -p $(DESTDIR)/usr/share/clickhouse/headers

Expand Down
4 changes: 2 additions & 2 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tar-ignore
tar-ignore="build"
tar-ignore="build_*"
tar-ignore="build/*"
tar-ignore="build_*/*"
tar-ignore="contrib/poco/openssl/*"
tar-ignore="contrib/poco/gradle/*"
tar-ignore="contrib/poco/Data/SQLite/*"
Expand Down
2 changes: 1 addition & 1 deletion docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update && \
mkdir -p /etc/apt/sources.list.d && \
echo $repository | tee /etc/apt/sources.list.d/clickhouse.list && \
apt-get update && \
apt-get install --allow-unauthenticated -y clickhouse-server-common=$version clickhouse-server-base=$version && \
apt-get install --allow-unauthenticated -y clickhouse-server=$version && \
rm -rf /var/lib/apt/lists/* /var/cache/debconf && \
apt-get clean

Expand Down
2 changes: 1 addition & 1 deletion docs/en/getting_started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Then run:
```bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 # optional
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server-common
sudo apt-get install clickhouse-client clickhouse-server
```

You can also download and install packages manually from here:
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/getting_started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ deb http://repo.yandex.ru/clickhouse/deb/stable/ main/
```bash
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 # optional
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server-common
sudo apt-get install clickhouse-client clickhouse-server
```

Также можно скачать и установить пакеты вручную, отсюда: <https://repo.yandex.ru/clickhouse/deb/stable/main/>.
Expand Down
4 changes: 2 additions & 2 deletions website/deprecated/reference_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ <h1>Getting started</h1>
%%
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 # optional
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server-common
sudo apt-get install -y clickhouse-client clickhouse-server
%%

You can also download and install packages manually from here:
Expand Down Expand Up @@ -709,7 +709,7 @@ <h1>Interfaces</h1>

For successful requests that don&#39;t return a data table, an empty response body is returned.

You can use compression when transmitting data. The compressed data has a non-standard format, and you will need to use a special compressor program to work with it (%%sudo apt-get install clickhouse-compressor%%).
You can use compression when transmitting data. The compressed data has a non-standard format, and you will need to use a special clickhouse-compressor program to work with it (%%sudo apt-get install clickhouse-utils%%).

If you specified &#39;compress=1&#39; in the URL, the server will compress the data it sends you.
If you specified &#39;decompress=1&#39; in the URL, the server will decompress the same data that you pass in the POST method.
Expand Down
4 changes: 2 additions & 2 deletions website/deprecated/reference_ru.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ <h1>Начало работы</h1>
%%
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 # optional
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server-common
sudo apt-get install -y clickhouse-client clickhouse-server
%%

Также можно скачать и установить пакеты вручную, отсюда:
Expand Down Expand Up @@ -725,7 +725,7 @@ <h1>Интерфейсы</h1>

Для запросов, которые не возвращают таблицу с данными, в случае успеха, выдаётся пустое тело ответа.

Вы можете использовать сжатие при передаче данных. Формат сжатых данных нестандартный, и вам придётся использовать для работы с ним специальную программу compressor (%%sudo apt-get install clickhouse-compressor%%).
Вы можете использовать сжатие при передаче данных. Формат сжатых данных нестандартный, и вам придётся использовать для работы с ним специальную программу clickhouse-compressor (%%sudo apt-get install clickhouse-utils%%).

Если вы указали в URL compress=1, то сервер будет сжимать отправляемые вам данные.
Если вы указали в URL decompress=1, то сервер будет разжимать те данные, которые вы передаёте ему POST-ом.
Expand Down
2 changes: 1 addition & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ <h2 id="quick-start">Quick Start</h2>
sudo apt-add-repository "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
sudo apt-get update

sudo apt-get install clickhouse-server-common clickhouse-client -y
sudo apt-get install -y clickhouse-server clickhouse-client

sudo service clickhouse-server start
clickhouse-client
Expand Down
2 changes: 1 addition & 1 deletion website/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h2 id="tutorial_subtitle">Tutorial</h2>

<p><b>clickhouse-client</b> package contains <a
href="docs/en/interfaces/cli/">clickhouse-client</a> application —
interactive ClickHouse client. <b>clickhouse-server-base</b> contains a clickhouse-server binary file. <b>clickhouse-server-common</b>
interactive ClickHouse client. <b>clickhouse-common</b> contains a clickhouse-server binary file. <b>clickhouse-server</b>
— contains config files for the clickhouse-server.</p>

<p>Server config files are located in /etc/clickhouse-server/. Before getting to work please notice the <b>path</b>
Expand Down

0 comments on commit 802cac7

Please sign in to comment.