FreeBSD Bugzilla – Attachment 185586 Details for
Bug 221635
[NEW PORT] databases/cockroach: Open source SQL database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
diff
cockroach.diff (text/plain), 6.54 KB, created by
James Nugent
on 2017-08-19 19:33:42 UTC
(
hide
)
Description:
diff
Filename:
MIME Type:
Creator:
James Nugent
Created:
2017-08-19 19:33:42 UTC
Size:
6.54 KB
patch
obsolete
>Index: GIDs >=================================================================== >--- GIDs (revision 448229) >+++ GIDs (working copy) >@@ -712,7 +712,7 @@ > # free: 768 > # free: 769 > postgres:*:770: >-# free: 771 >+cockroach:*:771: > # free: 772 > # free: 773 > # free: 774 >Index: UIDs >=================================================================== >--- UIDs (revision 448229) >+++ UIDs (working copy) >@@ -718,7 +718,7 @@ > # free: 768 > # free: 769 > postgres:*:770:770::0:0:PostgreSQL Daemon:/var/db/postgres:/bin/sh >-# free: 771 >+cockroach:*:771:771::0:0:CockroachDB Daemon:/var/db/cockroach:/usr/sbin/nologin > # free: 772 > # free: 773 > # free: 774 >Index: databases/Makefile >=================================================================== >--- databases/Makefile (revision 448229) >+++ databases/Makefile (working copy) >@@ -33,6 +33,7 @@ > SUBDIR += cego > SUBDIR += cegobridge > SUBDIR += clickhouse >+ SUBDIR += cockroach > SUBDIR += couchdb > SUBDIR += courier-authlib-mysql > SUBDIR += courier-authlib-pgsql >Index: databases/cockroach/Makefile >=================================================================== >--- databases/cockroach/Makefile (nonexistent) >+++ databases/cockroach/Makefile (working copy) >@@ -0,0 +1,35 @@ >+# $FreeBSD$ >+ >+PORTNAME= cockroach >+PORTVERSION= 1.0.4 >+CATEGORIES= databases >+MASTER_SITES= https://binaries.cockroachdb.com/ >+DISTNAME= cockroach-v${PORTVERSION} >+EXTRACT_SUFX= .src.tgz >+ >+MAINTAINER= james@jen20.com >+COMMENT= Cloud-native SQL database that survive disasters >+ >+LICENSE= APACHE20 >+LICENSE_FILE= ${WRKSRC}/src/github.com/cockroachdb/cockroach/LICENSE >+ >+BUILD_DEPENDS= bash:shells/bash \ >+ cmake:devel/cmake >+ >+USES= gmake go >+ >+USE_RC_SUBR= cockroach >+ >+PLIST_FILES= bin/cockroach >+ >+USERS= cockroach >+GROUPS= cockroach >+ >+do-build: >+ ${SETENV} -i PATH="${PATH}" \ >+ ${MAKE_CMD} -C ${WRKSRC} buildoss >+ >+do-install: >+ ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/cockroachdb/cockroach/cockroach ${STAGEDIR}${PREFIX}/bin/cockroach >+ >+.include <bsd.port.mk> > >Property changes on: databases/cockroach/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: databases/cockroach/distinfo >=================================================================== >--- databases/cockroach/distinfo (nonexistent) >+++ databases/cockroach/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1502917562 >+SHA256 (cockroach-v1.0.4.src.tgz) = 1d135016ccef6c684b7414b6b26219cad74ebec9dea5421862ac8288025476b6 >+SIZE (cockroach-v1.0.4.src.tgz) = 69123903 > >Property changes on: databases/cockroach/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: databases/cockroach/files/cockroach.in >=================================================================== >--- databases/cockroach/files/cockroach.in (nonexistent) >+++ databases/cockroach/files/cockroach.in (working copy) >@@ -0,0 +1,69 @@ >+#!/bin/sh >+ >+# $FreeBSD$ >+# >+# PROVIDE: cockroach >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+# >+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >+# to enable this service: >+# >+# cockroach_enable (bool): Set to NO by default. >+# Set it to YES to enable cockroach. >+# cockroach_user (user): Set user to run cockroach. >+# Default is "cockroach". >+# cockroach_group (group): Set group to run cockroach. >+# Default is "cockroach". >+# cockroach_dir (dir): Set dir to run cockroach in. >+# Default is "path=/var/db/cockroach". >+# cockroach_flags (string): Set additional flags with which to run cockroach. >+# Default is "--insecure --host=localhost". >+ >+. /etc/rc.subr >+ >+name=cockroach >+rcvar=cockroach_enable >+ >+load_rc_config $name >+ >+: ${cockroach_enable:="NO"} >+: ${cockroach_user:="cockroach"} >+: ${cockroach_group:="cockroach"} >+: ${cockroach_dir:="/var/db/cockroachdb"} >+: ${cockroach_store:="--store=path=${cockroach_dir}"} >+: ${cockroach_flags:="--insecure --host=localhost"} >+ >+start_precmd=cockroach_startprecmd >+start_cmd=${name}_start >+stop_cmd=${name}_stop >+ >+pidfile=/var/run/cockroach.pid >+command="%%PREFIX%%/bin/cockroach" >+ >+cockroach_startprecmd() >+{ >+ if [ ! -e ${pidfile} ]; then >+ install -o ${cockroach_user} -g ${cockroach_group} /dev/null ${pidfile}; >+ fi >+ >+ if [ ! -d ${cockroach_dir} ]; then >+ install -d -o ${cockroach_user} -g ${cockroach_group} ${cockroach_dir} >+ fi >+} >+ >+cockroach_start() { >+ /usr/sbin/daemon -u ${cockroach_user} \ >+ -p $pidfile ${command} \ >+ start \ >+ ${cockroach_store} \ >+ ${cockroach_flags} >+} >+ >+cockroach_stop() { >+ [ -f $pidfile ] \ >+ && ${command} quit --insecure \ >+ || echo ${name} not running? \(check ${pidfile}\) >+} >+ >+run_rc_command "$1" > >Property changes on: databases/cockroach/files/cockroach.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: databases/cockroach/pkg-descr >=================================================================== >--- databases/cockroach/pkg-descr (nonexistent) >+++ databases/cockroach/pkg-descr (working copy) >@@ -0,0 +1,10 @@ >+CockroachDB is a distributed SQL database built on a transactional and >+strongly-consistent key-value store. It scales horizontally; survives disk, >+machine, rack, and even datacenter failures with minimal latency disruption and >+no manual intervention; supports strongly-consistent ACID transactions; and >+provides a familiar SQL API for structuring, manipulating, and querying data. >+ >+CockroachDB is inspired by Google's Spanner and F1 technologies, and it's >+completely open source. >+ >+WWW: https://cockroachlabs.io/ > >Property changes on: databases/cockroach/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221635
:
185586
|
185612
|
185636