ports/sysutils/prometheus/patches/patch-_promu_yml

25 lines
1.3 KiB
Text

Don't include user and hostname into build and build verbose.
Index: .promu.yml
--- .promu.yml.orig
+++ .promu.yml
@@ -16,13 +16,13 @@ build:
- builtinassets
windows:
- builtinassets
- flags: -a
+ flags: -v -a
ldflags: |
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Revision}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
- -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Version={{.Version}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.Branch={{.Branch}}
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.BuildUser=OpenBSD
+ -X github.com/prometheus/prometheus/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball:
# Whenever there are new files to include in the tarball,
# remember to make sure the new files will be generated after `make build`.