2014-03-09 11:05:39 +00:00
|
|
|
# Template file for 'mongodb'
|
|
|
|
pkgname=mongodb
|
2014-07-03 20:26:28 +00:00
|
|
|
version=2.6.3
|
2014-07-15 14:56:42 +00:00
|
|
|
revision=2
|
2014-03-09 11:05:39 +00:00
|
|
|
hostmakedepends="scons"
|
2014-07-15 14:56:42 +00:00
|
|
|
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel gperftools-devel v8-3.16-devel"
|
2014-03-09 11:05:39 +00:00
|
|
|
conf_files="/etc/mongodb/mongodb.conf"
|
|
|
|
systemd_services="mongodb.service on"
|
|
|
|
system_accounts="mongodb"
|
|
|
|
mongodb_homedir="/var/lib/mongodb"
|
|
|
|
short_desc="high-performance, schema-free document-oriented database"
|
|
|
|
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-07-03 20:26:28 +00:00
|
|
|
checksum="77bd9ec1b3aba25494633b40c21e9e8623d7b7d2b3be5ab0b2315b627a238301"
|
2014-03-09 11:05:39 +00: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 20:26:28 +00:00
|
|
|
--sharedclient \
|
|
|
|
--disable-warnings-as-errors"
|
2014-05-15 09:01:46 +00:00
|
|
|
|
2014-07-15 14:56:42 +00:00
|
|
|
# XXX
|
|
|
|
only_for_archs="i686 x86_64"
|
2014-03-09 11:05:39 +00:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
find . -name SConstruct -print0 | xargs -0 sed -i "s/-Werror/-Wno-error/g"
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2014-03-09 11:29:24 +00:00
|
|
|
scons all ${makejobs} \
|
2014-03-09 11:05:39 +00:00
|
|
|
--cc=$CC \
|
|
|
|
--cxx=$CXX \
|
2014-03-09 11:37:30 +00:00
|
|
|
--ld=$CXX \
|
2014-03-09 11:05:39 +00:00
|
|
|
--libpath="${XBPS_CROSS_BASE}/usr/lib" \
|
|
|
|
--cpppath="${XBPS_CROSS_BASE}/usr/include" \
|
|
|
|
--prefix="/usr" \
|
|
|
|
$_scons_args
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-07-15 14:56:42 +00:00
|
|
|
scons install \
|
2014-03-09 11:05:39 +00:00
|
|
|
--cc=$CC \
|
|
|
|
--cxx=$CXX \
|
2014-03-09 11:37:30 +00:00
|
|
|
--ld=$CXX \
|
2014-03-09 11:05:39 +00:00
|
|
|
--libpath=${XBPS_CROSS_BASE}/usr/lib \
|
|
|
|
--cpppath=${XBPS_CROSS_BASE}/usr/include \
|
|
|
|
--prefix="${DESTDIR}/usr" \
|
|
|
|
$_scons_args
|
|
|
|
|
|
|
|
vinstall "${FILESDIR}/mongodb.conf" 644 "etc/mongodb"
|
|
|
|
vinstall "${FILESDIR}/mongodb.service" 644 "usr/lib/systemd/system"
|
|
|
|
}
|