centrifugo-git
LOW
maintainer agony4001
0 votes
scanned 2026-10-27 11:47:37.152749
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: agony <27015 at riseup dot net>
2
3
pkgname=centrifugo-git
4
pkgver=r1996.3a8731a
5
pkgrel=1
6
pkgdesc='Scalable real-time messaging server (git version)'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/centrifugal/centrifugo'
9
license=('Apache-2.0')
10
depends=('glibc')
11
makedepends=('git' 'go')
12
provides=('centrifugo')
13
conflicts=('centrifugo')
14
install=centrifugo.install
15
source=("centrifugo::git+${url}.git"
16
'centrifugo.service'
17
'centrifugo.sysusers'
18
'centrifugo.tmpfiles')
19
sha256sums=('SKIP'
20
'f61eeb35bfa248be947b0da434bf82815d2a0396f10933e4aadac06a73462f9c'
21
'dd656417db47b6dd5260a8a6b1f82005c80b6555ac65dd375a95e3aa5168e728'
22
'3a4a5123db7293dc103187f406a168214ced95bda0c4f6c0f06508cf262a9718')
23
24
pkgver() {
25
cd centrifugo
26
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
27
}
28
29
prepare() {
30
cd centrifugo
31
export GOPATH="${srcdir}/gopath"
32
go mod download -x -modcacherw
33
}
34
35
build() {
36
cd centrifugo
37
export GOPATH="${srcdir}/gopath"
38
export CGO_CPPFLAGS="${CPPFLAGS}"
39
export CGO_CFLAGS="${CFLAGS}"
40
export CGO_CXXFLAGS="${CXXFLAGS}"
41
export CGO_LDFLAGS="${LDFLAGS}"
42
export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
43
local version
44
version=$(git describe --tags | sed 's/^v//')
45
go build -v -ldflags="-linkmode=external -X github.com/centrifugal/centrifugo/v6/internal/build.Version=${version}" -o centrifugo .
46
}
47
48
check() {
49
cd centrifugo
50
export GOPATH="${srcdir}/gopath"
51
export GOFLAGS='-buildvcs=false -mod=readonly -modcacherw'
52
local packages
53
mapfile -t packages < <(bash misc/scripts/test_packages.sh unit)
54
go test "${packages[@]}"
55
}
56
57
package() {
58
install -dm755 "${pkgdir}/etc/centrifugo"
59
install -Dm644 centrifugo.service -t "${pkgdir}/usr/lib/systemd/system"
60
install -Dm644 centrifugo.sysusers "${pkgdir}/usr/lib/sysusers.d/centrifugo.conf"
61
install -Dm644 centrifugo.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/centrifugo.conf"
62
install -Dm755 centrifugo/centrifugo -t "${pkgdir}/usr/bin"
63
}
64
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 11:47:37 | Low | 1 |