aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-04-21 14:15:22 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-04-21 14:44:37 +0000
commit24bfdd2da0799ef4557fdc3588a701fcc0f6c8ee (patch)
treec29e693563384d19b70ffa01a54cea2364eec416 /community
parentce70b431e56abd102144a28b14bdd47d26457dc6 (diff)
downloadaports-24bfdd2da0799ef4557fdc3588a701fcc0f6c8ee.tar.bz2
aports-24bfdd2da0799ef4557fdc3588a701fcc0f6c8ee.tar.xz
community/wiredtiger: moved from testing
Diffstat (limited to 'community')
-rw-r--r--community/wiredtiger/10-fix-code-generator.patch11
-rw-r--r--community/wiredtiger/APKBUILD55
-rw-r--r--community/wiredtiger/makemake-remove-libtool-version.patch11
3 files changed, 77 insertions, 0 deletions
diff --git a/community/wiredtiger/10-fix-code-generator.patch b/community/wiredtiger/10-fix-code-generator.patch
new file mode 100644
index 0000000000..618106f511
--- /dev/null
+++ b/community/wiredtiger/10-fix-code-generator.patch
@@ -0,0 +1,11 @@
+--- orig/wiredtiger-2.6.0/dist/s_typedef
++++ wiredtiger-2.6.0/dist/s_typedef
+@@ -21,7 +21,7 @@
+ l=`ls ../src/include/*.[hi] ../src/include/*.in |
+ sed -e '/wiredtiger.*/d' -e '/queue.h/d'`
+ egrep -h \
+- '^[ ]*(((struct|union)[ ].*__wt_.*{)|WT_PACKED_STRUCT_BEGIN)' \
++ '^[ ]*(((struct|union)[ ].*__wt_.*\{)|WT_PACKED_STRUCT_BEGIN)' \
+ $l |
+ sed -e 's/WT_PACKED_STRUCT_BEGIN(\(.*\))/struct \1 {/' \
+ -e 's/WT_COMPILER_TYPE_ALIGN(.*)[ ]*//' \
diff --git a/community/wiredtiger/APKBUILD b/community/wiredtiger/APKBUILD
new file mode 100644
index 0000000000..3708d0669b
--- /dev/null
+++ b/community/wiredtiger/APKBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Philipp Andronov <filipp.andronov@gmail.com>
+# Contributor: Marc Vertes <mvertes@free.fr>
+
+pkgname=wiredtiger
+mongodb_version=3.4.3
+pkgver=2.9.1.$mongodb_version
+pkgrel=0
+pkgdesc="High performance, scalable, production quality, NoSQL, Open Source extensible platform for data management"
+url="http://www.wiredtiger.com"
+arch="x86_64"
+license="(GPLv2 or GPLv3) and MIT and BSD"
+depends=""
+depends_dev="autoconf automake libtool linux-headers"
+makedepends="$depends_dev lz4-dev zlib-dev snappy-dev libexecinfo-dev"
+
+options=""
+subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
+
+install=""
+source="$pkgname-$pkgver-mongodb-$mongodb_version.tar.gz::https://github.com/wiredtiger/wiredtiger/archive/mongodb-$mongodb_version.tar.gz
+ makemake-remove-libtool-version.patch
+ 10-fix-code-generator.patch
+ "
+
+_builddir="$srcdir"/$pkgname-mongodb-$mongodb_version
+prepare() {
+ local i
+
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ sh autogen.sh || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --disable-static \
+ --enable-lz4 \
+ --with-builtins=zlib,snappy \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+sha512sums="5c16c52d223a5a87317cdbe71b3de19954eab97f79d6ac6bfb066d91d8c27377980601bbea34b91c26faecc98e6357243833323cf8648d9cd4b068b763db1246 wiredtiger-2.9.1.3.4.3-mongodb-3.4.3.tar.gz
+9eb56a81cbf0b8c695ab86d5c6aa319aee8e6ffc4d4ac94c5ecb17a639cab352f83fdf15db467d3f2961cd05fd00c2b96c3cc357daa32972dd07fb3dfa95852f makemake-remove-libtool-version.patch
+a24360c18a8dd677a1942fc66ecdfdb8bc514af6de3e19be822293fdc83c051c43f3270f91eaa4524f30b5bc82c6ecad5162ce5b3f5ff470bab4e1a5d9eb79ec 10-fix-code-generator.patch"
diff --git a/community/wiredtiger/makemake-remove-libtool-version.patch b/community/wiredtiger/makemake-remove-libtool-version.patch
new file mode 100644
index 0000000000..f401e85b91
--- /dev/null
+++ b/community/wiredtiger/makemake-remove-libtool-version.patch
@@ -0,0 +1,11 @@
+--- ./build_posix/makemake.orig
++++ ./build_posix/makemake
+@@ -25,7 +25,7 @@
+
+ # Write the list of sources.
+ echo
+-echo "libwiredtiger_la_LDFLAGS = -release @VERSION@"
++echo "libwiredtiger_la_LDFLAGS ="
+ echo "libwiredtiger_la_SOURCES ="
+ sed -e '/^[a-z]/!d' < ../dist/filelist | while read file cond; do
+ if test -n "$cond"; then