void-packages/srcpkgs/mongodb/template

58 lines
1.5 KiB
Plaintext
Raw Normal View History

2014-03-09 12:05:39 +01:00
# Template file for 'mongodb'
pkgname=mongodb
version=2.4.9
revision=1
hostmakedepends="scons"
makedepends="boost-devel pcre-devel snappy-devel openssl-devel libpcap-devel gperftools-devel v8-3.16-devel"
depends=""
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"
checksum=40755d66419a5c9f0d9909a079b092195825773ded188ded3faf07025d02600f
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 \
--sharedclient"
do_configure() {
find . -name SConstruct -print0 | xargs -0 sed -i "s/-Werror/-Wno-error/g"
}
do_build() {
scons all -j ${makejobs} \
--cc=$CC \
--cxx=$CXX \
--ld=$LD \
--libpath="${XBPS_CROSS_BASE}/usr/lib" \
--cpppath="${XBPS_CROSS_BASE}/usr/include" \
--prefix="/usr" \
$_scons_args
}
do_install() {
scons install -j ${makejobs} \
--cc=$CC \
--cxx=$CXX \
--ld=$LD \
--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"
}