2022-04-12 14:02:29 +09:00
|
|
|
# Maintainer: Dmitry Bilunov <kmeaw@yandex-team.ru>
|
2020-08-20 17:21:08 +09:00
|
|
|
# Maintainer: Mikhail f. Shiryaev <mr dot felixoid at gmail dot com>
|
2022-04-12 14:02:29 +09:00
|
|
|
# Maintainer: Yiyang Kang <kkyy at kkyy dot me>
|
2020-08-20 17:21:08 +09:00
|
|
|
|
2022-04-12 14:02:29 +09:00
|
|
|
pkgname=clickhouse-lts-223
|
|
|
|
_pkgname=clickhouse
|
2022-05-08 21:37:10 +09:00
|
|
|
pkgver=22.3.6.5
|
2020-08-20 17:21:08 +09:00
|
|
|
pkgrel=1
|
2022-04-12 14:02:29 +09:00
|
|
|
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time -- LTS version 22.3'
|
2020-08-20 17:21:08 +09:00
|
|
|
arch=('x86_64')
|
2022-04-12 14:02:29 +09:00
|
|
|
url='https://clickhouse.com'
|
2020-08-20 17:21:08 +09:00
|
|
|
license=('Apache')
|
|
|
|
depends=('tzdata' 'libcap')
|
2022-04-12 14:02:29 +09:00
|
|
|
provides=('clickhouse=22.3.3.44' 'clickhouse-lts=22.3.3.44')
|
|
|
|
conflicts=('clickhouse' 'clickhouse-lts')
|
2020-08-20 17:21:08 +09:00
|
|
|
noextract=(
|
|
|
|
clickhouse-client_${pkgver}_all.deb
|
2022-04-12 14:02:29 +09:00
|
|
|
clickhouse-common-static_${pkgver}_amd64.deb
|
2020-08-20 17:21:08 +09:00
|
|
|
clickhouse-server_${pkgver}_all.deb
|
|
|
|
)
|
|
|
|
source=(
|
2022-04-12 14:02:29 +09:00
|
|
|
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
|
2020-08-20 17:21:08 +09:00
|
|
|
)
|
2022-04-12 14:02:29 +09:00
|
|
|
b2sums=(
|
2022-05-08 21:37:10 +09:00
|
|
|
a3c660c2712778fd8421c03b5a05c5a5259da142c9e278502999c87fcee6e579f17a74b939e2efd48a7a2b04ea0e273f29f70000671ef06f07495dbf6d8006d5
|
|
|
|
ea795cea51d220b660c53998c5cb6b4acb426e1ae9867ed65a33db64f3e1fe1489277c0f71cf13566626b6216ea1cd351dd170c836156dc2710b7b15af1c17e8
|
|
|
|
c24679bba4d7fe02109c9ffc009a73ae77f67980e34db1b1b69e6713a1a1f319a86c3d8aad71dd84bde2a893e68668f68d2bd2c4eb7b32f504176fdc32f5ef50
|
2022-04-12 14:02:29 +09:00
|
|
|
6a1a52bffac1609e46d5476946a6658c111ef8082bbeeb0c00a32bfc5bc5335330e14d536fcae63f83cb8e2970195a14aeb38545d2133528fba21a0f9bcb473e
|
2022-05-08 21:37:10 +09:00
|
|
|
f669abf2566ceb21f7b2c884caccca03f2fa2ef628e48c9d6bd9a2e8e7bd096966e36cbafbb44619ccbe473412375944053deecc3a4369794278e51a89045a60
|
2020-08-20 17:21:08 +09:00
|
|
|
)
|
|
|
|
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
|
|
|
|
|
2022-04-12 14:02:29 +09:00
|
|
|
mkdir -p "${pkgdir}/usr/share/licenses/${_pkgname}"
|
2020-08-20 17:21:08 +09:00
|
|
|
mv "${pkgdir}/lib" "${pkgdir}/usr/lib"
|
2022-04-12 14:02:29 +09:00
|
|
|
mv "${pkgdir}/usr/share/doc/clickhouse-server/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/"
|
2020-08-20 17:21:08 +09:00
|
|
|
|
|
|
|
rm -rf "${pkgdir}/etc/cron.d" \
|
|
|
|
"${pkgdir}/etc/init.d" \
|
|
|
|
"${pkgdir}/etc/security" \
|
|
|
|
"${pkgdir}/etc/systemd" \
|
|
|
|
"${pkgdir}/usr/share/doc"
|
2022-04-12 14:02:29 +09:00
|
|
|
|
|
|
|
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"
|
2020-08-20 17:21:08 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|