blob: 2e21e302c50d63c69125657f5b54b5771592f396 (
plain)
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
|
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
pkgname=mongodb40-bin
pkgver=4.0.28
pkgrel=2
pkgdesc='A high-performance, open source, schema-free document-oriented database'
arch=("x86_64")
url='https://www.mongodb.com/'
license=('custom')
depends=('curl' 'openssl-1.1')
provides=("mongodb=$pkgver")
conflicts=("mongodb" "mongodb-bin")
optdepends=("mongodb-tools: The MongoDB tools provide import, export, and diagnostic capabilities.")
source=("https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/${pkgver%.*}/multiverse/binary-amd64/mongodb-org-shell_${pkgver}_amd64.deb"
"https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/${pkgver%.*}/multiverse/binary-amd64/mongodb-org-server_${pkgver}_amd64.deb"
"https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/${pkgver%.*}/multiverse/binary-amd64/mongodb-org-mongos_${pkgver}_amd64.deb"
mongodb.service
mongodb.conf
mongodb.sysusers
mongodb.tmpfiles
LICENSE)
b2sums=('658e33ac75651f495a46e5874dc59bcd4eddd5003252ca1f15e65d394e6313b0fe9b3d39f3a80b94bc4750ecf8da1764a66eb7621aa09a38471dc38f9f02053e'
'f9153b3ae5f6bbe2400685b5c82117edf91f8a2e1306814df174a84e39bb3a79b9f0736080791cc3529748f2b32a0d1a5daa6226857ccc29f1f460ee2f0a91df'
'9f622544f4b7a34a45923ec9869dd4f15670a18ac2c1eccefa6b45c5c4d8f1c9d6f633d69a30df9ba2221bafbfa73648b03c4197f823e3f216604217bc295eec'
'ea55bb2f08066d7399e9e66f981f86395f6a177faa198c66f93ea2965ea80d61c170336a4f49fc7f1f855d3abd5e7cf3862d58a2be4a7708c0582fb4ff80b255'
'6187573d7ac6da911030b215ef98173f4317d3f056ae9a2dfe7ce22d4d329355f49d373c253949048ad7a20d54750f0df95ade83c50bba0af5242b41cb8d40a9'
'c7f301e1ac6856ec54bdbc73c6d4b212816c3b058297f30dce1619889aee7a5d99f7c46868bb47dacb70a024be948d7350bb7d2be0e7be4257957b2ad75a93ab'
'2f435b6a7bb2fc6efc8f42cfc9b36dc0eccb2230ae79cad3fcbe93f1ed12e7eb27066c73a1a0f1ebfdadc23f2a51d43468bfd17ba0d9b19cd3cbd75b68db55b1'
'f9deb8582f496190bf815082fb65f1b875ffd1a2b782a8fa6a24f39df5eacb9e2206d4ffe5bd09d7c2d3e85f2519387c45f1b10b21b9c7d50666ee053752287f')
backup=("etc/mongodb.conf")
prepare() {
mkdir -p output
tar -xvf data.tar.xz -C output #mongos extracted
ar x mongodb-org-server_${pkgver}_amd64.deb
tar -xvf data.tar.xz -C output #server extracted
ar x mongodb-org-shell_${pkgver}_amd64.deb
tar -xvf data.tar.xz -C output #shell extracted
}
package() {
install -dm755 "${pkgdir}"/usr/share/man
cp -r output/usr/bin "${pkgdir}"/usr/
cp -r output/usr/share/man/man1 "${pkgdir}"/usr/share/man/
install -Dm644 mongodb.conf "${pkgdir}"/etc/mongodb.conf
install -Dm644 mongodb.service "${pkgdir}"/usr/lib/systemd/system/mongodb.service
install -Dm644 mongodb.sysusers "${pkgdir}"/usr/lib/sysusers.d/mongodb.conf
install -Dm644 mongodb.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/mongodb.conf
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|