bahn-regio-entfernungsrechner-bin

LOW
maintainer dreieck 1 votes scanned 2026-11-02 00:26:00.633185
View on AUR
Why flagged

The package downloads a prebuilt Windows executable (via archive.org) for use with Wine, which is a normal use case for such software; the source is from an archived official site, checksums are provided, and no remote code execution or obfuscation is present.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt Windows executable (via archive.org) for use with Wine, which is a normal use case for such software; the source is from an archived official site, checksums are provided, and no remote code execution or obfuscation is present.

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:41 "entfernungsrechner_${_programdate}.zip::https://web.archive.org/web/20250315174301/https://www.evg-online.org/fileadmin/Service/Entfernungsrechner/${_programdate}_Entfernungsrechner.zip"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: dreieck
2
3# PKGBUILD last time manually edited: At least on 2023-06-05.
4
5_pkgname=bahn-regio-entfernungsrechner
6pkgname="${_pkgname}-bin"
7epoch=0
8_programdate=220106
9pkgver="3.2d_${_programdate}"
10pkgrel=2
11pkgdesc="Calculates fare kilometres for subscription tickets for DB regio. Upstream name: 'Entfernungsrechner für Fahrvergünstigungen.'"
12arch=(
13 'i686'
14 'x86_64'
15)
16url="https://web.archive.org/web/20240627090817/https://www.evg-online.org/deine-vorteile/vorteile-und-serviceleistungen/service-meldungen/entfernungsrechner-fuer-fahrverguenstigungen/"
17license=('custom')
18
19groups=()
20
21depends=(
22 "wine"
23)
24makedepends=()
25optdepends=()
26provides=(
27 "${_pkgname}=${pkgver}"
28 "${_pkgname}-doc=${pkgver}"
29)
30conflicts=(
31 "${_pkgname}"
32 "${_pkgname}-latest"
33)
34replaces=(
35 "${_pkgname}-latest<=3d_20180202"
36 "${_pkgname}<=1:3.2d_20210104"
37)
38
39
40source=(
41 "entfernungsrechner_${_programdate}.zip::https://web.archive.org/web/20250315174301/https://www.evg-online.org/fileadmin/Service/Entfernungsrechner/${_programdate}_Entfernungsrechner.zip"
42 "entfernungsrechner.sh"
43 "Entfernungsrechner_Benutzerhandbuch.pdf::https://web.archive.org/web/20241111103724/https://www.evg-online.org/fileadmin/Service/Entfernungsrechner/handbuch_entfernungsrechner-data.pdf"
44 "license-dummy.txt"
45)
46
47sha256sums=(
48 "6c5e9a44f9e9d9a4afa29b2c63f977f129ceb30a1a97881ec2f5ab26db9babc5" # entfernungsrechner_${_programdate}_${_programdate}.zip
49 "8347288b3a402c8075e5ccc24d23f3ae123ebebedd4116ed5e2352cf1a7b24ac" # entfernungsrechner.sh
50 "f3a566dec531484b4d3b864c958cff554e006362921d971704817f8fd60e814b" # Entfernungsrechner_Benutzerhandbuch.pdf
51 "b90a755ef3db2a12766725c1f5e0d31bebb08a700d240b4304624768c38ed9eb" # license-dummy.txt
52)
53
54noextract=(
55 "entfernungsrechner_${_programdate}.zip"
56)
57
58options=(
59 "emptydirs"
60)
61
62# pkgver() {
63# _ver="$(curl -s -L ${url} | grep Version | sed -n 's|^.*Version \([^ ]*\) .*$|\1|p')"
64# _datestr="$(curl -s -L ${url} | grep Version | sed -n 's|^.*Version \([^ ]*\) vom \([^ )]*\).*|\2|p')"
65# _date="$(echo "${_datestr}" | awk -F . '{print $3$2$1}')"
66#
67# if [ -z "${_ver}" ]; then
68# {
69# echo ""
70# echo "pkgver() Error: Could not determine version."
71# echo ""
72# } > /dev/stderr
73# return 1
74# elif [ -z "${_date}" ]; then
75# {
76# echo ""
77# echo "pkgver() Error: Could not determine datestamp."
78# echo ""
79# } > /dev/stderr
80# return 2
81# else
82# echo "${_ver}_${_date}"
83# fi
84# }
85
86
87package() {
88 _instdirbase='/opt/entfernungsrechner'
89 _instdir="${pkgdir}/${_instdirbase}"
90 _execdirbase='/usr/bin'
91 _execdir="${pkgdir}/${_execdirbase}"
92 _docdirbase="/usr/share/doc/${_pkgname}"
93 _docdir="${pkgdir}/${_docdirbase}"
94 _licensedirbase="/usr/share/licenses/${pkgname}"
95 _licensedir="${pkgdir}/${_licensedirbase}"
96
97 install -v -d -m755 "${_instdir}"
98 install -v -d -m755 "${_instdir}/doc"
99 install -v -d -m755 "${_execdir}"
100 install -v -d -m755 "${_docdir}"
101
102 (
103 cd "${_instdir}"
104 bsdtar -x -v -f "${srcdir}/entfernungsrechner_${_programdate}.zip"
105 chmod 644 *
106 chmod 755 *.[eE][xX][eE]
107 )
108
109 install -v -D -m755 "${srcdir}/entfernungsrechner.sh" "${_execdir}/entfernungsrechner"
110
111 install -v -D -m644 "${srcdir}/Entfernungsrechner_Benutzerhandbuch.pdf" "${_instdir}/doc/Entfernungsrechner_Benutzerhandbuch.pdf"
112 echo "${url}" > "${_instdir}/doc/info.url"
113 chmod 644 "${_instdir}/doc/info.url"
114
115 install -v -D -m644 "${srcdir}/license-dummy.txt" "${_licensedir}/license-dummy.txt"
116
117 (
118 cd "${_docdir}"
119 ln -v -s "${_instdirbase}/doc/Entfernungsrechner_Benutzerhandbuch.pdf" .
120 ln -v -s "${_instdirbase}/doc/info.url" .
121 )
122
123 chmod 755 "${_docdir}"
124 chmod 755 "${_instdir}"
125 chmod 755 "${_instdir}/doc"
126}
127

Scan history

Scanned at (UTC)SeverityRules
2026-11-02 00:26:00 Low 2
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
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

Report a package

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

0 / 4000
Your suggestion