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-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 |
| 2026-10-13 00:23:45 | Low | 2 |