Compare commits

..

No commits in common. "master" and "lts-21.8" have entirely different histories.

6 changed files with 44 additions and 56 deletions

View File

@ -1,31 +1,28 @@
pkgbase = clickhouse-lts-223
pkgdesc = An open-source column-oriented database management system that allows generating analytical data reports in real time -- LTS version 22.3
pkgver = 22.3.7.28
pkgbase = clickhouse-lts-218
pkgdesc = An open-source column-oriented database management system that allows generating analytical data reports in real time. LTS version 21.8
pkgver = 21.8.13.6
pkgrel = 1
url = https://clickhouse.com
url = https://clickhouse.com/
install = clickhouse-lts-218.install
arch = x86_64
license = Apache
depends = tzdata
depends = libcap
provides = clickhouse=22.3.3.44
provides = clickhouse-lts=22.3.3.44
provides = clickhouse
provides = clickhouse-lts
conflicts = clickhouse
conflicts = clickhouse-lts
noextract = clickhouse-client_22.3.7.28_all.deb
noextract = clickhouse-common-static_22.3.7.28_amd64.deb
noextract = clickhouse-server_22.3.7.28_all.deb
noextract = clickhouse-common-static_21.8.13.6_amd64.deb
noextract = clickhouse-client_21.8.13.6_all.deb
noextract = clickhouse-server_21.8.13.6_all.deb
backup = etc/clickhouse-client/config.xml
backup = etc/clickhouse-server/config.xml
backup = etc/clickhouse-server/users.xml
source = https://packages.clickhouse.com/deb/pool/lts/clickhouse-client_22.3.7.28_all.deb
source = https://packages.clickhouse.com/deb/pool/lts/clickhouse-common-static_22.3.7.28_amd64.deb
source = https://packages.clickhouse.com/deb/pool/lts/clickhouse-server_22.3.7.28_all.deb
source = clickhouse-sysuser.conf
source = clickhouse-tmpfiles.conf
b2sums = 5b178fb46b199b032dd1965b63d6a7c547b09201e393f978ffa28a6d0ab1097977367739f9847566f1d9487ec1b8c022beae02d68861c34f65e10344c2b537aa
b2sums = 174fd4a095ae2be1028e6bbd260b97f977aafb1a29a2d9b56c4a4b5ab71a83427d0600fd91548a0ac41da511f5ce96ea04bc5561edcf1551898e5d2e75762ebe
b2sums = f44095f17c31d7098afd5f83b3a341b92aba2ab128bc0608173291034e620ae4c31f497b45583f411cbd27bad403dace8083f711d872d3f64e1c0046fbe422df
b2sums = 6a1a52bffac1609e46d5476946a6658c111ef8082bbeeb0c00a32bfc5bc5335330e14d536fcae63f83cb8e2970195a14aeb38545d2133528fba21a0f9bcb473e
b2sums = f669abf2566ceb21f7b2c884caccca03f2fa2ef628e48c9d6bd9a2e8e7bd096966e36cbafbb44619ccbe473412375944053deecc3a4369794278e51a89045a60
source = https://repo.clickhouse.tech/deb/lts/main/clickhouse-client_21.8.13.6_all.deb
source = https://repo.clickhouse.tech/deb/lts/main/clickhouse-common-static_21.8.13.6_amd64.deb
source = https://repo.clickhouse.tech/deb/lts/main/clickhouse-server_21.8.13.6_all.deb
sha256sums = 1791da0283a1dd6821a113be6cf5cdb3d1c328441a9a81a3afb4effe87b79b91
sha256sums = 9e2065cd9a1c08d216213e77872bcbd7a0c57111589140a9ed0dbe056745b75e
sha256sums = 5686577fb282e9817b98f7212b0f28a0fb23a0d6f4e8448600ae6d4934e0cb18
pkgname = clickhouse-lts-223
pkgname = clickhouse-lts-218

4
.gitignore vendored
View File

@ -1,4 +0,0 @@
/pkg/
/src/
*.deb
*.pkg.t*

View File

@ -1,37 +1,31 @@
# Maintainer: Dmitry Bilunov <kmeaw@yandex-team.ru>
# Maintainer: Mikhail f. Shiryaev <mr dot felixoid at gmail dot com>
# Maintainer: Yiyang Kang <kkyy at kkyy dot me>
pkgname=clickhouse-lts-223
_pkgname=clickhouse
pkgver=22.3.7.28
pkgname=clickhouse-lts-218
pkgver=21.8.13.6
pkgrel=1
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time -- LTS version 22.3'
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time. LTS version 21.8'
arch=('x86_64')
url='https://clickhouse.com'
url='https://clickhouse.com/'
license=('Apache')
depends=('tzdata' 'libcap')
provides=('clickhouse=22.3.3.44' 'clickhouse-lts=22.3.3.44')
conflicts=('clickhouse' 'clickhouse-lts')
provides=(clickhouse clickhouse-lts)
conflicts=(clickhouse clickhouse-lts)
noextract=(
clickhouse-client_${pkgver}_all.deb
clickhouse-common-static_${pkgver}_amd64.deb
clickhouse-client_${pkgver}_all.deb
clickhouse-server_${pkgver}_all.deb
)
source=(
https://packages.clickhouse.com/deb/pool/lts/clickhouse-client_${pkgver}_all.deb
https://packages.clickhouse.com/deb/pool/lts/clickhouse-common-static_${pkgver}_amd64.deb
https://packages.clickhouse.com/deb/pool/lts/clickhouse-server_${pkgver}_all.deb
clickhouse-sysuser.conf
clickhouse-tmpfiles.conf
https://repo.clickhouse.tech/deb/lts/main/clickhouse-client_${pkgver}_all.deb
https://repo.clickhouse.tech/deb/lts/main/clickhouse-common-static_${pkgver}_amd64.deb
https://repo.clickhouse.tech/deb/lts/main/clickhouse-server_${pkgver}_all.deb
)
b2sums=(
5b178fb46b199b032dd1965b63d6a7c547b09201e393f978ffa28a6d0ab1097977367739f9847566f1d9487ec1b8c022beae02d68861c34f65e10344c2b537aa
174fd4a095ae2be1028e6bbd260b97f977aafb1a29a2d9b56c4a4b5ab71a83427d0600fd91548a0ac41da511f5ce96ea04bc5561edcf1551898e5d2e75762ebe
f44095f17c31d7098afd5f83b3a341b92aba2ab128bc0608173291034e620ae4c31f497b45583f411cbd27bad403dace8083f711d872d3f64e1c0046fbe422df
6a1a52bffac1609e46d5476946a6658c111ef8082bbeeb0c00a32bfc5bc5335330e14d536fcae63f83cb8e2970195a14aeb38545d2133528fba21a0f9bcb473e
f669abf2566ceb21f7b2c884caccca03f2fa2ef628e48c9d6bd9a2e8e7bd096966e36cbafbb44619ccbe473412375944053deecc3a4369794278e51a89045a60
sha256sums=(
1791da0283a1dd6821a113be6cf5cdb3d1c328441a9a81a3afb4effe87b79b91
9e2065cd9a1c08d216213e77872bcbd7a0c57111589140a9ed0dbe056745b75e
5686577fb282e9817b98f7212b0f28a0fb23a0d6f4e8448600ae6d4934e0cb18
)
install=$pkgname.install
backup=(
'etc/clickhouse-client/config.xml'
'etc/clickhouse-server/config.xml'
@ -44,18 +38,16 @@ package() {
tar xf data.tar.gz -C "${pkgdir}"
done
mkdir -p "${pkgdir}/usr/share/licenses/${_pkgname}"
gzip -d "${pkgdir}/usr/share/doc/clickhouse-server/LICENSE.gz"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
mv "${pkgdir}/lib" "${pkgdir}/usr/lib"
mv "${pkgdir}/usr/share/doc/clickhouse-server/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/"
mv "${pkgdir}/usr/share/doc/clickhouse-server/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
rm -rf "${pkgdir}/etc/cron.d" \
"${pkgdir}/etc/init.d" \
"${pkgdir}/etc/security" \
"${pkgdir}/etc/systemd" \
"${pkgdir}/usr/share/doc"
install -o root -g root -Dm 0644 clickhouse-sysuser.conf "${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf"
install -o root -g root -Dm 0644 clickhouse-tmpfiles.conf "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf"
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,9 @@
post_install() {
groupadd -r clickhouse &>/dev/null
useradd -r -g clickhouse -d /var/lib/clickhouse -s /bin/false clickhouse &>/dev/null
mkdir -p /var/lib/clickhouse/
chmod 0750 /var/lib/clickhouse
mkdir -p /var/log/clickhouse-server
chown clickhouse:clickhouse -R /var/lib/clickhouse /var/log/clickhouse-server
ldconfig
}

View File

@ -1 +0,0 @@
u clickhouse - "ClickHouse OLAP database" /var/lib/clickhouse

View File

@ -1,5 +0,0 @@
d /etc/clickhouse-server 0700 clickhouse clickhouse -
f /etc/clickhouse-server/config.xml 0600 clickhouse clickhouse -
f /etc/clickhouse-server/users.xml 0600 clickhouse clickhouse -
d /var/lib/clickhouse 0750 clickhouse clickhouse -
d /var/log/clickhouse-server 0755 clickhouse clickhouse -