Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Almost working port of dalmatinerdb. Works when you make package manually, but doesn't when poudriere tries to do offline/cleanroom builds. good luck, i'm out of time on this. HOW CAN A DATABASE CLAIM TO BE OPTIMIZED FOR ZFS AND NOT HAVE A WORKING FREEBSD PORT? WTF GUYS
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# databases
# databases/dalmatinerdb
# databases/dalmatinerdb/Makefile
# databases/dalmatinerdb/distinfo
# databases/dalmatinerdb/pkg-plist
# databases/dalmatinerdb/pkg-descr
#
echo c - databases
mkdir -p databases > /dev/null 2>&1
echo c - databases/dalmatinerdb
mkdir -p databases/dalmatinerdb > /dev/null 2>&1
echo x - databases/dalmatinerdb/Makefile
sed 's/^X//' >databases/dalmatinerdb/Makefile << '74131787f3a32d7f5af296b0e2bb37bf'
X# Created by: jsmith@resonatingmedia.com
X# $FreeBSD$
X
XPORTNAME= dalmatinerdb
XPORTVERSION= 0.3.3
XCATEGORIES= databases
X
XMAINTAINER= franz@bett.ag
XCOMMENT= DalmatinerDB is a metric database written in pure Erlang
X
XLICENSE= MIT
X
XBUILD_DEPENDS= erl:lang/erlang \
X rebar3>=0:devel/rebar3 \
X git:devel/git
X
XRUN_DEPENDS= erl:lang/erlang \
X sudo:security/sudo
X
XMASTER_SITES+= https://s3.amazonaws.com/s3.hex.pm/tarballs/:hex
X
XUSES= gmake ssl
X
XUSERS= dalmatiner
XGROUPS= nobody #dalmatiner
X
X# Tag/commit is needed at the moment as we need to use the test branch for FreeBSD
XUSE_GITHUB= yes
XGH_ACCOUNT= dalmatinerdb
XGH_PROJECT= dalmatinerdb
XGH_TAGNAME= efe96fb
X
XREBAR_DEPS= rebar3_cuttlefish-0.16.0 \
X cuttlefish-2.0.12 \
X getopt-0.8.2 \
X lager-3.2.4 \
X goldrush-0.1.9 \
X pc-1.6.0 \
X ebitmap-0.1.5 \
X trie-1.7.2 \
X edown-0.8.1 \
X fifo_lager-0.1.4 \
X ranch-1.1.0 \
X fifo_utils-0.1.52 \
X riak_core_ng-3.0.9 \
X snappiest-1.2.0 \
X mmath-0.2.0 \
X mcache-0.2.0 \
X mstore-0.3.5 \
X mstore_inspector-0.1.1 \
X estore-0.1.10 \
X dproto-0.5.0 \
X otters-0.2.0 \
X hdr_histogram-0.3.2 \
X jsxd-0.2.0 \
X eper-0.94.0 \
X recon-2.3.4
X
X.for _dep in ${REBAR_DEPS}
XDISTFILES+= ${_dep}.tar:hex
X.endfor
X
X# rebar3 insists on downloading dependencies, and some kind of package
X# index into the user's HOME. We need to trick it into behaving by
X# providing both before building.
X
Xpost-extract:
X.for _dep in ${REBAR_DEPS}
X @${MKDIR} ${WRKSRC}/_build/default/lib/${_dep:C/-.*//}
X @${TAR} xOf ${DISTDIR}/${_dep}.tar contents.tar.gz |\
X ${TAR} xfz - -C ${WRKSRC}/_build/default/lib/${_dep:C/-.*//}
X.endfor
X
Xdo-build:
X cd ${WRKSRC} && HOME=${WRKDIR} DEBUG=1 ./rebar3 report release
X
Xdo-install:
X cd ${WRKSRC}/_build/default/rel/ddb/lib/eleveldb-2.2.20 && ${RM} -rf c_src
X cd ${WRKSRC}/_build/default/rel/ddb/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/bin
X cd ${WRKSRC}/_build/default/rel/ddb/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib
X cd ${WRKSRC}/_build/default/rel/ddb/share && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share
X ${INSTALL_DATA} -d ${WRKSRC}/_build/default/rel/ddb/etc ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
X ${INSTALL_DATA} ${WRKSRC}/_build/default/rel/ddb/etc/ddb.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/ddb.conf
X
X.include <bsd.port.mk>
74131787f3a32d7f5af296b0e2bb37bf
echo x - databases/dalmatinerdb/distinfo
sed 's/^X//' >databases/dalmatinerdb/distinfo << 'd31df5ce037ba182a92e752912f6a8d8'
XSHA256 (dalmatinerdb-dalmatinerdb-0.3.3-efe96fb_GH0.tar.gz) = 29b698953c0a44de2ef5bae0dd95853cc936981238124d1b5f82ad400958669f
XSIZE (dalmatinerdb-dalmatinerdb-0.3.3-efe96fb_GH0.tar.gz) = 746238
XSHA256 (cuttlefish-2.0.12.tar) = e3b30ee81bf5363c2571efce458c7eeda08cecf71f7cf6805584911593fe7136
XSIZE (cuttlefish-2.0.12.tar) = 68096
XSHA256 (dproto-0.5.0.tar) = bd45d554d0bd2124d4ba766f9a206a226ac12b5077e01a5595b88f766b20d61a
XSIZE (dproto-0.5.0.tar) = 20480
XSHA256 (ebitmap-0.1.5.tar) = 031c4ba347c35d2c28937f1ff301dc083952b89cd37c8906a37371ef2f74b9f1
XSIZE (ebitmap-0.1.5.tar) = 10240
XSHA256 (edown-0.8.1.tar) = 2821d6a43d1da067f6eac072e69105140a36556cd906fc6b81b6fae905f5dd13
XSIZE (edown-0.8.1.tar) = 30720
XSHA256 (eper-0.94.0.tar) = 8d853792fa61a7fd068fe9c113a8a44bc839e11ad70cb8d5d2884566e3bede39
XSIZE (eper-0.94.0.tar) = 266240
XSHA256 (estore-0.1.10.tar) = 97d00de9ae5cde6827a5a74ea0fc7ee24f21150735ab3f68ac9c8dcd35feaf3d
XSIZE (estore-0.1.10.tar) = 20480
XSHA256 (fifo_lager-0.1.4.tar) = 6f4b2c620fca09f4cd36040a76964fd0b510aa6fe520ed0c7e8362c5d47120cb
XSIZE (fifo_lager-0.1.4.tar) = 10240
XSHA256 (fifo_utils-0.1.52.tar) = 0bf9c22d1e2099066507b62c0d11536e84f054c841ab1d10777bd354ccecfc50
XSIZE (fifo_utils-0.1.52.tar) = 30720
XSHA256 (getopt-0.8.2.tar) = 736e6db3679fbbad46373efb96b69509f8e420281635e9d92989af9f0a0483f7
XSIZE (getopt-0.8.2.tar) = 20480
XSHA256 (goldrush-0.1.9.tar) = 99cb4128cffcb3227581e5d4d803d5413fa643f4eb96523f77d9e6937d994ceb
XSIZE (goldrush-0.1.9.tar) = 30720
XSHA256 (hdr_histogram-0.3.2.tar) = 995c5befd05d95c037666f1244377e4318931fbff0d9bc296beea6b5eb7bd4f5
XSIZE (hdr_histogram-0.3.2.tar) = 51200
XSHA256 (jsxd-0.2.0.tar) = 5b2797685673571afe3253fa607b77ae1d1110cf3d78ceb1f12c7d372ae0d00a
XSIZE (jsxd-0.2.0.tar) = 20480
XSHA256 (lager-3.2.4.tar) = eec0b676776adcfc4f281add4acad1806b2f399774eaaa30f9ec47d2b7881b58
XSIZE (lager-3.2.4.tar) = 92160
XSHA256 (mcache-0.2.0.tar) = f4b72cb5b1a80617807ea4e0351d32e2820ca1897cbe9b0b923d80e071a9a6cf
XSIZE (mcache-0.2.0.tar) = 30720
XSHA256 (mmath-0.2.0.tar) = 8c60bcfdd5bfec37de915cab833ef01152967d767248c404b2c48fc435722e76
XSIZE (mmath-0.2.0.tar) = 20480
XSHA256 (mstore_inspector-0.1.1.tar) = b6a5a0b7c7f6d80fae5e17de07962534e2a64aaa687b6f423d39e971da248c7e
XSIZE (mstore_inspector-0.1.1.tar) = 10240
XSHA256 (mstore-0.3.5.tar) = fb1380cdcda5bf0546871df4eb53d8b892e6621209db85eefd050eefdd5a154c
XSIZE (mstore-0.3.5.tar) = 20480
XSHA256 (otters-0.2.0.tar) = 34d2fc57f5d5a4baa9ae2b7c131fcba8afd91ede8090181264399b12868c9867
XSIZE (otters-0.2.0.tar) = 40960
XSHA256 (pc-1.6.0.tar) = 00a2ca6ae26d847ad1e4787ec71293af0d3eea260acf39698cc3dbf262080477
XSIZE (pc-1.6.0.tar) = 20480
XSHA256 (ranch-1.1.0.tar) = 98ade939e63e6567da5dec5bc5bd93cbdc53d53f8b1aa998adec60dc4057f048
XSIZE (ranch-1.1.0.tar) = 30720
XSHA256 (rebar3_cuttlefish-0.16.0.tar) = e786fde70d1fe60b9a57244b661bf086320053f6145896fdcbd3110dfed64a3b
XSIZE (rebar3_cuttlefish-0.16.0.tar) = 16384
XSHA256 (recon-2.3.4.tar) = 51de7fd4a019f7966b33133eadb7c5ba919e5d829fb9a9054f012be13e8f9d01
XSIZE (recon-2.3.4.tar) = 39936
XSHA256 (riak_core_ng-3.0.9.tar) = 24651432302ce6fcf86274f7bb563694a54739ee9da39f6088510972f08b8ef4
XSIZE (riak_core_ng-3.0.9.tar) = 389120
XSHA256 (snappiest-1.2.0.tar) = 6fff8fb233f9d7b66e2d99da8bde455448854c691256f1fb80b2c66829ac24b3
XSIZE (snappiest-1.2.0.tar) = 40960
XSHA256 (trie-1.7.2.tar) = 81327bd089d990df094e67cc70f2e3a387500a5e3cee72c743f4ee09fcfacfff
XSIZE (trie-1.7.2.tar) = 40960
d31df5ce037ba182a92e752912f6a8d8
echo x - databases/dalmatinerdb/pkg-plist
sed 's/^X//' >databases/dalmatinerdb/pkg-plist << '448909df91675a9a6b90b1a6a740fe6b'
Xbin/cuttlefish
Xbin/ddb
Xbin/ddb-admin
Xbin/install_upgrade.escript
Xbin/nodetool
Xbin/start_clean.boot
X%%ETCDIR%%/ddb.conf
Xlib/basho_stats-1.0.3
Xlib/bear-0.8.5
Xlib/bitmap-0.1.5
Xlib/cf-0.2.2
Xlib/chash-0.1.2
Xlib/clique-0.3.10
Xlib/compiler-7.0.4.1
Xlib/crypto-3.7.4
Xlib/cuttlefish-2.0.12
Xlib/dalmatiner_db-0.3.3
Xlib/dalmatiner_metric-0.1.0
Xlib/dalmatiner_opt-0.1.0
Xlib/dalmatiner_vacuum-0.1.2
Xlib/dproto-0.5.4
Xlib/dynamic_compile-1.0.0
Xlib/eleveldb-2.2.20
Xlib/eper-0.94.0
Xlib/estore-0.1.10
Xlib/event_vnode-0.1.0
Xlib/exometer_core-1.0.2
Xlib/fifo_lager-0.1.8
Xlib/fifo_utils-0.1.51
Xlib/folsom-0.8.5
Xlib/goldrush-0.1.9
Xlib/hdr_histogram-0.3.2
Xlib/ibrowse-4.4.0
Xlib/jsone-1.4.5
Xlib/jsxd-0.2.4
Xlib/kernel-5.2
Xlib/lager-3.2.4
Xlib/lager_graylog-0.1.3
Xlib/lager_logstash_backend-0.1.3
Xlib/mcache-0.2.5
Xlib/metric_vnode-0.1.3
Xlib/mmath-0.2.20
Xlib/mstore-0.3.5
Xlib/mstore_inspector-0.1.1
Xlib/os_mon-2.4.2
Xlib/otters-0.2.10
Xlib/pbkdf2-2.0.0
Xlib/poolboy-0.8.2
Xlib/quickrand-1.7.2
Xlib/ranch-1.1.0
Xlib/recon-2.3.2
Xlib/riak_core-3.0.9
Xlib/riak_ensemble-2.4.0
Xlib/riak_sysmon-2.1.5
Xlib/runtime_tools-1.11.1
Xlib/sasl-3.0.3
Xlib/setup-1.7.0
Xlib/snappiest-1.2.0
Xlib/stdlib-3.3
Xlib/syntax_tools-2.1.1
Xlib/tools-2.9.1
Xlib/trie-1.7.2
Xlib/uuid-1.7.2
Xshare/ddb.xml
Xshare/dtrace/udp_msgs.d
Xshare/dtrace/udp_size.d
Xshare/dtrace/write_batch.d
Xshare/dtrace/write_size.d
Xshare/dtrace/write_type.d
Xshare/schema/00-dalmatinerdb.schema
Xshare/schema/01-vm.schema
Xshare/schema/02-riak_core.schema
Xshare/schema/03-lager.schema
Xshare/schema/04-otters.schema
448909df91675a9a6b90b1a6a740fe6b
echo x - databases/dalmatinerdb/pkg-descr
sed 's/^X//' >databases/dalmatinerdb/pkg-descr << 'b2b7fe8189c1a7d148f7f72cffd9df5e'
XDalmatinerDB is a metric database written in pure Erlang. It takes advantage of
Xsome special properties of metrics to make some tradeoffs. The goal is to make
Xa store for metric data (time, value of a metric) that is fast, has a low
Xoverhead, and is easy to query and manage. DalmetinerDB makes use of some ZFS
Xfeatures to handle checksums and caching.
X
XWWW: https://github.com/dalmatinerdb/dalmatinerdb
b2b7fe8189c1a7d148f7f72cffd9df5e
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment