View | Details | Raw Unified | Return to bug 221635 | Differences between
and this patch

Collapse All | Expand All

(-)GIDs (-1 / +1 lines)
Lines 712-718 Link Here
712
# free: 768
712
# free: 768
713
# free: 769
713
# free: 769
714
postgres:*:770:
714
postgres:*:770:
715
# free: 771
715
cockroach:*:771:
716
# free: 772
716
# free: 772
717
# free: 773
717
# free: 773
718
# free: 774
718
# free: 774
(-)UIDs (-1 / +1 lines)
Lines 718-724 Link Here
718
# free: 768
718
# free: 768
719
# free: 769
719
# free: 769
720
postgres:*:770:770::0:0:PostgreSQL Daemon:/var/db/postgres:/bin/sh
720
postgres:*:770:770::0:0:PostgreSQL Daemon:/var/db/postgres:/bin/sh
721
# free: 771
721
cockroach:*:771:771::0:0:CockroachDB Daemon:/var/db/cockroach:/usr/sbin/nologin
722
# free: 772
722
# free: 772
723
# free: 773
723
# free: 773
724
# free: 774
724
# free: 774
(-)databases/Makefile (+1 lines)
Lines 33-38 Link Here
33
    SUBDIR += cego
33
    SUBDIR += cego
34
    SUBDIR += cegobridge
34
    SUBDIR += cegobridge
35
    SUBDIR += clickhouse
35
    SUBDIR += clickhouse
36
    SUBDIR += cockroach
36
    SUBDIR += couchdb
37
    SUBDIR += couchdb
37
    SUBDIR += courier-authlib-mysql
38
    SUBDIR += courier-authlib-mysql
38
    SUBDIR += courier-authlib-pgsql
39
    SUBDIR += courier-authlib-pgsql
(-)databases/cockroach/Makefile (+35 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=       cockroach
4
PORTVERSION=    1.0.4
5
CATEGORIES=     databases
6
MASTER_SITES=   https://binaries.cockroachdb.com/
7
DISTNAME=       cockroach-v${PORTVERSION}
8
EXTRACT_SUFX=   .src.tgz
9
10
MAINTAINER=     james@jen20.com
11
COMMENT=        Cloud-native SQL database that survive disasters
12
13
LICENSE=        APACHE20
14
LICENSE_FILE=   ${WRKSRC}/src/github.com/cockroachdb/cockroach/LICENSE
15
16
BUILD_DEPENDS=  bash:shells/bash \
17
		cmake:devel/cmake
18
19
USES=           gmake go
20
21
USE_RC_SUBR=	cockroach
22
23
PLIST_FILES=	bin/cockroach
24
25
USERS=		cockroach
26
GROUPS=		cockroach
27
28
do-build:
29
	${SETENV} -i PATH="${PATH}" \
30
		${MAKE_CMD} -C ${WRKSRC} buildoss
31
32
do-install:
33
	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/cockroachdb/cockroach/cockroach ${STAGEDIR}${PREFIX}/bin/cockroach
34
35
.include <bsd.port.mk>
(-)databases/cockroach/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1502917562
2
SHA256 (cockroach-v1.0.4.src.tgz) = 1d135016ccef6c684b7414b6b26219cad74ebec9dea5421862ac8288025476b6
3
SIZE (cockroach-v1.0.4.src.tgz) = 69123903
(-)databases/cockroach/files/cockroach.in (+69 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: cockroach
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# cockroach_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable cockroach.
14
# cockroach_user (user):        Set user to run cockroach.
15
#                               Default is "cockroach".
16
# cockroach_group (group):      Set group to run cockroach.
17
#                               Default is "cockroach".
18
# cockroach_dir (dir):          Set dir to run cockroach in.
19
#                               Default is "path=/var/db/cockroach".
20
# cockroach_flags (string):     Set additional flags with which to run cockroach.
21
#                               Default is "--insecure --host=localhost".
22
23
. /etc/rc.subr
24
25
name=cockroach
26
rcvar=cockroach_enable
27
28
load_rc_config $name
29
30
: ${cockroach_enable:="NO"}
31
: ${cockroach_user:="cockroach"}
32
: ${cockroach_group:="cockroach"}
33
: ${cockroach_dir:="/var/db/cockroachdb"}
34
: ${cockroach_store:="--store=path=${cockroach_dir}"}
35
: ${cockroach_flags:="--insecure --host=localhost"}
36
37
start_precmd=cockroach_startprecmd
38
start_cmd=${name}_start
39
stop_cmd=${name}_stop
40
41
pidfile=/var/run/cockroach.pid
42
command="%%PREFIX%%/bin/cockroach"
43
44
cockroach_startprecmd()
45
{
46
        if [ ! -e ${pidfile} ]; then
47
                install -o ${cockroach_user} -g ${cockroach_group} /dev/null ${pidfile};
48
        fi
49
50
        if [ ! -d ${cockroach_dir} ]; then
51
                install -d -o ${cockroach_user} -g ${cockroach_group} ${cockroach_dir}
52
        fi
53
}
54
55
cockroach_start() {
56
	/usr/sbin/daemon -u ${cockroach_user} \
57
		-p $pidfile ${command} \
58
		start \
59
		${cockroach_store} \
60
		${cockroach_flags}
61
}
62
63
cockroach_stop() {
64
	[ -f $pidfile ] \
65
		&& ${command} quit --insecure \
66
		|| echo ${name} not running? \(check ${pidfile}\)
67
}
68
69
run_rc_command "$1"
(-)databases/cockroach/files/patch-src_github.com_cockroachdb_cockroach_build_common.mk (+12 lines)
Line 0 Link Here
1
--- src/github.com/cockroachdb/cockroach/build/common.mk.orig	2017-08-20 17:46:41 UTC
2
+++ src/github.com/cockroachdb/cockroach/build/common.mk
3
@@ -378,7 +378,8 @@ $(ROCKSDB_DIR)/Makefile: $(C_DEPS_DIR)/rocksdb-rebuild
4
 	  $(if $(findstring release,$(TYPE)),,-DWITH_$(if $(findstring mingw,$(TARGET_TRIPLE)),AVX2,SSE42)=OFF) \
5
 	  -DSNAPPY_LIBRARIES=$(SNAPPY_DIR)/.libs/libsnappy.a -DSNAPPY_INCLUDE_DIR=$(SNAPPY_SRC_DIR) -DWITH_SNAPPY=ON \
6
 	  -DJEMALLOC_LIBRARIES=$(JEMALLOC_DIR)/lib/libjemalloc.a -DJEMALLOC_INCLUDE_DIR=$(JEMALLOC_DIR)/include -DWITH_JEMALLOC=ON \
7
-	  $(if $(ENABLE_ROCKSDB_ASSERTIONS),,-DCMAKE_CXX_FLAGS=-DNDEBUG)
8
+	  $(if $(ENABLE_ROCKSDB_ASSERTIONS),,-DCMAKE_CXX_FLAGS=-DNDEBUG) \
9
+	  -DFAIL_ON_WARNINGS=OFF
10
 	@# TODO(benesch): Tweak how we pass -DNDEBUG above when we upgrade to a
11
 	@# RocksDB release that includes https://github.com/facebook/rocksdb/pull/2300.
12
 
(-)databases/cockroach/pkg-descr (+10 lines)
Line 0 Link Here
1
CockroachDB is a distributed SQL database built on a transactional and
2
strongly-consistent key-value store. It scales horizontally; survives disk,
3
machine, rack, and even datacenter failures with minimal latency disruption and
4
no manual intervention; supports strongly-consistent ACID transactions; and
5
provides a familiar SQL API for structuring, manipulating, and querying data.
6
7
CockroachDB is inspired by Google's Spanner and F1 technologies, and it's
8
completely open source.
9
10
WWW: https://cockroachlabs.io/

Return to bug 221635