libosmocore-nosystemd-git

MEDIUM
maintainer dreieck 0 votes scanned 2026-09-05 16:00:23.828148
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

Medium source=() URL on a non-standard host 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
1# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2# Contributor: Vadim Yanitskiy
3
4_pkgname=libosmocore
5_pkgvariant=nosystemd
6_pkgvcs=git
7pkgbase="${_pkgname}-${_pkgvariant}-${_pkgvcs}"
8pkgname=(
9 "${pkgbase}"
10 "${pkgbase}-doc"
11)
12pkgver=1.14.2+4.r5141.20260731.2a26b47cb
13pkgrel=1
14pkgdesc="Osmocom core library (functions relating to mobile communication standards). Compiled without systemd logging dependency."
15arch=(
16 'i686'
17 'x86_64'
18)
19url="https://osmocom.org/projects/libosmocore/wiki/Libosmocore"
20license=('GPL-2.0-or-later')
21makedepends=(
22 'autoconf'
23 'automake'
24 'doxygen' # to build the documentation.
25 'gcc'
26 'git'
27 'libtool'
28 'liburing'
29 'make'
30 'pkg-config'
31 'python'
32)
33source=("${_pkgname}::git+https://gitea.osmocom.org/osmocom/libosmocore.git")
34sha256sums=('SKIP')
35
36pkgver() {
37 cd "${srcdir}/${_pkgname}"
38
39 _ver="$(git describe --tags | sed 's|^[vV]||' | sed 's|-g[0-9a-f]*$||' | sed -E 's|-([0-9]*)$|+\1|')"
40 _rev="$(git rev-list --count HEAD)"
41 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
42 _hash="$(git rev-parse --short HEAD)"
43
44 if [ -z "${_ver}" ]; then
45 error "Could not determine version."
46 return 1
47 else
48 printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
49 fi
50}
51
52prepare() {
53 cd "${srcdir}/${_pkgname}"
54
55 autoreconf -i
56
57 git log > "${srcdir}/git.log"
58}
59
60build() {
61 cd "${srcdir}/${_pkgname}"
62
63 ./configure --prefix=/usr \
64 --exec-prefix=/usr \
65 --bindir=/usr/bin \
66 --sbindir=/usr/sbin \
67 --datadir=/usr/share \
68 --libexecdir=/usr/lib \
69 --localstatedir=/var \
70 --docdir="/usr/share/doc/${_pkgname}" \
71 --libdir=/usr/lib/ \
72 --disable-systemd-logging \
73 --disable-external-tests
74 make
75}
76
77# check() {
78### NOTE: 2022-10-15: dtx and vty tests fail.
79# cd "${srcdir}/${_pkgname}"
80# make check
81# }
82
83_package_main() {
84 pkgdesc="${pkgdesc}"
85 arch=("${arch[@]}")
86 depends=(
87 'glibc'
88 'gnutls'
89 'libmnl'
90 'libusb'
91 'liburing'
92 'lksctp-tools'
93 'pcsclite'
94 'sh'
95 'talloc'
96 )
97 optdepends=(
98 "${_pkgname}-doc=${pkgver}: Documentation for this software."
99 )
100 provides=(
101 "${_pkgname}=${pkgver}"
102 "${_pkgname}-${_pkgvariant}=${pkgver}"
103 "${_pkgname}-${_pkgvcs}=${pkgver}"
104 )
105 conflicts=(
106 "${_pkgname}"
107 "${_pkgname}-${_pkgvariant}"
108 "${_pkgname}-${_pkgvcs}"
109 )
110 replaces=()
111
112 cd "${srcdir}/${_pkgname}"
113
114 make DESTDIR="${pkgdir}" install
115 if [ -d "${pkgdir}/usr/share/doc" ]; then
116 msg2 "Removing documentation ..."
117 rm -R "${pkgdir}/usr/share/doc"
118 fi
119
120 msg2 "Installing license ..."
121 install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" COPYING
122}
123
124_package_docs() {
125 pkgdesc="Documentation for ${_pkgname}."
126 arch=('any')
127 depends=()
128 optdepends=(
129 "${_pkgname}=${pkgver}: The software this documentation is for."
130 )
131 provides=(
132 "${_pkgname}-doc=${pkgver}"
133 "${_pkgname}-doc-${_pkgvcs}=${pkgver}"
134 )
135 conflicts=(
136 "${_pkgname}-doc"
137 "${_pkgname}-doc-${_pkgvcs}"
138 )
139 replaces=()
140
141 cd "${srcdir}/${_pkgname}"
142
143 mkdir -p "${pkgdir}/staging"
144 mkdir -p "${pkgdir}/usr/share/doc"
145 make DESTDIR="${pkgdir}/staging" install
146 msg2 "Moving documentation in place and removing everything else ..."
147 mv "${pkgdir}/staging/usr/share/doc"/* "${pkgdir}/usr/share/doc"/
148 rm -R "${pkgdir}/staging"
149
150 msg2 "Installing git repository's information files ..."
151 install -Dvm644 -t "${pkgdir}/usr/share/doc/libosmocore" "README.md" "TODO-RELEASE" "${srcdir}/git.log"
152}
153
154eval "package_${pkgname}() { _package_main \"\$@\"; }"
155eval "package_${pkgname}-doc() { _package_docs \"\$@\"; }"
156

Changes since previous scan

--- PKGBUILD @ 2026-06-20 00:18
+++ PKGBUILD @ 2026-09-05 16:00
@@ -9,7 +9,7 @@
"${pkgbase}"
"${pkgbase}-doc"
)
-pkgver=1.12.0+18.r5038.20251218.e02b95a6d
+pkgver=1.14.2+4.r5141.20260731.2a26b47cb
pkgrel=1
pkgdesc="Osmocom core library (functions relating to mobile communication standards). Compiled without systemd logging dependency."
arch=(

Scan history

Scanned at (UTC)SeverityRules
2026-09-05 16:00:23 Medium 1
2026-06-20 00:18:46 Medium 1
2026-06-19 23:51:18 Clean 2
2026-06-19 19:07:35 Low 2
2026-06-18 16:11:54 Medium 1

Report a package

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

0 / 4000
Your suggestion