void-packages/srcpkgs/mongodb/template

68 lines
1.7 KiB
Text
Raw Normal View History

2014-03-09 11:05:39 +00:00
# Template file for 'mongodb'
pkgname=mongodb
2014-12-11 08:34:53 +00:00
version=2.6.6
revision=1
2014-03-09 11:05:39 +00:00
hostmakedepends="scons"
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"
system_accounts="mongodb"
mongodb_homedir="/var/lib/mongodb"
2014-08-28 16:52:19 +00:00
short_desc="High-performance, schema-free document-oriented database"
2014-03-09 11:05:39 +00: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-12-11 08:34:53 +00:00
checksum="755d703c3a0b0f2f6486b2ddbf286bfb5e174faeda18dcbea2da63dd93010b6a"
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 \
2014-08-28 16:52:19 +00:00
--variant-dir=void \
--nostrip \
2014-07-03 20:26:28 +00:00
--disable-warnings-as-errors"
2014-08-21 05:36:00 +00:00
build_options="systemd"
2014-10-15 17:34:05 +00:00
# ETOOHUGE
2014-11-16 10:53:12 +00:00
nodebug=1
2014-11-21 00:59:27 +00:00
update_site=$homepage/downloads
update_pattern="mongodb-src-r\K[\d.]+(?=.tar)"
2014-05-15 09:01:46 +00:00
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() {
scons all ${makejobs} \
2014-03-09 11:05:39 +00:00
--cc=$CC \
--cxx=$CXX \
--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() {
scons install \
2014-03-09 11:05:39 +00:00
--cc=$CC \
--cxx=$CXX \
--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
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/mongodb.service 644 usr/lib/systemd/system
fi
2014-10-15 09:57:01 +00:00
vsv mongodb
2014-03-09 11:05:39 +00:00
}