etlegacy-mod
etlegacy
scanned 2026-11-01 00:21:48.120785
The package downloads prebuilt mod binaries from the project's official domain (etlegacy.com), which is a trusted source; the non-standard host is the project's own download infrastructure, and the binaries are part of the official release, posing minimal supply-chain risk.
Triggered rules
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 prebuilt mod binaries from the project's official domain (etlegacy.com), which is a trusted source; the non-standard host is the project's own download infrastructure, and the binaries are part of the official release, posing minimal supply-chain risk.
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:16
"${_pkgbase}-${pkgver}-${arch}-binary.tar.gz::http://www.etlegacy.com/download/file/${_binaryversion}")
PKGBUILD
1 offending line(s) highlighted# Full 64 bit ET:Legacy clients can only connect to ET:Legacy servers running mods providing a 64 bit version.
# If you want to connect to existing 32 bit only mods, install the cross-compiled "etlegacy32" package instead.
# The engine is dynamically compiled, while the official precompiled mod libraries are provided.
_pkgbase=etlegacy
pkgbase=etlegacy
pkgname=('etlegacy' 'etlegacy-mod')
pkgver=2.86.2
_binaryversion=785
pkgrel=1
arch=('x86_64' 'aarch64')
url="http://www.etlegacy.com/"
license=('GPL3' 'custom')
makedepends=('cmake' 'zip' 'alsa-lib' 'curl' 'freetype2' 'gcc-libs' 'glew' 'libjpeg-turbo' 'libvorbis' 'libtheora' 'minizip' 'openal>=1.14' 'sdl2' 'cjson')
source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/etlegacy/$_pkgbase/archive/v$pkgver.tar.gz"
"${_pkgbase}-${pkgver}-${arch}-binary.tar.gz::http://www.etlegacy.com/download/file/${_binaryversion}")
#noextract=("etl_bin_v$pkgver.pk3" "pak3_v$pkgver.pk3")
sha256sums=('601090b83c25a45e9327f987cec3fe8517c74dd6f8d90cb22edcdef83dac6336'
'7f0d5aa3f630cbe6574592d1f41b2feb5542c5e7decada30f84251b3f8908018')
build() {
cd "$_pkgbase-$pkgver"
export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
-fstack-clash-protection -fcf-protection \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
export CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
cmake . ${cmakeopts[@]} \
-DCMAKE_LIBRARY_PATH=/usr/lib \
-DCROSS_COMPILE32=0 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy\
-DINSTALL_DEFAULT_BINDIR=bin \
-DINSTALL_DEFAULT_MODDIR=lib/etlegacy \
-DBUILD_SERVER=1 \
-DBUILD_CLIENT=1 \
-DBUILD_MOD=0 \
-DBUILD_MOD_PK3=0 \
-DBUNDLED_LIBS=0 \
-DFEATURE_AUTOUPDATE=0 \
-DINSTALL_OMNIBOT=0
make
}
package_etlegacy() {
pkgdesc="Wolfenstein: Enemy Territory 2.60b compatible client/server (etlegacy engine)"
depends=('etlegacy-mod' 'alsa-lib' 'curl' 'freetype2' 'gcc-libs' 'glew' 'libjpeg-turbo' 'libvorbis' 'lua' 'minizip' 'openal' 'sdl2')
provides=('etlegacy')
conflicts=('etlegacy')
backup=('etc/xdg/etlegacy/etmain/etl_server.cfg'
'etc/xdg/etlegacy/etmain/legacy.cfg'
'etc/xdg/etlegacy/etmain/campaigncycle.cfg'
'etc/xdg/etlegacy/etmain/lmscycle.cfg'
'etc/xdg/etlegacy/etmain/mapvotecycle.cfg'
'etc/xdg/etlegacy/etmain/objectivecycle.cfg')
install=etlegacy.install
cd "$_pkgbase-$pkgver"
# engine
make DESTDIR="$pkgdir/" install
# mod
rm -rf $pkgdir/usr/lib/$_pkgbase/legacy
# assets
ln -s /usr/share/enemy-territory/etmain/{pak0,pak1,pak2}.pk3 $pkgdir/usr/lib/$_pkgbase/etmain/
# doc
mkdir -p $pkgdir/usr/share/doc/$_pkgbase
install -m 644 VERSION.txt $pkgdir/usr/share/doc/$_pkgbase/
install -m 644 *.md $pkgdir/usr/share/doc/$_pkgbase/
install -m 644 docs/game/anticheat.html $pkgdir/usr/share/doc/$_pkgbase/
# license
mkdir -p $pkgdir/usr/share/licenses/$_pkgbase
install -m 644 COPYING.txt $pkgdir/usr/share/licenses/$_pkgbase/LICENSE
# systemd
mkdir -p $pkgdir/etc/xdg/$_pkgbase/etmain
mkdir -p $pkgdir/usr/lib/systemd/system
install -m 644 misc/etlegacy.conf $pkgdir/etc/xdg/$_pkgbase/
install -m 644 misc/etlegacy.x86_64.service $pkgdir/usr/lib/systemd/system/etlegacy.service
# config
mv $pkgdir/usr/lib/$_pkgbase/etmain/*.cfg $pkgdir/etc/xdg/$_pkgbase/etmain/
ln -s /etc/xdg/$_pkgbase/etmain/{etl_server,legacy,{campaign,lms,mapvote,objective}cycle}.cfg $pkgdir/usr/lib/$_pkgbase/etmain/
# server
mkdir -p $pkgdir/var/lib/$_pkgbase-server
ln -s /etc/xdg/$_pkgbase/etmain $pkgdir/var/lib/$_pkgbase-server/
}
package_etlegacy-mod() {
pkgdesc="Wolfenstein: Enemy Territory 2.60b compatible client/server (etlegacy mod)"
depends=('enemy-territory-data' 'geoip-database')
optdepends=('etlegacy-omnibot: artificial intelligence (AI) controlled opponent'
'geoip-database: GeoLite country geolocation database')
# mod
mkdir -p $pkgdir/usr/lib/$_pkgbase/legacy
install -m 644 $srcdir/etlegacy-v$pkgver-x86_64/legacy/legacy_v$pkgver.pk3 $pkgdir/usr/lib/$_pkgbase/legacy
install -m 644 $srcdir/etlegacy-v$pkgver-x86_64/legacy/qagame.mp.x86_64.so $pkgdir/usr/lib/$_pkgbase/legacy
# geoip
ln -s /usr/share/GeoIP/GeoIP.dat $pkgdir/usr/lib/$_pkgbase/legacy
}
Changes since previous scan
--- PKGBUILD @ 2026-10-16 00:12+++ PKGBUILD @ 2026-11-01 00:21@@ -5,8 +5,8 @@ _pkgbase=etlegacy pkgbase=etlegacy pkgname=('etlegacy' 'etlegacy-mod')-pkgver=2.84.0-_binaryversion=715+pkgver=2.86.2+_binaryversion=785 pkgrel=1 arch=('x86_64' 'aarch64') url="http://www.etlegacy.com/"@@ -15,8 +15,8 @@ source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/etlegacy/$_pkgbase/archive/v$pkgver.tar.gz" "${_pkgbase}-${pkgver}-${arch}-binary.tar.gz::http://www.etlegacy.com/download/file/${_binaryversion}") #noextract=("etl_bin_v$pkgver.pk3" "pak3_v$pkgver.pk3")-sha256sums=('8857ff04d8d632e75e0b3ebb2715cc5cb35f9ebf24699806bbdea3979434bffc'- 'aacffc85c8f5b3d3579401aa6f4d85fcdfd0d245d39ae094cf5247f0b044a2d8')+sha256sums=('601090b83c25a45e9327f987cec3fe8517c74dd6f8d90cb22edcdef83dac6336'+ '7f0d5aa3f630cbe6574592d1f41b2feb5542c5e7decada30f84251b3f8908018') build() { cd "$_pkgbase-$pkgver"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 19:16:12 | Medium | 1 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |