2022-02-08 18:12:04 +00:00
|
|
|
# package sources should be placed in ${PWD}/root
|
|
|
|
# nfpm should run from the same directory with a config
|
|
|
|
name: "clickhouse-server"
|
2023-10-03 14:38:41 +00:00
|
|
|
description: |
|
|
|
|
Server binary for ClickHouse
|
|
|
|
ClickHouse is a column-oriented database management system
|
|
|
|
that allows generating analytical data reports in real time.
|
|
|
|
This package provides clickhouse common configuration files
|
|
|
|
|
|
|
|
# Common packages config
|
2022-06-29 10:33:20 +00:00
|
|
|
arch: "${DEB_ARCH}" # amd64, arm64
|
2022-02-08 18:12:04 +00:00
|
|
|
platform: "linux"
|
|
|
|
version: "${CLICKHOUSE_VERSION_STRING}"
|
|
|
|
vendor: "ClickHouse Inc."
|
|
|
|
homepage: "https://clickhouse.com"
|
|
|
|
license: "Apache"
|
|
|
|
section: "database"
|
|
|
|
priority: "optional"
|
2023-10-03 14:38:41 +00:00
|
|
|
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
|
|
|
|
deb:
|
|
|
|
fields:
|
|
|
|
Source: clickhouse
|
2022-02-08 18:12:04 +00:00
|
|
|
|
2023-10-03 14:38:41 +00:00
|
|
|
# Package specific content
|
2022-02-08 18:12:04 +00:00
|
|
|
replaces:
|
|
|
|
- clickhouse-server-common
|
|
|
|
- clickhouse-server-base
|
|
|
|
provides:
|
2023-10-04 09:24:36 +00:00
|
|
|
- clickhouse-keeper
|
2022-02-08 18:12:04 +00:00
|
|
|
- clickhouse-server-common
|
|
|
|
recommends:
|
|
|
|
- libcap2-bin
|
|
|
|
|
|
|
|
overrides:
|
|
|
|
deb:
|
|
|
|
depends:
|
|
|
|
- clickhouse-common-static (= ${CLICKHOUSE_VERSION_STRING})
|
|
|
|
rpm:
|
|
|
|
depends:
|
|
|
|
- clickhouse-common-static = ${CLICKHOUSE_VERSION_STRING}
|
|
|
|
|
|
|
|
contents:
|
2022-10-16 20:09:20 +00:00
|
|
|
- src: root/etc/clickhouse-server/config.xml
|
|
|
|
dst: /etc/clickhouse-server/config.xml
|
2022-11-03 15:58:12 +00:00
|
|
|
type: config|noreplace
|
2022-10-16 20:09:20 +00:00
|
|
|
- src: root/etc/clickhouse-server/users.xml
|
|
|
|
dst: /etc/clickhouse-server/users.xml
|
2022-11-03 15:58:12 +00:00
|
|
|
type: config|noreplace
|
2022-02-08 18:12:04 +00:00
|
|
|
- src: clickhouse-server.init
|
|
|
|
dst: /etc/init.d/clickhouse-server
|
|
|
|
- src: clickhouse-server.service
|
|
|
|
dst: /lib/systemd/system/clickhouse-server.service
|
2023-10-04 09:24:36 +00:00
|
|
|
- src: root/usr/bin/clickhouse-server
|
|
|
|
dst: /usr/bin/clickhouse-server
|
|
|
|
# clickhouse-keeper part
|
|
|
|
- src: root/etc/clickhouse-keeper/keeper_config.xml
|
|
|
|
dst: /etc/clickhouse-keeper/keeper_config.xml
|
|
|
|
type: config|noreplace
|
|
|
|
- src: clickhouse-keeper.service
|
|
|
|
dst: /lib/systemd/system/clickhouse-keeper.service
|
2022-02-08 18:12:04 +00:00
|
|
|
- src: clickhouse
|
|
|
|
dst: /usr/bin/clickhouse-keeper
|
|
|
|
type: symlink
|
2023-07-06 09:47:54 +00:00
|
|
|
- src: clickhouse
|
|
|
|
dst: /usr/bin/clickhouse-keeper-client
|
|
|
|
type: symlink
|
2023-10-04 09:24:36 +00:00
|
|
|
- src: clickhouse
|
|
|
|
dst: /usr/bin/clickhouse-keeper-converter
|
|
|
|
type: symlink
|
2022-02-08 18:12:04 +00:00
|
|
|
# docs
|
|
|
|
- src: ../AUTHORS
|
|
|
|
dst: /usr/share/doc/clickhouse-server/AUTHORS
|
|
|
|
- src: ../CHANGELOG.md
|
|
|
|
dst: /usr/share/doc/clickhouse-server/CHANGELOG.md
|
|
|
|
- src: ../LICENSE
|
|
|
|
dst: /usr/share/doc/clickhouse-server/LICENSE
|
|
|
|
- src: ../README.md
|
|
|
|
dst: /usr/share/doc/clickhouse-server/README.md
|
|
|
|
|
|
|
|
scripts:
|
|
|
|
postinstall: ./clickhouse-server.postinstall
|