open5gs
LOW
maintainer lori28167
0 votes
scanned 2026-09-08 11:17:13.613315
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: Lorenzo Cozzaglio <lorenzocozzaglio.10@gmail.com>
2
3
pkgname=open5gs
4
pkgver=2.8.0
5
pkgrel=1
6
pkgdesc="C-language Open Source implementation of 5G Core and EPC (evolved packet core)"
7
arch=('x86_64' 'aarch64')
8
url="https://open5gs.org/"
9
license=('AGPL3')
10
depends=('gnutls' 'openssl' 'libnghttp2' 'libmicrohttpd' 'curl' 'talloc' 'libyaml'
11
'lksctp-tools' 'mongo-c-driver')
12
makedepends=('meson' 'ninja' 'cmake' 'flex' 'bison' 'python')
13
backup=('etc/open5gs/mme.yaml' 'etc/open5gs/sgwc.yaml' 'etc/open5gs/sgwu.yaml'
14
'etc/open5gs/smf.yaml' 'etc/open5gs/amf.yaml' 'etc/open5gs/upf.yaml'
15
'etc/open5gs/hss.yaml' 'etc/open5gs/pcrf.yaml' 'etc/open5gs/nrf.yaml'
16
'etc/open5gs/scp.yaml' 'etc/open5gs/sepp1.yaml' 'etc/open5gs/sepp2.yaml'
17
'etc/open5gs/ausf.yaml' 'etc/open5gs/udm.yaml' 'etc/open5gs/udr.yaml'
18
'etc/open5gs/pcf.yaml' 'etc/open5gs/nssf.yaml' 'etc/open5gs/bsf.yaml'
19
'etc/freeDiameter/mme.conf' 'etc/freeDiameter/hss.conf'
20
'etc/freeDiameter/smf.conf' 'etc/freeDiameter/pcrf.conf'
21
'etc/logrotate.d/open5gs')
22
23
# Open5GS builds a handful of forked dependencies (libtins, freeDiameter,
24
# prometheus-client-c) as meson/cmake subprojects. The official release
25
# tarball already vendors them under subprojects/, so the build is fully
26
# offline (arch-meson defaults to --wrap-mode nodownload) with no extra
27
# sources needed.
28
source=("$pkgname-$pkgver.tar.gz::https://github.com/open5gs/open5gs/archive/refs/tags/v$pkgver.tar.gz"
29
"open5gs.sysusers"
30
"open5gs.tmpfiles")
31
sha256sums=('a04d66f66f6df62a376a2434a05a7268e08e4fc0cc1b9c56221467689a8b56ab'
32
'SKIP'
33
'SKIP')
34
35
build() {
36
arch-meson "$pkgname-$pkgver" build
37
meson compile -C build
38
}
39
40
package() {
41
meson install -C build --destdir "$pkgdir" --skip-subprojects=libtins,prometheus-client-c
42
43
# The upstream meson install scripts for config/TLS/hnet material are
44
# DESTDIR-aware and deliberately no-op under packaging (DESTDIR set), so
45
# config trees have to be copied in manually from the generated build dir.
46
install -dm755 "$pkgdir/etc/open5gs" "$pkgdir/etc/freeDiameter"
47
cp -a build/configs/open5gs/. "$pkgdir/etc/open5gs/"
48
cp -a build/configs/freeDiameter/*.conf "$pkgdir/etc/freeDiameter/"
49
find "$pkgdir/etc/open5gs" "$pkgdir/etc/freeDiameter" -type d -exec chmod 755 {} +
50
find "$pkgdir/etc/open5gs" "$pkgdir/etc/freeDiameter" -type f -exec chmod 644 {} +
51
52
install -Dm644 -t "$pkgdir/usr/lib/systemd/system" build/configs/systemd/open5gs-*.service
53
install -Dm644 -t "$pkgdir/usr/lib/systemd/network" \
54
build/configs/systemd/99-open5gs.netdev build/configs/systemd/99-open5gs.network
55
install -Dm644 build/configs/logrotate/open5gs "$pkgdir/etc/logrotate.d/open5gs"
56
57
install -Dm644 open5gs.sysusers "$pkgdir/usr/lib/sysusers.d/open5gs.conf"
58
install -Dm644 open5gs.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/open5gs.conf"
59
60
install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
61
}
62
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-08 11:17:13 | Low | 1 |