idos-timetable-data-chaps-trains-common-latest
maintainer dreieck
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads timetable data and a license PDF from the official project host;虽非标准域名但属项目自有基础设施,且安装内容为静态数据非可执行代码,最坏情况为数据篡改,无远程代码执行风险。
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads timetable data and a license PDF from the official project host;虽非标准域名但属项目自有基础设施,且安装内容为静态数据非可执行代码,最坏情况为数据篡改,无远程代码执行风险。
1 higher static finding superseded - not the current verdict (shown for transparency)
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:49
"${_target}::https://ttakt.chaps.cz/TTAktual/Win/Zip/${_zipfile}" -
PKGBUILD:50
"IDOS-Licence.pdf::https://chaps.cz/files/idos/IDOS-Licence.pdf"
PKGBUILD
2 offending line(s) highlighted
1
# Maintainer: dreieck
2
3
# PKGBUILD last time manually edited: At least on 2025-12-18.
4
5
_year=26
6
url="https://chaps.cz/eng/download/idos/zip#kotvatt"
7
_zipfile="VLAK${_year}C.ZIP"
8
_pkgver() {
9
# Reason for a _pkgver(): Have something to run before source download so that we can have version aware source downloads.
10
wget -nv -O- "${url}" | tr -d '\a' | tr '\n' '\a' | sed 's|^.*File '"${_zipfile}"'\(.*\)Zip/'"${_zipfile}"'.*$|\1\n|g' | tr '\a' '\n' | grep 'Update date:' | cut -d, -f1 | sed -r 's|([0-9]+)\.([0-9]+)\.([0-9]+).|\n\3_\2_\1\n|g' | grep -E '^[0-9]+_[0-9]+_[0-9]+' | sed -E -e 's|_([0-9])_|_0\1_|g' -e 's|_([0-9])$|_0\1|g'
11
}
12
13
_pkgname=idos-timetable-data-chaps-trains-common
14
pkgname="${_pkgname}-latest"
15
epoch=0
16
_pkgver="$(_pkgver)" # This should be set _before_ sources get downloaded.
17
pkgver="${_pkgver}"
18
pkgrel=1
19
pkgdesc="Common files needed for train timetable data for the timetable search engines by CHAPS."
20
arch=(any)
21
license=('custom')
22
23
groups=(
24
"idos-timetable"
25
)
26
27
depends=(
28
"idos-timetable-browser"
29
)
30
31
makedepends=(
32
"wget"
33
)
34
35
optdepends=()
36
37
provides=(
38
"${_pkgname}=${pkgver}"
39
"idos-timetable-data-trains-common=${pkgver}"
40
)
41
42
conflicts=(
43
"${_pkgname}"
44
)
45
46
_target="vlak${_year}c-${_pkgver}.zip"
47
48
source=(
49
"${_target}::https://ttakt.chaps.cz/TTAktual/Win/Zip/${_zipfile}"
50
"IDOS-Licence.pdf::https://chaps.cz/files/idos/IDOS-Licence.pdf"
51
"license-dummy.txt"
52
)
53
54
sha256sums=(
55
'SKIP'
56
"SKIP"
57
"c6bb216055d3670d3100b7a74e04ce0644030f365f4349a09e630ef60fbcb9a4"
58
)
59
60
pkgver() {
61
printf '%s' "${_pkgver}"
62
}
63
64
65
package() {
66
_instdirbase='/opt/idos-timetable'
67
_instdir="${pkgdir}/${_instdirbase}"
68
install -d -m755 "${_instdir}"
69
70
install -d -m755 "${_instdir}/Data1"
71
install -D -m644 "${srcdir}/Data1/Vlak.ttr" "${_instdir}/Data1/Vlak.ttr"
72
73
install -D -m644 "${srcdir}/license-dummy.txt" "${pkgdir}/usr/share/licenses/${pkgname}/copying.txt"
74
install -D -m644 "${srcdir}/IDOS-Licence.pdf" "${pkgdir}/usr/share/licenses/${pkgname}/IDOS-Licence.pdf"
75
}
76
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |