Skip to content

Commit 43fdfd0

Browse files
amoreyherbygillot
authored andcommitted
kubetail: update to 0.10.1 and refactor Portfile
Signed-off-by: Andres Morey <[email protected]>
1 parent f67daec commit 43fdfd0

File tree

1 file changed

+17
-43
lines changed

1 file changed

+17
-43
lines changed

devel/kubetail/Portfile

Lines changed: 17 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
22

33
PortSystem 1.0
4-
PortGroup github 1.0
4+
PortGroup golang 1.0
55

6-
github.setup kubetail-org kubetail 0.9.0 cli/v
7-
github.tarball_from archive
6+
go.setup github.com/kubetail-org/kubetail 0.10.1 cli/v
7+
github.tarball_from releases
88
revision 0
99

10-
master_sites-append https://github.com/${github.author}/${github.project}/releases/download/${github.tag_prefix}${github.version}/:vendor
11-
12-
distfiles-append vendor-bundle-${version}-go.tar.zst:vendor \
13-
vendor-bundle-${version}-pnpm.tar.zst:vendor
10+
distname kubetail-${version}-vendored
1411

1512
supported_archs arm64 x86_64
1613

@@ -25,42 +22,19 @@ long_description Kubetail is a general-purpose logging tool for Kubernetes, o
2522
merged into a single, chronological timeline, in a browser or a \
2623
terminal.
2724

28-
checksums kubetail-${version}.tar.gz \
29-
rmd160 5f33993dfab8648a826ceff25be8d6e8940f3dfa \
30-
sha256 f71cf335f81e76f882efe11feed4ed8af691cc1d9fa8f6b5ee630ee22a99dabb \
31-
size 618012 \
32-
vendor-bundle-${version}-go.tar.zst \
33-
rmd160 608c21e6ca3981b7c8a641c06bf4c1361f2345b9 \
34-
sha256 01f4f1c95315a72508397c379c34e01cc1b6f25095431289ab95e2614cb65d6f \
35-
size 13630282 \
36-
vendor-bundle-${version}-pnpm.tar.zst \
37-
rmd160 b92a85689dc351c41adb56adf2db16e594fbfcb7 \
38-
sha256 30c7e8e9c9efba953a59efbdd5acc774aacf117d602bf2ab20fb4c0fa5dcd155 \
39-
size 242703827
40-
41-
extract.only ${github.project}-${github.version}${extract.suffix}
42-
43-
post-extract {
44-
system -W ${worksrcpath} "zstd -d ${distpath}/vendor-bundle-${version}-go.tar.zst --stdout | tar -xf -"
45-
system -W ${worksrcpath} "mv vendor modules/"
46-
47-
system -W ${worksrcpath} "zstd -d ${distpath}/vendor-bundle-${version}-pnpm.tar.zst --stdout | tar -xf -"
48-
system -W ${worksrcpath} "mv pnpm-store dashboard-ui/.pnpm-store"
49-
}
50-
51-
use_configure no
52-
53-
pre-build {
54-
system -W ${worksrcpath}/dashboard-ui "pnpm config set store-dir .pnpm-store"
55-
}
56-
57-
build.cmd make
58-
build.target build
59-
build.env-append GOFLAGS="-mod=vendor"
60-
build.args-append VERSION=${version}
61-
62-
depends_build-append port:go port:pnpm
63-
depends_extract port:zstd
25+
checksums ${distname}${extract.suffix} \
26+
rmd160 5e02aff80aef29ef9b0f7adc7d877d8bc9451cf2 \
27+
sha256 e6ea584bdd1fa20f35059bf97ffce8c42998e70d905b5660991090c2a52e9b8f \
28+
size 21426066
29+
30+
build.env-append GO111MODULE=on \
31+
GOWORK=off \
32+
CGO_ENABLED=0
33+
build.dir ${worksrcpath}/modules/cli
34+
build.args-append \
35+
-mod=vendor \
36+
-ldflags \"-s -w -X ${go.package}/modules/cli/cmd.version=${version}\" \
37+
-o ../../bin/kubetail
6438

6539
destroot {
6640
xinstall -m 0755 ${worksrcpath}/bin/kubetail ${destroot}${prefix}/bin/kubetail

0 commit comments

Comments
 (0)