2020-08-20 17:21:08 +09:00
|
|
|
# Maintainer: Mikhail f. Shiryaev <mr dot felixoid at gmail dot com>
|
|
|
|
|
2021-11-23 16:06:02 +09:00
|
|
|
pkgname=clickhouse-lts-218
|
|
|
|
pkgver=21.8.11.4
|
2020-08-20 17:21:08 +09:00
|
|
|
pkgrel=1
|
2021-11-23 16:06:02 +09:00
|
|
|
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time. LTS version 21.8'
|
2020-08-20 17:21:08 +09:00
|
|
|
arch=('x86_64')
|
2021-11-23 16:06:02 +09:00
|
|
|
url='https://clickhouse.com/'
|
2020-08-20 17:21:08 +09:00
|
|
|
license=('Apache')
|
|
|
|
depends=('tzdata' 'libcap')
|
2021-11-23 16:06:02 +09:00
|
|
|
provides=(clickhouse clickhouse-lts)
|
|
|
|
conflicts=(clickhouse clickhouse-lts)
|
2020-08-20 17:21:08 +09:00
|
|
|
noextract=(
|
|
|
|
clickhouse-common-static_${pkgver}_amd64.deb
|
|
|
|
clickhouse-client_${pkgver}_all.deb
|
|
|
|
clickhouse-server_${pkgver}_all.deb
|
|
|
|
)
|
|
|
|
source=(
|
|
|
|
https://repo.clickhouse.tech/deb/lts/main/clickhouse-client_${pkgver}_all.deb
|
2021-04-26 23:35:53 +09:00
|
|
|
https://repo.clickhouse.tech/deb/lts/main/clickhouse-common-static_${pkgver}_amd64.deb
|
2020-08-20 17:21:08 +09:00
|
|
|
https://repo.clickhouse.tech/deb/lts/main/clickhouse-server_${pkgver}_all.deb
|
|
|
|
)
|
|
|
|
sha256sums=(
|
2021-11-23 16:06:02 +09:00
|
|
|
2ef6caee04929924c3678610c368685fa203b2f66f72d6dd2c0b4de55fc689cc
|
|
|
|
2dff645ae7b8266a8c1fd80af9b7d17f62435b08db6fb7422e845edb4e78b032
|
|
|
|
00c0db12c24e90c342f294848aa2e182118b97f614361344c77b2f5903e8d083
|
2020-08-20 17:21:08 +09:00
|
|
|
)
|
|
|
|
install=$pkgname.install
|
|
|
|
backup=(
|
|
|
|
'etc/clickhouse-client/config.xml'
|
|
|
|
'etc/clickhouse-server/config.xml'
|
|
|
|
'etc/clickhouse-server/users.xml'
|
|
|
|
)
|
|
|
|
|
|
|
|
package() {
|
|
|
|
for deb in "${noextract[@]}"; do
|
|
|
|
bsdtar -xf $deb
|
|
|
|
tar xf data.tar.gz -C "${pkgdir}"
|
|
|
|
done
|
|
|
|
|
|
|
|
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}/"
|
|
|
|
|
|
|
|
rm -rf "${pkgdir}/etc/cron.d" \
|
|
|
|
"${pkgdir}/etc/init.d" \
|
|
|
|
"${pkgdir}/etc/security" \
|
|
|
|
"${pkgdir}/etc/systemd" \
|
|
|
|
"${pkgdir}/usr/share/doc"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|