libosmocore-nosystemd-git-doc
libosmocore-nosystemd-git
scanned 2026-10-20 00:10:31.152894
The source is a Git repository from the project's official Gitea instance (gitea.osmocom.org), which is a legitimate and expected source for this software; building from a non-whitelisted but project-owned host is normal for AUR packages and does not constitute a significant security risk.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a Git repository from the project's official Gitea instance (gitea.osmocom.org), which is a legitimate and expected source for this software; building from a non-whitelisted but project-owned host is normal for AUR packages and does not constitute a significant security risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:33
source=("${_pkgname}::git+https://gitea.osmocom.org/osmocom/libosmocore.git")
PKGBUILD
1 offending line(s) highlighted# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
# Contributor: Vadim Yanitskiy
_pkgname=libosmocore
_pkgvariant=nosystemd
_pkgvcs=git
pkgbase="${_pkgname}-${_pkgvariant}-${_pkgvcs}"
pkgname=(
"${pkgbase}"
"${pkgbase}-doc"
)
pkgver=1.14.2+10.r5147.20260922.58c085f7d
pkgrel=1
pkgdesc="Osmocom core library (functions relating to mobile communication standards). Compiled without systemd logging dependency."
arch=(
'i686'
'x86_64'
)
url="https://osmocom.org/projects/libosmocore/wiki/Libosmocore"
license=('GPL-2.0-or-later')
makedepends=(
'autoconf'
'automake'
'doxygen' # to build the documentation.
'gcc'
'git'
'libtool'
'liburing'
'make'
'pkg-config'
'python'
)
source=("${_pkgname}::git+https://gitea.osmocom.org/osmocom/libosmocore.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
_ver="$(git describe --tags | sed 's|^[vV]||' | sed 's|-g[0-9a-f]*$||' | sed -E 's|-([0-9]*)$|+\1|')"
_rev="$(git rev-list --count HEAD)"
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
_hash="$(git rev-parse --short HEAD)"
if [ -z "${_ver}" ]; then
error "Could not determine version."
return 1
else
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
fi
}
prepare() {
cd "${srcdir}/${_pkgname}"
autoreconf -i
git log > "${srcdir}/git.log"
}
build() {
cd "${srcdir}/${_pkgname}"
./configure --prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--datadir=/usr/share \
--libexecdir=/usr/lib \
--localstatedir=/var \
--docdir="/usr/share/doc/${_pkgname}" \
--libdir=/usr/lib/ \
--disable-systemd-logging \
--disable-external-tests
make
}
# check() {
### NOTE: 2022-10-15: dtx and vty tests fail.
# cd "${srcdir}/${_pkgname}"
# make check
# }
_package_main() {
pkgdesc="${pkgdesc}"
arch=("${arch[@]}")
depends=(
'glibc'
'gnutls'
'libmnl'
'libusb'
'liburing'
'lksctp-tools'
'pcsclite'
'sh'
'talloc'
)
optdepends=(
"${_pkgname}-doc=${pkgver}: Documentation for this software."
)
provides=(
"${_pkgname}=${pkgver}"
"${_pkgname}-${_pkgvariant}=${pkgver}"
"${_pkgname}-${_pkgvcs}=${pkgver}"
)
conflicts=(
"${_pkgname}"
"${_pkgname}-${_pkgvariant}"
"${_pkgname}-${_pkgvcs}"
)
replaces=()
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
if [ -d "${pkgdir}/usr/share/doc" ]; then
msg2 "Removing documentation ..."
rm -R "${pkgdir}/usr/share/doc"
fi
msg2 "Installing license ..."
install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" COPYING
}
_package_docs() {
pkgdesc="Documentation for ${_pkgname}."
arch=('any')
depends=()
optdepends=(
"${_pkgname}=${pkgver}: The software this documentation is for."
)
provides=(
"${_pkgname}-doc=${pkgver}"
"${_pkgname}-doc-${_pkgvcs}=${pkgver}"
)
conflicts=(
"${_pkgname}-doc"
"${_pkgname}-doc-${_pkgvcs}"
)
replaces=()
cd "${srcdir}/${_pkgname}"
mkdir -p "${pkgdir}/staging"
mkdir -p "${pkgdir}/usr/share/doc"
make DESTDIR="${pkgdir}/staging" install
msg2 "Moving documentation in place and removing everything else ..."
mv "${pkgdir}/staging/usr/share/doc"/* "${pkgdir}/usr/share/doc"/
rm -R "${pkgdir}/staging"
msg2 "Installing git repository's information files ..."
install -Dvm644 -t "${pkgdir}/usr/share/doc/libosmocore" "README.md" "TODO-RELEASE" "${srcdir}/git.log"
}
eval "package_${pkgname}() { _package_main \"\$@\"; }"
eval "package_${pkgname}-doc() { _package_docs \"\$@\"; }"
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |
| 2026-10-12 00:18:51 | Low | 2 |
| 2026-10-11 00:26:05 | Low | 2 |
| 2026-10-10 00:11:52 | Low | 2 |
| 2026-10-09 00:05:33 | Low | 2 |
| 2026-10-08 00:28:03 | Low | 2 |
| 2026-10-07 00:21:34 | Low | 2 |
| 2026-10-06 00:13:36 | Low | 2 |
| 2026-10-05 00:08:03 | Low | 2 |
| 2026-10-04 00:18:08 | Low | 2 |
| 2026-10-03 00:23:04 | Low | 2 |
| 2026-10-02 00:00:32 | Low | 2 |
| 2026-10-01 00:02:06 | Low | 2 |