Reorder the packages configs for maintainability

This commit is contained in:
Mikhail f. Shiryaev 2023-10-03 16:38:41 +02:00
parent 70c3f31926
commit 2b2459b0e2
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
6 changed files with 68 additions and 55 deletions

View File

@ -1,6 +1,13 @@
# package sources should be placed in ${PWD}/root # package sources should be placed in ${PWD}/root
# nfpm should run from the same directory with a config # nfpm should run from the same directory with a config
name: "clickhouse-client" name: "clickhouse-client"
description: |
Client binary for ClickHouse
ClickHouse is a column-oriented database management system.
that allows generating analytical data reports in real time.
This package provides clickhouse-client, clickhouse-local and clickhouse-benchmark.
# Common packages config
arch: "${DEB_ARCH}" # amd64, arm64 arch: "${DEB_ARCH}" # amd64, arm64
platform: "linux" platform: "linux"
version: "${CLICKHOUSE_VERSION_STRING}" version: "${CLICKHOUSE_VERSION_STRING}"
@ -9,19 +16,17 @@ homepage: "https://clickhouse.com"
license: "Apache" license: "Apache"
section: "database" section: "database"
priority: "optional" priority: "optional"
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
deb:
fields:
Source: clickhouse
# Package specific content
replaces: replaces:
- clickhouse-compressor - clickhouse-compressor
conflicts: conflicts:
- clickhouse-compressor - clickhouse-compressor
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
description: |
Client binary for ClickHouse
ClickHouse is a column-oriented database management system.
that allows generating analytical data reports in real time.
This package provides clickhouse-client, clickhouse-local and clickhouse-benchmark.
overrides: overrides:
deb: deb:
depends: depends:
@ -30,10 +35,6 @@ overrides:
depends: depends:
- clickhouse-common-static = ${CLICKHOUSE_VERSION_STRING} - clickhouse-common-static = ${CLICKHOUSE_VERSION_STRING}
deb:
fields:
Source: clickhouse
contents: contents:
- src: root/etc/clickhouse-client/config.xml - src: root/etc/clickhouse-client/config.xml
dst: /etc/clickhouse-client/config.xml dst: /etc/clickhouse-client/config.xml

View File

@ -1,6 +1,13 @@
# package sources should be placed in ${PWD}/root # package sources should be placed in ${PWD}/root
# nfpm should run from the same directory with a config # nfpm should run from the same directory with a config
name: "clickhouse-common-static-dbg" name: "clickhouse-common-static-dbg"
description: |
debugging symbols for clickhouse-common-static
This package contains the debugging symbols for clickhouse-common.
#
# Common packages config
arch: "${DEB_ARCH}" # amd64, arm64 arch: "${DEB_ARCH}" # amd64, arm64
platform: "linux" platform: "linux"
version: "${CLICKHOUSE_VERSION_STRING}" version: "${CLICKHOUSE_VERSION_STRING}"
@ -9,21 +16,17 @@ homepage: "https://clickhouse.com"
license: "Apache" license: "Apache"
section: "database" section: "database"
priority: "optional" priority: "optional"
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
deb:
fields:
Source: clickhouse
# Package specific content
replaces: replaces:
- clickhouse-common-dbg - clickhouse-common-dbg
conflicts: conflicts:
- clickhouse-common-dbg - clickhouse-common-dbg
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
description: |
debugging symbols for clickhouse-common-static
This package contains the debugging symbols for clickhouse-common.
deb:
fields:
Source: clickhouse
contents: contents:
- src: root/usr/lib/debug/usr/bin/clickhouse.debug - src: root/usr/lib/debug/usr/bin/clickhouse.debug
dst: /usr/lib/debug/usr/bin/clickhouse.debug dst: /usr/lib/debug/usr/bin/clickhouse.debug

View File

@ -1,6 +1,13 @@
# package sources should be placed in ${PWD}/root # package sources should be placed in ${PWD}/root
# nfpm should run from the same directory with a config # nfpm should run from the same directory with a config
name: "clickhouse-common-static" name: "clickhouse-common-static"
description: |
Common files for ClickHouse
ClickHouse is a column-oriented database management system
that allows generating analytical data reports in real time.
This package provides common files for both clickhouse server and client
# Common packages config
arch: "${DEB_ARCH}" # amd64, arm64 arch: "${DEB_ARCH}" # amd64, arm64
platform: "linux" platform: "linux"
version: "${CLICKHOUSE_VERSION_STRING}" version: "${CLICKHOUSE_VERSION_STRING}"
@ -9,7 +16,12 @@ homepage: "https://clickhouse.com"
license: "Apache" license: "Apache"
section: "database" section: "database"
priority: "optional" priority: "optional"
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
deb:
fields:
Source: clickhouse
# Package specific content
replaces: replaces:
- clickhouse-common - clickhouse-common
- clickhouse-server-base - clickhouse-server-base
@ -19,17 +31,6 @@ provides:
suggests: suggests:
- clickhouse-common-static-dbg - clickhouse-common-static-dbg
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
description: |
Common files for ClickHouse
ClickHouse is a column-oriented database management system
that allows generating analytical data reports in real time.
This package provides common files for both clickhouse server and client
deb:
fields:
Source: clickhouse
contents: contents:
- src: root/usr/bin/clickhouse - src: root/usr/bin/clickhouse
dst: /usr/bin/clickhouse dst: /usr/bin/clickhouse

View File

@ -1,6 +1,13 @@
# package sources should be placed in ${PWD}/root # package sources should be placed in ${PWD}/root
# nfpm should run from the same directory with a config # nfpm should run from the same directory with a config
name: "clickhouse-keeper-dbg" name: "clickhouse-keeper-dbg"
description: |
debugging symbols for clickhouse-keeper
This package contains the debugging symbols for clickhouse-keeper.
#
# Common packages config
arch: "${DEB_ARCH}" # amd64, arm64 arch: "${DEB_ARCH}" # amd64, arm64
platform: "linux" platform: "linux"
version: "${CLICKHOUSE_VERSION_STRING}" version: "${CLICKHOUSE_VERSION_STRING}"
@ -10,14 +17,11 @@ license: "Apache"
section: "database" section: "database"
priority: "optional" priority: "optional"
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>" maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
description: |
debugging symbols for clickhouse-keeper
This package contains the debugging symbols for clickhouse-keeper.
deb: deb:
fields: fields:
Source: clickhouse Source: clickhouse
# Package specific content
contents: contents:
- src: root/usr/lib/debug/usr/bin/clickhouse-keeper.debug - src: root/usr/lib/debug/usr/bin/clickhouse-keeper.debug
dst: /usr/lib/debug/usr/bin/clickhouse-keeper.debug dst: /usr/lib/debug/usr/bin/clickhouse-keeper.debug

View File

@ -1,6 +1,13 @@
# package sources should be placed in ${PWD}/root # package sources should be placed in ${PWD}/root
# nfpm should run from the same directory with a config # nfpm should run from the same directory with a config
name: "clickhouse-keeper" name: "clickhouse-keeper"
description: |
Static clickhouse-keeper binary
A stand-alone clickhouse-keeper package
#
# Common packages config
arch: "${DEB_ARCH}" # amd64, arm64 arch: "${DEB_ARCH}" # amd64, arm64
platform: "linux" platform: "linux"
version: "${CLICKHOUSE_VERSION_STRING}" version: "${CLICKHOUSE_VERSION_STRING}"
@ -9,21 +16,17 @@ homepage: "https://clickhouse.com"
license: "Apache" license: "Apache"
section: "database" section: "database"
priority: "optional" priority: "optional"
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
deb:
fields:
Source: clickhouse
# Package specific content
conflicts: conflicts:
- clickhouse-server - clickhouse-server
suggests: suggests:
- clickhouse-keeper-dbg - clickhouse-keeper-dbg
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
description: |
Static clickhouse-keeper binary
A stand-alone clickhouse-keeper package
deb:
fields:
Source: clickhouse
contents: contents:
- src: root/etc/clickhouse-keeper/keeper_config.xml - src: root/etc/clickhouse-keeper/keeper_config.xml
dst: /etc/clickhouse-keeper/keeper_config.xml dst: /etc/clickhouse-keeper/keeper_config.xml

View File

@ -1,6 +1,13 @@
# package sources should be placed in ${PWD}/root # package sources should be placed in ${PWD}/root
# nfpm should run from the same directory with a config # nfpm should run from the same directory with a config
name: "clickhouse-server" name: "clickhouse-server"
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
arch: "${DEB_ARCH}" # amd64, arm64 arch: "${DEB_ARCH}" # amd64, arm64
platform: "linux" platform: "linux"
version: "${CLICKHOUSE_VERSION_STRING}" version: "${CLICKHOUSE_VERSION_STRING}"
@ -9,7 +16,12 @@ homepage: "https://clickhouse.com"
license: "Apache" license: "Apache"
section: "database" section: "database"
priority: "optional" priority: "optional"
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
deb:
fields:
Source: clickhouse
# Package specific content
conflicts: conflicts:
- clickhouse-keeper - clickhouse-keeper
replaces: replaces:
@ -20,13 +32,6 @@ provides:
recommends: recommends:
- libcap2-bin - libcap2-bin
maintainer: "ClickHouse Dev Team <packages+linux@clickhouse.com>"
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
overrides: overrides:
deb: deb:
depends: depends:
@ -35,10 +40,6 @@ overrides:
depends: depends:
- clickhouse-common-static = ${CLICKHOUSE_VERSION_STRING} - clickhouse-common-static = ${CLICKHOUSE_VERSION_STRING}
deb:
fields:
Source: clickhouse
contents: contents:
- src: root/etc/clickhouse-server/config.xml - src: root/etc/clickhouse-server/config.xml
dst: /etc/clickhouse-server/config.xml dst: /etc/clickhouse-server/config.xml