greenmask-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=greenmask-git
4
pkgver=r602.3a1befc
5
pkgrel=1
6
pkgdesc='PostgreSQL dump, anonymization and restore tool (git version)'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/GreenmaskIO/greenmask'
9
license=('Apache-2.0')
10
depends=('glibc' 'postgresql-libs')
11
makedepends=('git' 'go')
12
provides=('greenmask')
13
conflicts=('greenmask')
14
source=("greenmask::git+${url}.git")
15
sha256sums=('SKIP')
16
17
pkgver() {
18
cd greenmask
19
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
20
}
21
22
prepare() {
23
cd greenmask
24
export GOPATH="${srcdir}/gopath"
25
go mod download -x -modcacherw
26
}
27
28
build() {
29
cd greenmask
30
export GOPATH="${srcdir}/gopath"
31
export CGO_CPPFLAGS="${CPPFLAGS}"
32
export CGO_CFLAGS="${CFLAGS}"
33
export CGO_CXXFLAGS="${CXXFLAGS}"
34
export CGO_LDFLAGS="${LDFLAGS}"
35
export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
36
local version
37
version=$(git describe --tags)
38
go build -v -tags=viper_bind_struct \
39
-ldflags="-linkmode=external -X github.com/greenmaskio/greenmask/cmd/greenmask/cmd.Version=${version}" \
40
-o greenmask ./cmd/greenmask
41
for shell in bash fish zsh; do
42
./greenmask completion "${shell}" > "completion.${shell}"
43
done
44
}
45
46
package() {
47
cd greenmask
48
install -Dm755 greenmask -t "${pkgdir}/usr/bin"
49
install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/greenmask"
50
install -Dm644 completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/greenmask.fish"
51
install -Dm644 completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_greenmask"
52
install -Dm644 config.yml.example -t "${pkgdir}/usr/share/doc/${pkgname}"
53
}
54
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 11:47:37 | Low | 1 |