1panel
maintainer larsbackman
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package builds from official source code and downloads auxiliary files from the project's GitHub repositories; skipped checksums are present but the files are from trusted project infrastructure, and no untrusted remote code execution occurs.
Triggered rules
LOW
AI review downgraded a static finding
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 builds from official source code and downloads auxiliary files from the project's GitHub repositories; skipped checksums are present but the files are from trusted project infrastructure, and no untrusted remote code execution occurs.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Rchips22 <rchips22@outlook.com>
2
# Contributor: Voxan24 <admin@hessfr.fr>
3
# Contributor: Senge Dev <sengedev@gmail.com>
4
5
pkgname=1panel
6
pkgver=2.1.10
7
pkgrel=0
8
pkgdesc="1Panel, a modern open source linux panel."
9
arch=('x86_64' 'aarch64')
10
url="https://github.com/1Panel-dev/1Panel"
11
license=('GPL-3.0-or-later')
12
install=1panel.install
13
makedepends=('go' 'nodejs' 'npm' 'python')
14
optdepends=('ufw' 'firewalld' 'docker' 'docker-compose')
15
conflicts=('1panel-dev-bin' '1panel-bin' '1panel-git')
16
source=(
17
"${pkgname}-${pkgver//_/-}.tar.gz"::"https://github.com/1Panel-dev/1Panel/archive/refs/tags/v${pkgver//_/-}.tar.gz"
18
"https://github.com/1Panel-dev/installer/raw/v2/1pctl"
19
"https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-core.service"
20
"https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-agent.service"
21
"1panel.conf"
22
)
23
b2sums=(
24
"b51e012f5a15c02294ac7929577299b54d8ef4101537d645c9717728af1f69b074ee2489e15f60b4e91eb7159448be45b1133fdd77f712847bbc140f5f4ccfc3"
25
"SKIP"
26
"SKIP"
27
"SKIP"
28
"47e36073d92f3fb590d5e648ee9e2b71d575744f7cca223bb0d523e1745faa2d715b77ede14fb26905dc2f7278a9be523e50c7cbd89ab7b87958fa51ae585dd9"
29
)
30
31
prepare() {
32
find ${srcdir} -type f -exec sed -i 's@/usr/local/bin@/usr/bin@g' {} +
33
find ${srcdir} -type f -exec sed -i 's@/etc/systemd/system@/usr/lib/systemd/system@g' {} +
34
# Seprate the config and the 1pctl,make 1pctl's update possible,
35
# This is a stupid workaround against upstream's stupid installation mode.
36
# if it failed,remove it,and change 1pctl like this
37
# BASE_DIR=/var/lib/1p
38
# ORIGINAL_PORT=8888
39
# ORIGINAL_VERSION=v{pkgver}
40
find ${srcdir} -type f -exec sed -i 's@/usr/bin/1pctl@/etc/1panel.conf@g' {} +
41
sed -i -e "s#ORIGINAL_VERSION=.*#ORIGINAL_VERSION=v${pkgver//_/-}#g" ${srcdir}/1panel.conf
42
}
43
44
build() {
45
# 1panel backend is too big to build
46
export NODE_OPTIONS="--max-old-space-size=4096"
47
48
cd ${srcdir}/1Panel-${pkgver//_/-}/frontend
49
npm install
50
npm run build:pro
51
cd "${srcdir}/1Panel-${pkgver}/core"
52
CGO_ENABLED=0 GOOS=linux GOARCH=$(go env GOARCH) go build -trimpath -ldflags '-s -w' -o "${srcdir}/1Panel-${pkgver}/build/1panel-core" "${srcdir}/1Panel-${pkgver}/core/cmd/server/main.go"
53
cd "${srcdir}/1Panel-${pkgver}/agent"
54
CGO_ENABLED=0 GOOS=linux GOARCH=$(go env GOARCH) go build -trimpath -ldflags '-s -w' -o "${srcdir}/1Panel-${pkgver}/build/1panel-agent" "${srcdir}/1Panel-${pkgver}/agent/cmd/server/main.go"
55
}
56
57
package() {
58
install -vDm755 "${srcdir}/1Panel-${pkgver}/build/1panel-core" -t "${pkgdir}/usr/bin/"
59
# 创建软链接:/usr/bin/1panel → /usr/bin/1panel-core
60
ln -s "/usr/bin/1panel-core" "${pkgdir}/usr/bin/1panel"
61
install -vDm755 "${srcdir}/1Panel-${pkgver}/build/1panel-agent" -t "${pkgdir}/usr/bin/"
62
install -vDm755 "${srcdir}/1pctl" "${pkgdir}/usr/bin/1pctl"
63
64
install -vDm644 "${srcdir}/1panel-agent.service" -t "${pkgdir}/usr/lib/systemd/system"
65
install -vDm644 "${srcdir}/1panel-core.service" -t "${pkgdir}/usr/lib/systemd/system"
66
install -vDm644 "${srcdir}/1panel.conf" "${pkgdir}/etc/1panel.conf"
67
install -vDm644 "${srcdir}/1Panel-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
68
}
69
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 11:11:22 | MEDIUM | 1 |
| 2026-06-18 16:11:54 | CLEAN | 0 |