summaryrefslogtreecommitdiff
path: root/dev-db/clickhouse/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-06-16 05:02:38 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-06-16 05:02:38 +0100
commitf1bc537f089cc8477a9a18db597cb349e1b00e91 (patch)
treec48eb730c43e5f35729fabbe5cb4bfbe4a1bc794 /dev-db/clickhouse/files
parentcb3e8c6af7661fbcafdcacc7e0ecdfb610d098fa (diff)
gentoo resync : 16.06.2018
Diffstat (limited to 'dev-db/clickhouse/files')
-rw-r--r--dev-db/clickhouse/files/clickhouse-concatenate-python3.patch38
-rw-r--r--dev-db/clickhouse/files/clickhouse-server.initd17
-rw-r--r--dev-db/clickhouse/files/clickhouse-server.service15
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-db/clickhouse/files/clickhouse-concatenate-python3.patch b/dev-db/clickhouse/files/clickhouse-concatenate-python3.patch
new file mode 100644
index 000000000000..155ec758a74c
--- /dev/null
+++ b/dev-db/clickhouse/files/clickhouse-concatenate-python3.patch
@@ -0,0 +1,38 @@
+--- ClickHouse-1.1.54381-stable/docs/concatenate.py.bak 2018-05-20 20:30:45.958356001 +0200
++++ ClickHouse-1.1.54381-stable/docs/concatenate.py 2018-05-20 20:45:29.442341203 +0200
+@@ -20,12 +20,12 @@
+ import os
+
+ if len(sys.argv) < 2:
+- print "Usage: concatenate.py language_dir"
+- print "Example: concatenate.py ru"
++ print("Usage: concatenate.py language_dir")
++ print("Example: concatenate.py ru")
+ sys.exit(1)
+
+ if not os.path.exists(sys.argv[1]):
+- print "Pass language_dir correctly. For example, 'ru'."
++ print("Pass language_dir correctly. For example, 'ru'.")
+ sys.exit(2)
+
+ # Configuration
+@@ -43,8 +43,8 @@
+ path = (l[l.index(':') + 1:]).strip(" '\n")
+ files_to_concatenate.append(path)
+
+-print str(len(files_to_concatenate)) + " files will be concatenated into single md-file.\nFiles:"
+-print files_to_concatenate
++print(str(len(files_to_concatenate)) + " files will be concatenated into single md-file.\nFiles:")
++print(files_to_concatenate)
+
+ # 2. Concatenate all of the files in the list
+
+@@ -68,7 +68,7 @@
+ if sharp_pos > -1:
+ return '[' + text + '](' + link[sharp_pos:] + ')'
+ else:
+- print 'ERROR: Link [' + text + '](' + link + ') in file ' + path + ' has no anchor. Please provide it.'
++ print('ERROR: Link [' + text + '](' + link + ') in file ' + path + ' has no anchor. Please provide it.')
+ # return '['+text+'](#'+link.replace('/','-')+')'
+
+ for l in file:
diff --git a/dev-db/clickhouse/files/clickhouse-server.initd b/dev-db/clickhouse/files/clickhouse-server.initd
new file mode 100644
index 000000000000..57c91cd2389c
--- /dev/null
+++ b/dev-db/clickhouse/files/clickhouse-server.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+pidfile="/run/clickhouse-server.pid"
+command_background=1
+command="/usr/bin/clickhouse-server"
+start_stop_daemon_args="--user clickhouse --group clickhouse \
+ --chdir /etc/clickhouse-server \
+ -1 /var/log/clickhouse-server/stdout.log \
+ -2 /var/log/clickhouse-server/stderr.log"
+
+depend() {
+ need net
+ after mongodb
+}
diff --git a/dev-db/clickhouse/files/clickhouse-server.service b/dev-db/clickhouse/files/clickhouse-server.service
new file mode 100644
index 000000000000..64d2cbacf6ec
--- /dev/null
+++ b/dev-db/clickhouse/files/clickhouse-server.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=ClickHouse Server (analytic DBMS for big data)
+
+[Service]
+Type=simple
+User=clickhouse
+Group=clickhouse
+Restart=always
+RestartSec=30
+ExecStart=/usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml
+LimitCORE=infinity
+LimitNOFILE=500000
+
+[Install]
+WantedBy=multi-user.target