dolibarr
The flagged download in 'latestver()' is only used to check the latest version and does not affect the build; the actual source is a verifiable tarball from SourceForge, a known project host, with a valid checksum.
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 flagged download in 'latestver()' is only used to check the latest version and does not affect the build; the actual source is a verifiable tarball from SourceForge, a known project host, with a valid checksum.
1 higher static finding superseded - not the current verdict (shown for transparency)
external_download_not_in_source
curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.
-
PKGBUILD:27
curl -fsSL "https://www.dolibarr.org/downloads/" |
PKGBUILD
1 offending line(s) highlighted# Maintainer: HLFH <gaspard@dhautefeuille.eu>
pkgname=dolibarr
pkgver=24.0.2
pkgrel=1
pkgdesc="Dolibarr ERP CRM: modern software package to manage your company"
arch=('any')
url="https://dolibarr.org/"
license=('GPL-3.0-or-later')
depends=('php-legacy' 'php-legacy-gd')
optdepends=('mariadb-clients: MariaDB backend'
'postgresql: PostgreSQL backend'
'php-legacy-xsl: xlsx export'
'php-tcpdf: pdf export')
options=('!strip' 'emptydirs')
backup=("etc/$pkgname/conf.php")
install=dolibarr.install
source=("https://downloads.sourceforge.net/project/$pkgname/Dolibarr%20ERP-CRM/$pkgver/$pkgname-$pkgver.tgz"
dolibarr.conf
nginx.conf.example
apache.conf.example)
b2sums=('3713bcdac7cd0e8e4e6569a91ce7e91809fc2b767acd8fc4ed92488ed1ea5c3f736e6d65364d8b7943a20927bd5580d8e834ff33a368ed74b5fd2db6cae73034'
'e78f127924e37c9d5910ec3081cf0b13d79c58e6350f499261380cffd0ee0023e2488e20e24d0463c01548694c80e45e79b27efc9a81a3458e96c050dce7211d'
'6ab4f2b86e9db40c91a0db181421594b78deccaac8d45c851f8d61a2999bdd14b84ac11018356728d1ec6ec0215094a6658ab5b74960f37a67e1d089c4ed61ac'
'8bb3823afee0515931cfbd4ddc8714ccab29f3d46fa249554670cce9d5ed79b8645515cc758edf3293c40bd9a7917bc1ae8664e3bd6b6a2a1502379b4257f499')
latestver() {
curl -fsSL "https://www.dolibarr.org/downloads/" |
perl -0ne 'print "$1\n" if /Last version\s*<.*?>\s*([0-9]+(?:\.[0-9]+)*)/s'
}
prepare() {
sed -e "3,5d" \
-e "s|example for ||g" \
-e "s|main_document_root=''|main_document_root='/usr/share/$pkgname/htdocs'|g" \
-e "s|main_data_root=''|main_data_root='/var/lib/$pkgname'|g" \
"$pkgname-$pkgver/htdocs/conf/conf.php.example" >"$pkgname-$pkgver/htdocs/conf/conf.php"
}
package() {
mkdir -p "$pkgdir/usr/share/$pkgname"
mkdir -p "$pkgdir/etc/$pkgname/contrib"
mkdir -p "$pkgdir/var/lib/$pkgname"
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
mkdir -p "$pkgdir/etc/systemd/system/php-fpm-legacy.service.d"
cp *.conf.example "$pkgdir/etc/$pkgname/contrib/"
cp dolibarr.conf "$pkgdir/etc/systemd/system/php-fpm-legacy.service.d/"
cd "$pkgname-$pkgver"
cp -ra htdocs "$pkgdir/usr/share/$pkgname/"
cp -ra scripts "$pkgdir/usr/share/$pkgname/"
cp COPYING "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
cp -ra doc/* "$pkgdir/usr/share/doc/$pkgname/"
cp htdocs/conf/conf.php "$pkgdir/etc/$pkgname/conf.php"
rm "$pkgdir/usr/share/$pkgname/htdocs/conf/conf.php"
ln -s /etc/$pkgname/conf.php "$pkgdir/usr/share/$pkgname/htdocs/conf/conf.php"
}
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 |