summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2012-12-07 17:17:59 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2012-12-07 17:17:59 +0000
commitc049e5edab6d17c2f16d678e3530ad9d83a58dd2 (patch)
treeb4001434ecd419a8780a85b1bc62f41e377889ab /devel
parentUpdate to 6.1.1 (diff)
Add SMACK, low-level I/O storage library which packs data.
Submitted by: Gvozdikov Veniamin Feature safe: yes
Notes
Notes: svn path=/head/; revision=308439
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/smack/Makefile40
-rw-r--r--devel/smack/distinfo2
-rw-r--r--devel/smack/pkg-descr13
-rw-r--r--devel/smack/pkg-plist14
5 files changed, 70 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index bdf4cda7a7c3..774128be6ce2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4085,6 +4085,7 @@
SUBDIR += simulavr
SUBDIR += skalibs
SUBDIR += slf4j
+ SUBDIR += smack
SUBDIR += smake
SUBDIR += smc
SUBDIR += sml_tk
diff --git a/devel/smack/Makefile b/devel/smack/Makefile
new file mode 100644
index 000000000000..8d5b1cd36855
--- /dev/null
+++ b/devel/smack/Makefile
@@ -0,0 +1,40 @@
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
+# $FreeBSD$
+
+PORTNAME= smack
+PORTVERSION= 0.5.0
+CATEGORIES= devel
+
+MAINTAINER= g.veniamin@googlemail.com
+COMMENT= Low-level I/O storage library which packs data
+
+LICENSE= GPLv2
+
+LIB_DEPENDS= boost_iostreams:${PORTSDIR}/devel/boost-libs \
+ snappy:${PORTSDIR}/archivers/snappy
+
+USE_GITHUB= yes
+GH_ACCOUNT= zloidemon
+GH_COMMIT= 72c81bf
+GH_TAGNAME= master
+
+USE_CMAKE= yes
+USE_LDCONFIG= yes
+
+OPTIONS_DEFINE= EXAMPLES
+
+.include <bsd.port.options.mk>
+
+.if ${OSVERSION} < 802515 || ${OSVERSION} >= 900000 && ${OSVERSION} < 900501
+BROKEN= requires posix_fadvise(2)
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+PLIST_SUB= EXAMPLES=""
+CMAKE_ARGS= -DENABLE_EXAMPLES=ON
+.else
+CMAKE_ARGS= -DENABLE_EXAMPLES=OFF
+PLIST_SUB= EXAMPLES="@comment "
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/smack/distinfo b/devel/smack/distinfo
new file mode 100644
index 000000000000..153f5b5efce3
--- /dev/null
+++ b/devel/smack/distinfo
@@ -0,0 +1,2 @@
+SHA256 (smack-0.5.0.tar.gz) = 82807d3bd6700fbd00a49400e6d1aa7509c6aff6b1e9bfe1a1a973d63e8117f6
+SIZE (smack-0.5.0.tar.gz) = 42384
diff --git a/devel/smack/pkg-descr b/devel/smack/pkg-descr
new file mode 100644
index 000000000000..6af133c8b754
--- /dev/null
+++ b/devel/smack/pkg-descr
@@ -0,0 +1,13 @@
+SMACK is a low-level I/O storage library which packs data into sorted blobs,
+compressed with zlib, bzip2, or snappy.
+
+It was created to host huge amount of rather small compressible data in
+Elliptics, providing extremely fast write performance (tens of thousands RPS
+per node with hundreds of millions already written objects); its backend
+architecture was implemented with HBase in mind, but some changes were
+tested and made different.
+
+Data is compressed and sorted by key, that is, you get HBase-like scans for
+free (although this is not yet exported to Elliptics API).
+
+WWW: http://www.reverbrain.com/smack/
diff --git a/devel/smack/pkg-plist b/devel/smack/pkg-plist
new file mode 100644
index 000000000000..5dd018daa4d4
--- /dev/null
+++ b/devel/smack/pkg-plist
@@ -0,0 +1,14 @@
+%%EXAMPLES%%bin/smack_reader
+%%EXAMPLES%%bin/smack_test
+include/smack/base.hpp
+include/smack/blob.hpp
+include/smack/filter.hpp
+include/smack/lz4.h
+include/smack/lz4.hpp
+include/smack/lz4hc.h
+include/smack/smack.h
+include/smack/smack.hpp
+include/smack/snappy.hpp
+lib/libsmack.so
+lib/libsmack.so.0.5
+@dirrm include/smack