2020-08-20 17:21:08 +09:00
|
|
|
# Maintainer: Mikhail f. Shiryaev <mr dot felixoid at gmail dot com>
|
|
|
|
|
|
|
|
pkgname=clickhouse-lts
|
2020-10-26 05:31:38 +09:00
|
|
|
pkgver=20.8.4.11
|
2020-08-20 17:21:08 +09:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time. LTS version'
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://clickhouse.tech/'
|
|
|
|
license=('Apache')
|
|
|
|
depends=('tzdata' 'libcap')
|
|
|
|
provides=(clickhouse)
|
|
|
|
conflicts=(clickhouse)
|
|
|
|
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-common-static_${pkgver}_amd64.deb
|
|
|
|
https://repo.clickhouse.tech/deb/lts/main/clickhouse-client_${pkgver}_all.deb
|
|
|
|
https://repo.clickhouse.tech/deb/lts/main/clickhouse-server_${pkgver}_all.deb
|
|
|
|
)
|
|
|
|
sha256sums=(
|
2020-10-26 05:31:38 +09:00
|
|
|
3bed2bcc5197cdf3c934e67be350f1c5eb767a53a83dcd09c591ef30a755c3db
|
|
|
|
ab8e6da45cdfa124dce15a50f90c717023aba426907c4ea65a5717b58ff7119e
|
|
|
|
edeb40e216ee821f8df21e0e2ebcd0853281b7723aa9e9419373824281374a32
|
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:
|