~xdavidwu/apkbuilds

ref: d6b266a75f91bb52966fc8f0d4a7ecbb445f25f5 apkbuilds/mongodb/APKBUILD -rw-r--r-- 2.7 KiB
d6b266a7xdavidwu mongodb: import from aports/non-free 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Mikael Jenkler <info@jenkler.se>
pkgname=mongodb
pkgver=4.2.9
pkgrel=0
pkgdesc="A high-performance, open source, schema-free document-oriented database"
url="http://www.mongodb.org"
arch="x86_64"
options="!check"
license='SSPL-1.0'
makedepends="asio-dev boost-dev curl-dev cyrus-sasl-dev libpcap-dev openssl-dev pcre-dev
	py3-cheetah py3-psutil py3-setuptools py3-yaml snappy-dev snowball-dev scons yaml-cpp-dev zlib-dev"
source="http://downloads.mongodb.org/src/mongodb-src-r$pkgver.tar.gz
	fix-backtrace.patch
	fix-default-stacksize.patch
	fix-elf-native-class.patch
	fix-kms_request.patch
	fix-mozjs.patch
	fix-processinfo_linux.patch
	fix-resolv.patch
	fix-strerror_r.patch
	fix-wiredtiger.patch
"

builddir="$srcdir"/$pkgname-src-r$pkgver

build() {
	export SCONSFLAGS="$MAKEFLAGS"
	scons --prefix=/usr \
		--allocator=system \
		--disable-warnings-as-errors \
		--ssl \
		--use-sasl-client \
		--use-system-boost \
		--use-system-pcre \
		--use-system-snappy \
		--use-system-stemmer \
		--use-system-yaml \
		--use-system-zlib \
		mongo mongod
}

package() {
	install -Dm755 build/opt/mongo/mongo "$pkgdir/usr/bin/mongo"
	install -Dm755 build/opt/mongo/mongod "$pkgdir/usr/bin/mongod"
}

sha512sums="ce577bb5598619894ef90dd063db51780b4b452c9c9458f247e9188b4f04d6b2f3972900cce4ea977ce656a022d7e7ad964cb3bd67e4e17f6cf08841b6f610ec  mongodb-src-r4.2.9.tar.gz
4d75d452db6a2e175573cda398dfc0709997b0925a50ab202c806dc6ff795f54c7376bf25f2a455344e80c5bba5439bf3bee0af02c54c81039b1a68acbdffb0a  fix-backtrace.patch
23f5b74715f41ff0998f07ad207e773b6fb06e375fe558fb812bc009e01367fbfd8a91391e2d1749d3bd4b9dc430ad3cdcd47163aadb6eb100869d3c9ef4a029  fix-default-stacksize.patch
bb314e320825bc70a77db5a9ae07848fd1cec46edb41e8d94ce1effb0e5e0115636755a484924356c15d60f0e623c4b34197ef759accf9d156bcd2d11dbf5d61  fix-elf-native-class.patch
4f8fd4d3fee9978a9f4598985ddf5c5634676b9fa07070de5d72353c13bcf0f257f8609a8aa78fa065827c4d18c0e8cde11ec2eb625cf513e35cf6fb0e3b490f  fix-kms_request.patch
adb8f5af63ca02194b54106b658acf4543362be29f63a5ec74a7fb717cbfe3e58df3e04617420b2285c821a56b7930d52171b9d5164c2046f63d5c1a39279fed  fix-mozjs.patch
6570ac58293501d7d15e035f1cb11b641ea7aa524aab749e91b70acb2cad44b1516028dadbca090d157156e496bd8266455e5929109bb502e830b22dabf1b518  fix-processinfo_linux.patch
ecee715dc51c485081fd216e1bb8f54d2632519b352781ca5f0a1d715864733fecf17da6603cccf01c3cabbce135051e7931116fc418d5a315dc8f592a31350c  fix-resolv.patch
ef2b0e0e0f46c688dd487075ebfb294caa114af0ad291a31eb30768eab50aa6c93ce9741ee0f60412375ff7ae6db04c40163252270386a12aabe7f9b375e6e0d  fix-strerror_r.patch
ecbe6cb579b33dd4888096712f150772db06fd38219ca2a7679b1dc1ee73b0c3f5ee498af12ecd0265b5231a9fe6b7c12b2c1d606ed04caa6aa00c3ad3fe925a  fix-wiredtiger.patch"