bsg-diaspora-sa
The package downloads source files from a project-specific domain (diaspora.fs2downloads.com) which is plausibly the official release host for this mod; the files are large game assets and patches, not executable code, and the build process compiles only the project's own fs2_open engine code; the risk from the non-whitelisted host is low as the worst case of a swapped source would be tampered game data, not remote code execution.
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 source files from a project-specific domain (diaspora.fs2downloads.com) which is plausibly the official release host for this mod; the files are large game assets and patches, not executable code, and the build process compiles only the project's own fs2_open engine code; the risk from the non-whitelisted host is low as the worst case of a swapped source would be tampered game data, not remote code execution.
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:29
source=('http://diaspora.fs2downloads.com/Diaspora_R1_Linux.tar.lzma'
PKGBUILD
1 offending line(s) highlighted# Maintainer: Winicius Cota <winicius.cota@gmail.com>
# Contributor: Tom Parys <tom.parys@gmail.com>
# Contributor: ZekeSulastin <zekesulastin@gmail.com>
# Contributor: David H. Bronke <whitelynx@gmail.com>
# Contributor: Mr_Robotic_Evil <mr.robotic.evil@googlemail.com>
# Contributor: Lone_Wolf <lonewolf@xs4all.nl>
# Contributor: Marius Nestor <marius@softpedia.com>
# Warning: This package is BIG; you'll need at least 9 GiB free in
# order to build version 1.1.1 (2 GiB for the downloads alone, about 3 GiB for the
# unpacked game data and source, and 3.3 GiB for the finished package if
# uncompressed) 'mv' is used over 'cp' in the package phase to save a bit
# of space, but make sure there is enough room for everything.
# This PKGBUILD is based on fs2_open and fs2_open-data from AUR; the
# maintainers and contributors of those packages have been listed as
# contributors above.
pkgname=bsg-diaspora-sa
pkgver=1.1.1
pkgrel=1
pkgdesc="Diaspora: Shattered Armistice is a single and multiplayer space fighter combat game set in the reimagined Battlestar Galactica universe."
url="http://diaspora.hard-light.net/"
arch=('i686' 'x86_64')
license=('CCPL' 'custom:fs2_open')
depends=('libjpeg' 'libpng' 'libtheora' 'libvorbis' 'lua51' 'mesa' 'openal' 'sdl' 'jansson' 'wxlauncher')
# optdepends=('wxlauncher: a launcher for fs2_open-based games')
install=bsg-diaspora-sa.install
source=('http://diaspora.fs2downloads.com/Diaspora_R1_Linux.tar.lzma'
'http://diaspora.fs2downloads.com/Diaspora_R1_Patch_1.1.tar.lzma'
'http://diaspora.fs2downloads.com/Diaspora_R1_Patch_1.1.1.tar.lzma'
'bsg-diaspora-sa'
'bsg-diaspora-sa.conf'
'bsg-diaspora-sa.desktop'
'bsg-diaspora-sa.png')
md5sums=('22b55ae9bc9366ccbeb1642cd50dc3f8'
'423182f96a97e657da0e27b708b48abf'
'd73890efd3e86b336d96b339e0a59a46'
'2c8befd5c503d7e494fb8fc87a7c1464'
'ef9920040cf4c37419c89ca007df3022'
'50ae3eafa6f50add7f592e32b0c600e8'
'3ff26bc4a7d14af7b3b8fcb32ff0f367')
# This package is about 3 GiB uncompressed and takes a while to recompress for
# not too much space savings; the following PKGEXT disables compression of the
# package. Add .xz or similar to the end of PKGEXT to compress the package.
PKGEXT=".pkg.tar"
prepare() {
local SOURCE="$srcdir/Diaspora_R1_Linux/Diaspora/"
msg "Removing unneeded files..."
rm -r $SOURCE/resources $SOURCE/wxlauncher
# 1.1 patch
msg "Applying patch 1.1"
#tar -xf $srcdir/Diaspora_R1_Patch_$pkgver/Patch_Files.$pkgver.tar -C $SOURCE
tar -xf $srcdir/Patch_Files.1.1.tar -C $SOURCE
# 1.1.1 patch
msg "Applying patch 1.1.1"
tar -xf $srcdir/Patch_Files.1.1.1.tar -C $SOURCE
}
build() {
local SOURCE="$srcdir/Diaspora_R1_Linux/Diaspora/"
# (1) Build the game engine (fs2_open)
msg "Building..."
cd $SOURCE/fs2_open
# LDFLAGS="-l:liblua.so.5.1 $LDFLAGS" CXXFLAGS="-I/usr/include/lua5.1 $CXXFLAGS" ./autogen.sh --enable-speech
env LUA_CFLAGS="$(pkg-config --cflags lua51)" \
LUA_LIBS="$(pkg-config --libs lua51)" \
./autogen.sh
make
# (2) Set up the Diaspora launcher profile (for wxlauncher)
cd $SOURCE
sed "s@^folder=.*\$@folder=/opt/$pkgname@;s@pro00099.template.ini@@" pro00099.template.ini > pro00099.ini
# Grab command-line options from pro00099.ini for our runner script.
cd $srcdir
FS2_OPTS="$(sed -n 's@^flags=\(.*\)$@\1@p' $SOURCE/pro00099.ini | tr -d '\r\n')"
sed -i "s@\\(FS2OPTS=\\).*@\\1\"$FS2_OPTS\"@" $srcdir/bsg-diaspora-sa.conf
}
package() {
local SOURCE="$srcdir/Diaspora_R1_Linux/Diaspora/"
cd $SOURCE
#install -D -m644 -t "$pkgdir/opt/$pkgname/" *.vp *.ini *.png *.bmp data
install -m644 -d "$pkgdir/opt/$pkgname/"
mv *.vp *.png *.bmp mod.ini pro00099.ini data "$pkgdir/opt/$pkgname/"
#install -D -m644 -t "$pkgdir/usr/share/doc/$pkgname/" *.pdf *.txt *.rtf
install -m644 -d "$pkgdir/usr/share/doc/$pkgname/"
mv *.pdf *.txt *.rtf "$pkgdir/usr/share/doc/$pkgname/"
# Fix permissions (since 'mv' won't set them)
chmod -R 644 "$pkgdir/opt/$pkgname/" "$pkgdir/usr/share/doc/$pkgname/"
find "$pkgdir/opt/$pkgname/" "$pkgdir/usr/share/doc/$pkgname/" -type d -exec chmod 755 '{}' \;
install -D -m755 $srcdir/bsg-diaspora-sa "$pkgdir/usr/bin/bsg-diaspora-sa"
install -D -m644 $srcdir/bsg-diaspora-sa.conf "$pkgdir/usr/share/$pkgname/bsg-diaspora-sa.conf"
install -D -m644 $srcdir/bsg-diaspora-sa.png "${pkgdir}/usr/share/pixmaps/bsg-diaspora-sa.png"
install -D -m644 $srcdir/bsg-diaspora-sa.desktop "$pkgdir/usr/share/applications/bsg-diaspora-sa.desktop"
install -D -m644 fs2_open/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -D -m755 fs2_open/code/fs2_open_3.7.1 "$pkgdir/opt/$pkgname/fs2_open_diaspora"
}
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 |