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
|
2021-12-27 17:17:47 +09:00
|
|
|
pkgver=21.8.13.6
|
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-12-27 17:17:47 +09:00
|
|
|
1791da0283a1dd6821a113be6cf5cdb3d1c328441a9a81a3afb4effe87b79b91
|
|
|
|
9e2065cd9a1c08d216213e77872bcbd7a0c57111589140a9ed0dbe056745b75e
|
|
|
|
5686577fb282e9817b98f7212b0f28a0fb23a0d6f4e8448600ae6d4934e0cb18
|
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:
|