63 lines
1.6 KiB
Bash
63 lines
1.6 KiB
Bash
# Template file for 'mongodb'
|
|
pkgname=mongodb
|
|
version=3.0.5
|
|
revision=1
|
|
hostmakedepends="scons"
|
|
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel gperftools-devel"
|
|
conf_files="/etc/mongodb/mongodb.conf"
|
|
system_accounts="mongodb"
|
|
mongodb_homedir="/var/lib/mongodb"
|
|
short_desc="High-performance, schema-free document-oriented database"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
homepage="http://www.mongodb.org"
|
|
license="AGPL-3"
|
|
distfiles="http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz"
|
|
checksum=05b16a7991aa65b1d396a3dc622107fba3216fffa8b9ed0817e76ae95f5f7fdb
|
|
make_dirs="
|
|
/var/lib/mongodb 0700 mongodb mongodb
|
|
/var/log/mongodb 0750 mongodb mongodb"
|
|
wrksrc="mongodb-src-r${version}"
|
|
_scons_args=" --use-system-boost \
|
|
--use-system-pcre \
|
|
--use-system-snappy \
|
|
--use-system-tcmalloc \
|
|
--ssl \
|
|
--c++11=on \
|
|
--variant-dir=void \
|
|
--nostrip \
|
|
--disable-warnings-as-errors"
|
|
# --use-system-v8 \ # disabled - configure error
|
|
# ETOOHUGE
|
|
nodebug=1
|
|
|
|
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/10684/steps/shell_3/logs/stdio"
|
|
|
|
do_configure() {
|
|
find . -name SConstruct -print0 | xargs -0 sed -i "s/-Werror/-Wno-error/g"
|
|
}
|
|
|
|
do_build() {
|
|
scons core ${makejobs} \
|
|
--cc=$CC \
|
|
--cxx=$CXX \
|
|
--ld=$CXX \
|
|
--libpath="${XBPS_CROSS_BASE}/usr/lib" \
|
|
--cpppath="${XBPS_CROSS_BASE}/usr/include" \
|
|
--prefix="/usr" \
|
|
$_scons_args
|
|
}
|
|
|
|
do_install() {
|
|
scons install \
|
|
--cc=$CC \
|
|
--cxx=$CXX \
|
|
--ld=$CXX \
|
|
--libpath=${XBPS_CROSS_BASE}/usr/lib \
|
|
--cpppath=${XBPS_CROSS_BASE}/usr/include \
|
|
--prefix="${DESTDIR}/usr" \
|
|
$_scons_args
|
|
|
|
vinstall ${FILESDIR}/mongodb.conf 644 etc/mongodb
|
|
|
|
vsv mongodb
|
|
}
|