2014-03-09 12:05:39 +01:00
|
|
|
# Template file for 'mongodb'
|
|
|
|
pkgname=mongodb
|
2014-10-12 23:06:06 +02:00
|
|
|
version=2.6.5
|
2014-10-15 19:31:04 +02:00
|
|
|
revision=2
|
2014-03-09 12:05:39 +01:00
|
|
|
hostmakedepends="scons"
|
2014-07-15 16:56:42 +02:00
|
|
|
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel gperftools-devel v8-3.16-devel"
|
2014-03-09 12:05:39 +01:00
|
|
|
conf_files="/etc/mongodb/mongodb.conf"
|
|
|
|
system_accounts="mongodb"
|
|
|
|
mongodb_homedir="/var/lib/mongodb"
|
2014-08-28 18:52:19 +02:00
|
|
|
short_desc="High-performance, schema-free document-oriented database"
|
2014-03-09 12:05:39 +01:00
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
homepage="http://www.mongodb.org"
|
|
|
|
license="AGPL-3"
|
|
|
|
distfiles="http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz"
|
2014-10-12 23:06:06 +02:00
|
|
|
checksum="55d6cb624fe83935564a5e9cd38f2f94b2ec62745c5bd9c0539e4846ae9fa86c"
|
2014-03-09 12:05:39 +01:00
|
|
|
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 \
|
|
|
|
--use-system-v8 \
|
|
|
|
--ssl \
|
2014-07-03 22:26:28 +02:00
|
|
|
--sharedclient \
|
2014-08-28 18:52:19 +02:00
|
|
|
--variant-dir=void \
|
|
|
|
--nostrip \
|
2014-07-03 22:26:28 +02:00
|
|
|
--disable-warnings-as-errors"
|
2014-08-21 07:36:00 +02:00
|
|
|
build_options="systemd"
|
2014-10-15 19:34:05 +02:00
|
|
|
# ETOOHUGE
|
|
|
|
disable_debug=1
|
2014-05-15 11:01:46 +02:00
|
|
|
|
2014-03-09 12:05:39 +01:00
|
|
|
do_configure() {
|
|
|
|
find . -name SConstruct -print0 | xargs -0 sed -i "s/-Werror/-Wno-error/g"
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2014-03-09 12:29:24 +01:00
|
|
|
scons all ${makejobs} \
|
2014-03-09 12:05:39 +01:00
|
|
|
--cc=$CC \
|
|
|
|
--cxx=$CXX \
|
2014-03-09 12:37:30 +01:00
|
|
|
--ld=$CXX \
|
2014-03-09 12:05:39 +01:00
|
|
|
--libpath="${XBPS_CROSS_BASE}/usr/lib" \
|
|
|
|
--cpppath="${XBPS_CROSS_BASE}/usr/include" \
|
|
|
|
--prefix="/usr" \
|
|
|
|
$_scons_args
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-07-15 16:56:42 +02:00
|
|
|
scons install \
|
2014-03-09 12:05:39 +01:00
|
|
|
--cc=$CC \
|
|
|
|
--cxx=$CXX \
|
2014-03-09 12:37:30 +01:00
|
|
|
--ld=$CXX \
|
2014-03-09 12:05:39 +01:00
|
|
|
--libpath=${XBPS_CROSS_BASE}/usr/lib \
|
|
|
|
--cpppath=${XBPS_CROSS_BASE}/usr/include \
|
|
|
|
--prefix="${DESTDIR}/usr" \
|
|
|
|
$_scons_args
|
|
|
|
|
2014-10-15 19:31:04 +02:00
|
|
|
vinstall ${FILESDIR}/mongodb.conf 644 etc/mongodb
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/mongodb.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2014-10-15 11:57:01 +02:00
|
|
|
|
|
|
|
vsv mongodb
|
2014-03-09 12:05:39 +01:00
|
|
|
}
|