idos-timetable-data-chaps-trains-common-latest
LOW
maintainer dreieck
0 votes
scanned 2026-09-17 00:27:14.276658
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-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 18:00:42 | Medium | 1 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |