mongodb90-bin

LOW
maintainer lifespirit 0 votes scanned 2026-10-21 17:32:44.330620
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1#Maintainer: Ali Molaei <ali dot molaei at protonmail dot com>
2#Maintainer: Rafael Fontenelle <rafaelff at gnome dot org>
3#Maintainer: lifespirit <life at crabs dot com>
4
5pkgname="mongodb90-bin"
6pkgver="9.0.4"
7_basever="9.0"
8_basedist="resolute"
9pkgrel=1
10pkgdesc="A high-performance, open source, schema-free document-oriented database"
11arch=("x86_64" "aarch64")
12url="https://www.mongodb.com/"
13license=("SSPL-1.0")
14depends=(mongosh-bin curl openssl)
15makedepends=(chrpath)
16optdepends=("mongodb-tools: The MongoDB tools provide import, export, and diagnostic capabilities.")
17provides=("mongodb=$pkgver")
18conflicts=("mongodb" "mongodb-shell-bin")
19backup=("etc/mongodb.conf")
20
21_repo_url=https://repo.mongodb.org/apt/ubuntu/dists/${_basedist}/mongodb-org/${_basever}/multiverse
22source=(
23 "mongodb.sysusers"
24 "mongodb.tmpfiles"
25 "LICENSE"
26)
27source_x86_64=(
28 mongodb-org-server_${pkgver}_x86_64.deb::"${_repo_url}/binary-amd64/mongodb-org-server_${pkgver}_amd64.deb"
29 mongodb-org-mongos_${pkgver}_x86_64.deb::"${_repo_url}/binary-amd64/mongodb-org-mongos_${pkgver}_amd64.deb"
30)
31source_aarch64=(
32 mongodb-org-server_${pkgver}_aarch64.deb::"${_repo_url}/binary-arm64/mongodb-org-server_${pkgver}_arm64.deb"
33 mongodb-org-mongos_${pkgver}_aarch64.deb::"${_repo_url}/binary-arm64/mongodb-org-mongos_${pkgver}_arm64.deb"
34)
35noextract=(
36 mongodb-org-server_${pkgver}_${CARCH}.deb
37 mongodb-org-mongos_${pkgver}_${CARCH}.deb
38)
39
40sha256sums=('47b884569102f7c79017ee78ef2e98204a25aa834c0ee7d5d62c270ab05d4e2b'
41 '51ee1e1f71598aad919db79a195778e6cb6cfce48267565e88a401ebc64497ac'
42 '09d99ca61eb07873d5334077acba22c33e7f7d0a9fa08c92734e0ac8430d6e27')
43
44sha256sums_x86_64=('b70284cda1682f3013c6941fec480833fb6cc3a13f20d12d96b163c59409daaf'
45 'e5e8de048d408cd2585df91bfc28af3cded6536b920251d1845e3f0e800b75b4')
46sha256sums_aarch64=('faba92b12c3e8289a4f4cbd7c66f89ee4c69538a57820181ef77a342a86cbb08'
47 '35ac17be33f728aa1712bed764234575cafeb29cde9a83bbd6beffedbabaa01b')
48
49prepare() {
50 mkdir -p output
51 bsdtar -O -xf mongodb-org-server_${pkgver}_${CARCH}.deb data.tar.zst | bsdtar -C output -xJf - #server extracted
52 bsdtar -O -xf mongodb-org-mongos_${pkgver}_${CARCH}.deb data.tar.zst | bsdtar -C output -xJf - #mongos extracted
53
54 # Remove insecure RUNPATH '$ORIGIN/../lib' as reported by namcap
55 chrpath -d output/usr/bin/mongos
56
57 # Keep historical Arch dbPath
58 sed -i 's|dbPath: /var/lib/mongo$|dbPath: /var/lib/mongodb|' output/etc/mongod.conf
59
60 # Keep historical Arch conf file name
61 sed -i 's|/etc/mongod.conf|/etc/mongodb.conf|' output/usr/lib/systemd/system/mongod.service
62
63 # Keep historical Arch user name (no need for separate daemon group name)
64 sed -i 's/User=mongod$/User=mongodb/' output/usr/lib/systemd/system/mongod.service
65 sed -i 's/Group=mongod$/Group=mongodb/' output/usr/lib/systemd/system/mongod.service
66
67 # Avoid legacy PID filepath
68 sed -i 's|/var/run/|/var/|' output/usr/lib/systemd/system/mongod.service
69
70 # Remove sysconfig file, used by upstream's init.d script not used on Arch
71 sed -i '/^EnvironmentFile=/d' output/usr/lib/systemd/system/mongod.service
72
73 # Make systemd wait as long as it takes for MongoDB to start
74 # If MongoDB needs a long time to start, prevent systemd from restarting it every 90 seconds
75 # See: https://jira.mongodb.org/browse/SERVER-38086
76 sed -i 's/\[Service]/[Service]\nTimeoutStartSec=infinity/' output/usr/lib/systemd/system/mongod.service
77}
78
79package() {
80 install -Dm644 output/etc/mongod.conf "$pkgdir/etc/mongodb.conf"
81 install -Dm644 output/usr/lib/systemd/system/mongod.service "$pkgdir/usr/lib/systemd/system/mongodb.service"
82 install -Dm755 output/usr/bin/* -t "$pkgdir/usr/bin"
83 install -Dm644 output/usr/share/man/man1/* -t "$pkgdir/usr/share/man/man1"
84 install -Dm644 mongodb.sysusers "$pkgdir/usr/lib/sysusers.d/mongodb.conf"
85 install -Dm644 mongodb.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/mongodb.conf"
86 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
87}
88

Scan history

Scanned at (UTC)SeverityRules
2026-10-21 17:32:44 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion