llama-preset-proxy

LOW
maintainer tredaelli 0 votes scanned 2026-09-18 19:28:54.129711
View on AUR
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
3pkgname=llama-preset-proxy
4pkgver=0.2.2
5pkgrel=1
6pkgdesc='HTTP proxy that injects llama.cpp preset params and reroutes requests to avoid model reloads'
7arch=('x86_64' 'aarch64')
8url='https://github.com/drizzt/llama-preset-proxy'
9license=('MIT')
10depends=(
11 glibc
12 libgcc
13)
14makedepends=(
15 cargo
16 git
17)
18options=(!lto)
19backup=("etc/$pkgname.env")
20source=("git+$url#tag=v$pkgver")
21b2sums=('a153d5d262c62fcbed436fc912aaa441e59faa487e15e5651419505632c4e234ce9c66f9a4c2caf1ca29d24883ab38d897dd8cf125f5289509e108169d47ff69')
22
23# Use debug
24export CARGO_PROFILE_RELEASE_DEBUG=2 CARGO_PROFILE_RELEASE_STRIP=false
25
26# Use LTO
27export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
28
29prepare() {
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
36build() {
37 cd "$pkgname"
38 export RUSTUP_TOOLCHAIN=stable
39 export CARGO_TARGET_DIR=target
40 cargo build --frozen --release --all-features
41}
42
43check() {
44 cd "$pkgname"
45 export RUSTUP_TOOLCHAIN=stable
46 cargo test --frozen --all-features
47}
48
49package() {
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
65EOF
66}
67

Scan history

Scanned at (UTC)SeverityRules
2026-09-18 19:28:54 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion