llama-preset-proxy
LOW
maintainer tredaelli
0 votes
scanned 2026-09-18 19:28:54.129711
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2
3
pkgname=llama-preset-proxy
4
pkgver=0.2.2
5
pkgrel=1
6
pkgdesc='HTTP proxy that injects llama.cpp preset params and reroutes requests to avoid model reloads'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/drizzt/llama-preset-proxy'
9
license=('MIT')
10
depends=(
11
glibc
12
libgcc
13
)
14
makedepends=(
15
cargo
16
git
17
)
18
options=(!lto)
19
backup=("etc/$pkgname.env")
20
source=("git+$url#tag=v$pkgver")
21
b2sums=('a153d5d262c62fcbed436fc912aaa441e59faa487e15e5651419505632c4e234ce9c66f9a4c2caf1ca29d24883ab38d897dd8cf125f5289509e108169d47ff69')
22
23
# Use debug
24
export CARGO_PROFILE_RELEASE_DEBUG=2 CARGO_PROFILE_RELEASE_STRIP=false
25
26
# Use LTO
27
export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
28
29
prepare() {
30
cd "$pkgname"
31
export RUSTUP_TOOLCHAIN=stable
32
cargo fetch --locked --target host-tuple
33
sed -i 's|/usr/local/bin/|/usr/bin/|' packaging/$pkgname.service
34
}
35
36
build() {
37
cd "$pkgname"
38
export RUSTUP_TOOLCHAIN=stable
39
export CARGO_TARGET_DIR=target
40
cargo build --frozen --release --all-features
41
}
42
43
check() {
44
cd "$pkgname"
45
export RUSTUP_TOOLCHAIN=stable
46
cargo test --frozen --all-features
47
}
48
49
package() {
50
cd "$pkgname"
51
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
52
install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" "packaging/$pkgname.service"
53
install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
54
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
55
# TODO commit that upstream
56
install -Dm0644 /dev/stdin "$pkgdir/etc/$pkgname.env" <<'EOF'
57
# Configuration for llama-preset-proxy.service (all keys optional).
58
#LPP_LISTEN_HOST=127.0.0.1
59
#LPP_LISTEN_PORT=8081
60
#LPP_BACKEND_URL=http://127.0.0.1:8080/v1
61
#LPP_CACHE_TTL_SECS=30
62
#LPP_MAX_BODY_MB=8
63
#LPP_REQUEST_TIMEOUT_SECS=300
64
#LPP_MAX_CONCURRENT=256
65
EOF
66
}
67
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-18 19:28:54 | Low | 1 |