summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmeaw2018-06-04 11:44:01 +0300
committerkmeaw2018-06-04 11:44:01 +0300
commitc42bd50a1384c1aeef81933d187206faa4cf900c (patch)
tree24d0bb6f95fc495d30e877b127c7ec41f083bbea
parente20b96dc6edf4e85569952b57f779e779fa1650e (diff)
downloadaur-c42bd50a1384c1aeef81933d187206faa4cf900c.tar.gz
Use upstream systemd.service
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
-rw-r--r--clickhouse-server.service13
3 files changed, 3 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 59d1241995ad..59ee365a0a41 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = clickhouse
pkgdesc = An open-source column-oriented database management system that allows generating analytical data reports in real time
pkgver = 1.1.54383
- pkgrel = 1
+ pkgrel = 2
url = https://clickhouse.yandex/
install = clickhouse.install
arch = i686
@@ -28,7 +28,6 @@ pkgbase = clickhouse
source = https://github.com/Dead2/zlib-ng/archive/e07a52d.tar.gz
source = https://github.com/ClickHouse-Extras/poco/archive/8238852.tar.gz
source = https://github.com/ClickHouse-Extras/boost/archive/2d5cb2c.tar.gz
- source = clickhouse-server.service
source = libunwind.patch
md5sums = c89a7babff34012e28357094afbfa060
md5sums = 5323f7ba2565a84a80a93edde95eb4fe
@@ -39,7 +38,6 @@ pkgbase = clickhouse
md5sums = 87676f8d7fcdea908476029f92b8103f
md5sums = fc643caa1710523bbd1d69f72577afbe
md5sums = 123c1e981fe28c1240d066af493d83b9
- md5sums = f9f5663b0a9a58e99f481efe9d193e85
md5sums = f3f60b75abf8d6f21de74db6e88e1e7b
pkgname = clickhouse
diff --git a/PKGBUILD b/PKGBUILD
index 384db996d85e..4564169d144f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=clickhouse
pkgver=1.1.54383
-pkgrel=1
+pkgrel=2
pkgdesc='An open-source column-oriented database management system that allows generating analytical data reports in real time'
arch=('i686' 'x86_64')
url='https://clickhouse.yandex/'
@@ -19,7 +19,6 @@ source=(https://github.com/yandex/ClickHouse/archive/v$pkgver-stable.tar.gz
https://github.com/Dead2/zlib-ng/archive/e07a52d.tar.gz
https://github.com/ClickHouse-Extras/poco/archive/8238852.tar.gz
https://github.com/ClickHouse-Extras/boost/archive/2d5cb2c.tar.gz
- clickhouse-server.service
libunwind.patch)
md5sums=('c89a7babff34012e28357094afbfa060'
'5323f7ba2565a84a80a93edde95eb4fe'
@@ -30,7 +29,6 @@ md5sums=('c89a7babff34012e28357094afbfa060'
'87676f8d7fcdea908476029f92b8103f'
'fc643caa1710523bbd1d69f72577afbe'
'123c1e981fe28c1240d066af493d83b9'
- 'f9f5663b0a9a58e99f481efe9d193e85'
'f3f60b75abf8d6f21de74db6e88e1e7b')
backup=('etc/clickhouse-client/config.xml' 'etc/clickhouse-server/config.xml' 'etc/clickhouse-server/users.xml')
install=$pkgname.install
@@ -73,7 +71,7 @@ package() {
cp contrib/librdkafka/src/librdkafka.so $pkgdir/usr/lib/librdkafka.so
sed -e 's:/opt/clickhouse:/var/lib/clickhouse:g' -i $pkgdir/etc/clickhouse-server/config.xml
sed -e '/listen_host/s%::<%::1<%' -i $pkgdir/etc/clickhouse-server/config.xml
- cp $startdir/clickhouse-server.service $pkgdir/usr/lib/systemd/system
+ cp debian/clickhouse-server.service $pkgdir/usr/lib/systemd/system
}
# vim:set ts=2 sw=2 et:
diff --git a/clickhouse-server.service b/clickhouse-server.service
deleted file mode 100644
index bcdbdd56fcf4..000000000000
--- a/clickhouse-server.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=ClickHouse server
-
-[Service]
-Type=simple
-PIDFile=/var/run/clickhouse-server.pid
-ExecStart=/usr/sbin/clickhouse-server
-WorkingDirectory=/etc/clickhouse-server
-User=clickhouse
-Group=clickhouse
-
-[Install]
-WantedBy=multi-user.target