greenmask
LOW
maintainer agony4001
0 votes
scanned 2026-10-27 07:47:02.942332
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
4
pkgver=0.2.26
5
pkgrel=1
6
pkgdesc='PostgreSQL dump, anonymization and restore tool'
7
arch=('x86_64' 'aarch64')
8
url='https://github.com/GreenmaskIO/greenmask'
9
license=('Apache-2.0')
10
depends=('glibc' 'postgresql-libs')
11
makedepends=('go')
12
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
13
sha256sums=('2e77626183f52cf6309ed8db4d84ff143fe0e045d8b3c5d47d98d2e50e70a016')
14
15
prepare() {
16
cd "${pkgname}-${pkgver}"
17
export GOPATH="${srcdir}/gopath"
18
go mod download -modcacherw
19
}
20
21
build() {
22
cd "${pkgname}-${pkgver}"
23
export GOPATH="${srcdir}/gopath"
24
export CGO_CPPFLAGS="${CPPFLAGS}"
25
export CGO_CFLAGS="${CFLAGS}"
26
export CGO_CXXFLAGS="${CXXFLAGS}"
27
export CGO_LDFLAGS="${LDFLAGS}"
28
export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
29
go build -tags=viper_bind_struct \
30
-ldflags="-linkmode=external -X github.com/greenmaskio/greenmask/cmd/greenmask/cmd.Version=v${pkgver}" \
31
-o greenmask ./cmd/greenmask
32
for shell in bash fish zsh; do
33
./greenmask completion "${shell}" > "completion.${shell}"
34
done
35
}
36
37
package() {
38
cd "${pkgname}-${pkgver}"
39
install -Dm755 greenmask -t "${pkgdir}/usr/bin"
40
install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/greenmask"
41
install -Dm644 completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/greenmask.fish"
42
install -Dm644 completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_greenmask"
43
install -Dm644 config.yml.example -t "${pkgdir}/usr/share/doc/${pkgname}"
44
}
45
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 07:47:02 | Low | 1 |