View | Details | Raw Unified | Return to bug 218666
Collapse All | Expand All

(-)./Makefile (-19 / +23 lines)
Lines 1-11 Link Here
1
# Created by: proler@gmail.com
1
# Created by: proler@gmail.com
2
# $FreeBSD: head/databases/clickhouse/Makefile 437439 2017-04-01 15:23:30Z gerald $
2
# $FreeBSD: head/databases/clickhouse/Makefile 435190 2017-03-01 18:30:06Z amdmi3 $
3
3
4
PORTNAME=	clickhouse
4
PORTNAME=	clickhouse
5
PORTVERSION=	1.1.54165
5
PORTVERSION=	1.1.54214
6
PORTREVISION=	1
7
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
8
DISTVERSIONSUFFIX=	-stable
7
#DISTVERSIONSUFFIX=	-stable
8
DISTVERSIONSUFFIX=	-testing
9
CATEGORIES=	databases
9
CATEGORIES=	databases
10
10
11
MAINTAINER=	proler@gmail.com
11
MAINTAINER=	proler@gmail.com
Lines 13-25 Link Here
13
13
14
LICENSE=	APACHE20
14
LICENSE=	APACHE20
15
15
16
BUILD_DEPENDS=	bash:shells/bash
16
BUILD_DEPENDS=	bash:shells/bash \
17
LIB_DEPENDS=	libsqlite3.so:databases/sqlite3 \
17
				sparsehash>=0:devel/sparsehash
18
		libtcmalloc.so:devel/google-perftools \
18
LIB_DEPENDS=	libtcmalloc.so:devel/google-perftools \
19
		libodbc.so:databases/unixODBC \
19
		libodbc.so:databases/unixODBC \
20
		libltdl.so:devel/libltdl \
20
		libltdl.so:devel/libltdl \
21
		libicudata.so:devel/icu \
21
		libicudata.so:devel/icu \
22
		libboost_program_options.so:devel/boost-libs
22
		libboost_program_options.so:devel/boost-libs \
23
		libzookeeper_mt.so:devel/libzookeeper \
24
		libre2.so:devel/re2 \
25
		libdouble-conversion.so:devel/libdouble-conversion \
26
		libzstd.so:archivers/zstd \
27
		liblz4.so:archivers/liblz4 \
28
		libPocoNet.so:devel/poco
23
29
24
USE_GITHUB=	yes
30
USE_GITHUB=	yes
25
GH_ACCOUNT=	yandex
31
GH_ACCOUNT=	yandex
Lines 30-67 Link Here
30
36
31
USES=		compiler:c++14-lang cmake iconv mysql ssl readline
37
USES=		compiler:c++14-lang cmake iconv mysql ssl readline
32
USE_LDCONFIG=	yes
38
USE_LDCONFIG=	yes
33
CMAKE_ARGS=	-DUSE_INTERNAL_GPERFTOOLS_LIBRARY=0 \
39
CMAKE_ARGS=	-DUNBUNDLED=1 \
34
		-DUSE_INTERNAL_BOOST_LIBRARY=0 \
35
		-DUSE_INTERNAL_ZLIB_LIBRARY=0 \
36
		-DUSE_STATIC_LIBRARIES=0 \
40
		-DUSE_STATIC_LIBRARIES=0 \
37
		-DNO_WERROR=1
41
		-DNO_WERROR=1 \
42
		-DENABLE_TESTS=0 \
43
		-DCXX11_ABI=
38
44
39
USE_RC_SUBR=	${PORTNAME}
45
USE_RC_SUBR=	${PORTNAME}
40
USERS=		clickhouse
46
USERS=		clickhouse
41
GROUPS=		clickhouse
47
GROUPS=		clickhouse
42
48
43
#temporary! use PORTVERSION after version match
49
SOVERSION=	${PORTVERSION}
44
SOVERSION=	1.1.54164
45
PLIST_SUB=	SOVERSION=${SOVERSION}
50
PLIST_SUB=	SOVERSION=${SOVERSION}
46
51
47
.include <bsd.port.pre.mk>
52
.include <bsd.port.pre.mk>
48
53
49
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
54
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
50
BUILD_DEPENDS+= clang38:devel/llvm38
55
BUILD_DEPENDS+=	clang38:devel/llvm38
51
CC=		clang38
56
CC=		clang38
52
CXX=		clang++38
57
CXX=		clang++38
53
.endif
58
.endif
54
59
55
post-patch:
60
post-patch:
56
	@${REINPLACE_CMD} -e 's|/var/lib/clickhouse|/var/db/clickhouse|' ${WRKSRC}/dbms/src/Server/config.xml
61
	@${REINPLACE_CMD} -e 's|/var/lib/clickhouse|/var/db/clickhouse|;s|/var/log/clickhouse-server|/var/log/clickhouse|' ${WRKSRC}/dbms/src/Server/config.xml
57
62
58
post-install:
63
post-install:
59
	@${RM} ${STAGEDIR}${PREFIX}/bin/clickhouse-compressor
64
	@${RM} ${STAGEDIR}${PREFIX}/bin/clickhouse-compressor
60
	@${RM} ${STAGEDIR}${PREFIX}/bin/config-processor
65
	@${RM} ${STAGEDIR}${PREFIX}/bin/config-processor
61
	@${RM} ${STAGEDIR}${PREFIX}/bin/corrector_utf8
66
	@${RM} ${STAGEDIR}${PREFIX}/bin/corrector_utf8
62
	@${RM} ${STAGEDIR}${PREFIX}/lib/cmake/Poco/PocoConfig.cmake
67
	@${RM} -r ${STAGEDIR}${PREFIX}/include/gtest
63
	@${RMDIR} ${STAGEDIR}${PREFIX}/lib/cmake/Poco
68
	@${RM} ${STAGEDIR}${PREFIX}/lib/libgtest*
64
	@${RMDIR} ${STAGEDIR}${PREFIX}/lib/cmake
65
69
66
	${INSTALL_DATA} ${WRKSRC}/dbms/src/Client/config.xml \
70
	${INSTALL_DATA} ${WRKSRC}/dbms/src/Client/config.xml \
67
		${STAGEDIR}${PREFIX}/etc/clickhouse-client/config.xml.sample
71
		${STAGEDIR}${PREFIX}/etc/clickhouse-client/config.xml.sample
(-)./distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1488372403
1
TIMESTAMP = 1492025852
2
SHA256 (yandex-ClickHouse-v1.1.54165-stable_GH0.tar.gz) = 192dc82094e3350a5030a68a39ed08b484d48d05514ed6d6c16647f21520aeb5
2
SHA256 (yandex-ClickHouse-v1.1.54214-testing_GH0.tar.gz) = 42d45c4154be269d00fb6cd1533ca798eb85714debd9bbf05ced6c761eb92125
3
SIZE (yandex-ClickHouse-v1.1.54165-stable_GH0.tar.gz) = 13510381
3
SIZE (yandex-ClickHouse-v1.1.54214-testing_GH0.tar.gz) = 48685881
(-)./files/clickhouse.in (-6 / +5 lines)
Lines 39-53 Link Here
39
: ${clickhouse_rundir="/var/run/clickhouse"}
39
: ${clickhouse_rundir="/var/run/clickhouse"}
40
: ${clickhouse_user="clickhouse"}
40
: ${clickhouse_user="clickhouse"}
41
: ${clickhouse_group="clickhouse"}
41
: ${clickhouse_group="clickhouse"}
42
: ${clickhouse_logdir="/var/log/clickhouse"}
43
: ${clickhouse_dbdir="/var/db/clickhouse"}
42
: ${clickhouse_dbdir="/var/db/clickhouse"}
44
: ${clickhouse_flags=""}
43
: ${clickhouse_flags=""}
45
: ${clickhouse_args="--server --config-file ${clickhouse_config} ${clickhouse_flags}"}
44
: ${clickhouse_pidfile="${clickhouse_rundir}/clickhouse.pid"}
45
: ${clickhouse_args="--server --daemon --pid-file ${clickhouse_pidfile} --config-file ${clickhouse_config} ${clickhouse_flags}"}
46
46
47
command=/usr/sbin/daemon
47
command=%%PREFIX%%/bin/clickhouse
48
procname=/usr/local/bin/clickhouse
48
pidfile=${clickhouse_pidfile}
49
pidfile=${clickhouse_rundir}/clickhouse.pid
49
command_args=${clickhouse_args}
50
command_args="-c -f -p ${pidfile} ${procname} ${clickhouse_args}"
51
required_files=${clickhouse_config}
50
required_files=${clickhouse_config}
52
start_precmd=clickhouse_prestart
51
start_precmd=clickhouse_prestart
53
52
(-)./pdiff (+3 lines)
Line 0 Link Here
1
Diff mode was set to SVN, but /root/clickhouse-freebsd/databases/clickhouse is not a svn working copy.
2
Trying /usr/ports ... found
3
===> Generating patch
(-)./pkg-plist (+2 lines)
Lines 3-8 Link Here
3
bin/clickhouse-client
3
bin/clickhouse-client
4
bin/clickhouse-local
4
bin/clickhouse-local
5
bin/clickhouse-server
5
bin/clickhouse-server
6
@dir(clickhouse,,) etc/clickhouse-server
7
@dir(clickhouse,,) etc/clickhouse-client
6
@sample etc/clickhouse-client/config.xml.sample
8
@sample etc/clickhouse-client/config.xml.sample
7
@sample etc/clickhouse-server/config.xml.sample
9
@sample etc/clickhouse-server/config.xml.sample
8
@sample etc/clickhouse-server/users.xml.sample
10
@sample etc/clickhouse-server/users.xml.sample

Return to bug 218666