ut2004-data-archiveorg
The package downloads a known game ISO from a community-maintained archive site for data extraction; the source is non-whitelisted but the content is non-executable game data, and the build process only extracts and organizes files without executing remote code.
Triggered rules
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 a known game ISO from a community-maintained archive site for data extraction; the source is non-whitelisted but the content is non-executable game data, and the build process only extracts and organizes files without executing remote code.
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:14
source=("UT2004.ISO::https://files.oldunreal.net/UT2004.ISO")
PKGBUILD
1 offending line(s) highlighted# Maintainer: John-Michael Mulesa <jmulesa [at] gmail [dot] com>
pkgname=ut2004-data-archiveorg
pkgver=3369
pkgrel=3
pkgdesc="Unreal Tournament 2004 ECE data from OldUnreal/Archive.org ISO"
arch=('any')
url="https://www.oldunreal.com/downloads/unreal-tournament-2004/full-game-installers/"
license=('custom')
depends=()
makedepends=('p7zip' 'unshield')
provides=('ut2004-data')
conflicts=('ut2004-data' 'ut2004-steam' 'ut2004-gog')
source=("UT2004.ISO::https://files.oldunreal.net/UT2004.ISO")
md5sums=('4ad34b16d757e0752809eb9bf5fb1fba')
package() {
install -d "$pkgdir/opt/ut2004"
msg2 "Extracting ISO..."
mkdir -p "$srcdir/iso_extract"
7z -y x "$srcdir/UT2004.ISO" -o"$srcdir/iso_extract"
msg2 "Preparing Cabinet files..."
mkdir -p "$srcdir/cab_files"
find "$srcdir/iso_extract" -name "data*.cab" -exec ln -sf {} "$srcdir/cab_files/" \;
find "$srcdir/iso_extract" -name "data*.hdr" -exec ln -sf {} "$srcdir/cab_files/" \; 2>/dev/null || true
msg2 "Extracting Cabinet files..."
mkdir -p "$srcdir/cab_extract"
if [ -f "$srcdir/cab_files/data1.cab" ]; then
unshield -d "$srcdir/cab_extract" x "$srcdir/cab_files/data1.cab"
else
error "data1.cab not found!"
return 1
fi
msg2 "Organizing extracted files..."
cd "$srcdir/cab_extract"
# Iterate through extracted groups (e.g., All_Maps, All_System, etc.)
for group_dir in *; do
if [ -d "$group_dir" ]; then
# Determine target subdirectory name in /opt/ut2004
target_name=""
# Helper logic to strip "All_" prefix or map specific names
# Many folders are named like "All_Maps", "All_System"
if [[ "$group_dir" == All_* ]]; then
target_name="${group_dir#All_}"
fi
# Specific Overrides/Mappings
case "$group_dir" in
"All_UT2004.EXE") target_name="System" ;;
*"_Sounds_Speech_System_Help")
# Extract language prefix
lang="${group_dir%%_*}"
if [ "$lang" == "English" ]; then
target_name="."
else
# For other languages, we need to handle subdirectories specially
# We can't just set target_name, we need a custom handling block
msg2 "Processing $lang assets..."
for sub in "$group_dir"/*; do
if [ -d "$sub" ]; then
subname=$(basename "$sub")
# Map subfolder to subfolder_Lang
dest="$pkgdir/opt/ut2004/${subname}_${lang}"
install -d "$dest"
cp -r "$sub"/* "$dest/"
fi
done
continue # Skip standard copy logic
fi
;;
*"_Manual")
# Extract language prefix
lang="${group_dir%%_*}"
if [ "$lang" == "English" ]; then
target_name="Manual"
else
target_name="Manual_$lang"
fi
;;
"US_License.int") target_name="System" ;;
esac
# If we have a valid target name (standard copy logic)
if [ -n "$target_name" ]; then
# Handle "." mapping (copy contents to root)
if [ "$target_name" == "." ]; then
dest="$pkgdir/opt/ut2004"
install -d "$dest"
msg2 "Moving contents of $group_dir to $dest..."
# Use cp -rT or simply cp -r * to merge
cp -r "$group_dir"/* "$dest/"
else
dest="$pkgdir/opt/ut2004/$target_name"
install -d "$dest"
msg2 "Moving contents of $group_dir to $dest..."
cp -r "$group_dir"/* "$dest/"
fi
else
msg2 "Skipping unknown group directory: $group_dir"
fi
fi
done
msg2 "Creating User folder from System defaults..."
install -d "$pkgdir/opt/ut2004/User"
for f in CacheRecords.ucl DefUnrealEd.ini DefUser.ini Default.ini User.ini; do
if [ -f "$pkgdir/opt/ut2004/System/$f" ]; then
mv "$pkgdir/opt/ut2004/System/$f" "$pkgdir/opt/ut2004/User/"
fi
done
msg2 "Removing conflicting binaries and code from System folder..."
find "$pkgdir/opt/ut2004/System" -type f \( -name "*.bin" -o -name "*.so" -o -name "*.exe" -o -name "*.dll" -o -name "*.u" -o -name "*.upl" -o -name "*.md5" -o -executable \) -delete
rm -f "$pkgdir/opt/ut2004/System/Build.ini"
msg2 "Removing conflicting Web directory..."
rm -rf "$pkgdir/opt/ut2004/Web"
msg2 "Removing conflicting Help files..."
rm -f "$pkgdir/opt/ut2004/Help/DebuggerLogo.bmp"
rm -f "$pkgdir/opt/ut2004/Help/InstallerLogo.bmp"
msg2 "Fixing permissions..."
find "$pkgdir/opt/ut2004" -type d -exec chmod 755 {} +
find "$pkgdir/opt/ut2004" -type f -exec chmod 644 {} +
}
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 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 |
| 2026-08-29 00:29:17 | Low | 2 |