blob: a6ffd0f3b2b44fd44e5f96e877237e9fb66d681c (
plain) (
tree)
|
|
PORTNAME= gitlab-runner
PORTVERSION= 14.1.0
CATEGORIES= devel
MASTER_SITES= https://gitlab-runner-downloads.s3.amazonaws.com/master/docker/:dockerx64 \
https://gitlab-runner-downloads.s3.amazonaws.com/master/docker/:dockerarm
DISTFILES= prebuilt-x86_64.tar.xz:dockerx64 \
prebuilt-arm.tar.xz:dockerarm
DIST_SUBDIR= gitlab-runner
EXTRACT_ONLY= ${ALLFILES:Nprebuilt*:}
MAINTAINER= swills@FreeBSD.org
COMMENT= Official GitLab Runner written in Go
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go-bindata:devel/go-bindata
RUN_DEPENDS= bash:shells/bash \
ca_root_nss>=0:security/ca_root_nss \
git:devel/git
USES= go:modules
USE_GITLAB= yes
USE_GITHUB= nodefault
# Find tags here:
# https://gitlab.com/gitlab-org/gitlab-runner/tags
GL_ACCOUNT= gitlab-org
GL_COMMIT= 8925d9a06fd8e452e2161a768462652a2a13111f
GITBRANCH= 14-1-stable
# https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-freebsd-amd64
BUILT= 2021-02-22T20:17:08+0000
GH_TUPLE= \
Azure:azure-pipeline-go:v0.2.3:azure_azure_pipeline_go/vendor/github.com/Azure/azure-pipeline-go \
Azure:azure-storage-blob-go:6df5d9af221d:azure_azure_storage_blob_go/vendor/github.com/Azure/azure-storage-blob-go \
Azure:go-ansiterm:d6e3b3328b78:azure_go_ansiterm/vendor/github.com/Azure/go-ansiterm \
Azure:go-autorest:autorest/v0.11.12:azure_go_autorest_autorest \
Azure:go-autorest:b3a0b30a7423:azure_go_autorest_date \
Azure:go-autorest:b8bf08c40b80:azure_go_autorest_adal \
Azure:go-autorest:logger/v0.2.0:azure_go_autorest_logger \
Azure:go-autorest:tracing/v0.6.0:azure_go_autorest_tracing \
Azure:go-autorest:v14.2.0:azure_go_autorest/vendor/github.com/Azure/go-autorest \
BurntSushi:toml:v0.3.1:burntsushi_toml/vendor/github.com/BurntSushi/toml \
Microsoft:go-winio:v0.4.12:microsoft_go_winio/vendor/github.com/Microsoft/go-winio \
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
bmatcuk:doublestar:v1.3.0:bmatcuk_doublestar/vendor/github.com/bmatcuk/doublestar \
boumenot:gocover-cobertura:v1.1.0:boumenot_gocover_cobertura/vendor/github.com/boumenot/gocover-cobertura \
census-instrumentation:opencensus-go:v0.22.5:census_instrumentation_opencensus_go/vendor/go.opencensus.io \
containerd:containerd:v1.4.3:containerd_containerd/vendor/github.com/containerd/containerd \
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
docker:cli:v20.10.2:docker_cli/vendor/github.com/docker/cli \
docker:distribution:v2.7.0:docker_distribution/vendor/github.com/docker/distribution \
docker:go-connections:v0.3.0:docker_go_connections/vendor/github.com/docker/go-connections \
docker:go-units:eb879ae3e2b8:docker_go_units/vendor/github.com/docker/go-units \
docker:machine:7b7a141da844:docker_machine/vendor/github.com/docker/machine \
form3tech-oss:jwt-go:v3.2.2:form3tech_oss_jwt_go/vendor/github.com/form3tech-oss/jwt-go \
fullsailor:pkcs7:d7302db945fa:fullsailor_pkcs7/vendor/github.com/fullsailor/pkcs7 \
getsentry:raven-go:dffeb57df75d:getsentry_raven_go/vendor/github.com/getsentry/raven-go \
go-inf:inf:v0.9.1:go_inf_inf/vendor/gopkg.in/inf.v0 \
go-ini:ini:v1.62.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
go-logr:logr:v0.4.0:go_logr_logr/vendor/github.com/go-logr/logr \
go-yaml:yaml:eeeca48fe776:go_yaml_yaml_1/vendor/gopkg.in/yaml.v3 \
go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
gogo:protobuf:v1.3.2:gogo_protobuf/vendor/github.com/gogo/protobuf \
golang:appengine:v1.6.7:golang_appengine/vendor/google.golang.org/appengine \
golang:crypto:5ea612d1eb83:golang_crypto/vendor/golang.org/x/crypto \
golang:groupcache:8c9f03a8e57e:golang_groupcache/vendor/github.com/golang/groupcache \
golang:lint:738671d3881b:golang_lint/vendor/golang.org/x/lint \
golang:mock:v1.4.4:golang_mock/vendor/github.com/golang/mock \
golang:mod:v0.4.0:golang_mod/vendor/golang.org/x/mod \
golang:net:3d97a244fca7:golang_net/vendor/golang.org/x/net \
golang:oauth2:0b49973bad19:golang_oauth2/vendor/golang.org/x/oauth2 \
golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \
golang:snappy:v0.0.1:golang_snappy/vendor/github.com/golang/snappy \
golang:sync:09787c993a3a:golang_sync/vendor/golang.org/x/sync \
golang:sys:f9321e4c35a6:golang_sys/vendor/golang.org/x/sys \
golang:term:6a3ed077a48d:golang_term/vendor/golang.org/x/term \
golang:text:v0.3.6:golang_text/vendor/golang.org/x/text \
golang:time:f8bda1e9f3ba:golang_time/vendor/golang.org/x/time \
golang:tools:113979e3529a:golang_tools/vendor/golang.org/x/tools \
golang:xerrors:5ec99f83aff1:golang_xerrors/vendor/golang.org/x/xerrors \
google:go-cloud:5094f54ed8bb:google_go_cloud/vendor/gocloud.dev \
google:go-cmp:v0.5.4:google_go_cmp/vendor/github.com/google/go-cmp \
google:go-genproto:6486ece9c497:google_go_genproto/vendor/google.golang.org/genproto \
google:gofuzz:v1.1.0:google_gofuzz/vendor/github.com/google/gofuzz \
google:uuid:v1.1.2:google_uuid/vendor/github.com/google/uuid \
google:wire:v0.4.0:google_wire/vendor/github.com/google/wire \
googleapis:gax-go:v2.0.2:googleapis_gax_go/vendor/github.com/googleapis/gax-go \
googleapis:gax-go:v2.0.5:googleapis_gax_go_v2 \
googleapis:gnostic:v0.4.1:googleapis_gnostic/vendor/github.com/googleapis/gnostic \
googleapis:google-api-go-client:v0.36.0:googleapis_google_api_go_client/vendor/google.golang.org/api \
googleapis:google-cloud-go:storage/v1.12.0:googleapis_google_cloud_go_storage \
googleapis:google-cloud-go:v0.72.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
gorhill:cronexpr:f0984319b442:gorhill_cronexpr/vendor/github.com/gorhill/cronexpr \
gorilla:context:v1.1.1:gorilla_context/vendor/github.com/gorilla/context \
gorilla:mux:599cba5e7b61:gorilla_mux/vendor/github.com/gorilla/mux \
gorilla:websocket:v1.4.2:gorilla_websocket/vendor/github.com/gorilla/websocket \
grpc:grpc-go:v1.34.0:grpc_grpc_go/vendor/google.golang.org/grpc \
hashicorp:errwrap:v1.0.0:hashicorp_errwrap/vendor/github.com/hashicorp/errwrap \
hashicorp:go-cleanhttp:v0.5.1:hashicorp_go_cleanhttp/vendor/github.com/hashicorp/go-cleanhttp \
hashicorp:go-multierror:v1.0.0:hashicorp_go_multierror/vendor/github.com/hashicorp/go-multierror \
hashicorp:go-retryablehttp:v0.5.4:hashicorp_go_retryablehttp/vendor/github.com/hashicorp/go-retryablehttp \
hashicorp:go-rootcerts:v1.0.1:hashicorp_go_rootcerts/vendor/github.com/hashicorp/go-rootcerts \
hashicorp:go-sockaddr:v1.0.2:hashicorp_go_sockaddr/vendor/github.com/hashicorp/go-sockaddr \
hashicorp:go-version:v1.2.1:hashicorp_go_version/vendor/github.com/hashicorp/go-version \
hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
hashicorp:vault:api/v1.0.4:hashicorp_vault_api/vendor/github.com/hashicorp/vault \
hashicorp:vault:sdk/v0.1.13:hashicorp_vault_sdk \
imdario:mergo:v0.3.7:imdario_mergo/vendor/github.com/imdario/mergo \
jpillora:backoff:06c7a16c845d:jpillora_backoff/vendor/github.com/jpillora/backoff \
json-iterator:go:v1.1.10:json_iterator_go/vendor/github.com/json-iterator/go \
jstemmer:go-junit-report:v0.9.1:jstemmer_go_junit_report/vendor/github.com/jstemmer/go-junit-report \
kardianos:osext:c2c54e542fb7:kardianos_osext/vendor/github.com/kardianos/osext \
kardianos:service:v1.2.0:kardianos_service/vendor/github.com/kardianos/service \
klauspost:compress:v1.11.6:klauspost_compress/vendor/github.com/klauspost/compress \
klauspost:cpuid:v1.3.1:klauspost_cpuid/vendor/github.com/klauspost/cpuid \
klauspost:pgzip:v1.2.5:klauspost_pgzip/vendor/github.com/klauspost/pgzip \
kr:pty:v1.1.5:kr_pty/vendor/github.com/kr/pty \
kubernetes-sigs:structured-merge-diff:v4.1.0:kubernetes_sigs_structured_merge_diff/vendor/sigs.k8s.io/structured-merge-diff/v4 \
kubernetes-sigs:yaml:v1.2.0:kubernetes_sigs_yaml/vendor/sigs.k8s.io/yaml \
kubernetes:api:v0.21.1:kubernetes_api/vendor/k8s.io/api \
kubernetes:apimachinery:v0.21.1:kubernetes_apimachinery/vendor/k8s.io/apimachinery \
kubernetes:client-go:v0.21.1:kubernetes_client_go/vendor/k8s.io/client-go \
kubernetes:klog:v2.8.0:kubernetes_klog/vendor/k8s.io/klog/v2 \
kubernetes:utils:67b214c5f920:kubernetes_utils/vendor/k8s.io/utils \
mattn:go-ieproxy:v0.0.1:mattn_go_ieproxy/vendor/github.com/mattn/go-ieproxy \
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
minio:md5-simd:v1.1.1:minio_md5_simd/vendor/github.com/minio/md5-simd \
minio:minio-go:v6.0.57:minio_minio_go_v6/vendor/github.com/minio/minio-go/v6 \
minio:sha256-simd:v0.1.1:minio_sha256_simd/vendor/github.com/minio/sha256-simd \
mitchellh:go-homedir:v1.1.0:mitchellh_go_homedir/vendor/github.com/mitchellh/go-homedir \
mitchellh:gox:v1.0.1:mitchellh_gox/vendor/github.com/mitchellh/gox \
mitchellh:iochan:v1.0.0:mitchellh_iochan/vendor/github.com/mitchellh/iochan \
mitchellh:mapstructure:v1.4.0:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
moby:moby:v0.4.1:moby_moby_1/vendor/github.com/docker/docker-credential-helpers \
moby:moby:v20.10.2:moby_moby/vendor/github.com/docker/docker \
moby:spdystream:v0.2.0:moby_spdystream/vendor/github.com/moby/spdystream \
moby:term:df9cb8a40635:moby_term/vendor/github.com/moby/term \
modern-go:concurrent:bacd9c7ef1dd:modern_go_concurrent/vendor/github.com/modern-go/concurrent \
modern-go:reflect2:v1.0.1:modern_go_reflect2/vendor/github.com/modern-go/reflect2 \
morikuni:aec:v1.0.0:morikuni_aec/vendor/github.com/morikuni/aec \
opencontainers:go-digest:v1.0.0-rc1:opencontainers_go_digest/vendor/github.com/opencontainers/go-digest \
opencontainers:image-spec:v1.0.1:opencontainers_image_spec/vendor/github.com/opencontainers/image-spec \
pierrec:lz4:v2.0.5:pierrec_lz4/vendor/github.com/pierrec/lz4 \
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
prometheus:client_golang:v1.1.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
prometheus:client_model:14fe0d1b01d4:prometheus_client_model/vendor/github.com/prometheus/client_model \
prometheus:common:v0.6.0:prometheus_common/vendor/github.com/prometheus/common \
prometheus:procfs:v0.0.5:prometheus_procfs/vendor/github.com/prometheus/procfs \
protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
ryanuber:go-glob:v1.0.0:ryanuber_go_glob/vendor/github.com/ryanuber/go-glob \
saracen:fastzip:v0.1.5:saracen_fastzip/vendor/github.com/saracen/fastzip \
saracen:zipextra:7347a2ee3f10:saracen_zipextra/vendor/github.com/saracen/zipextra \
sirupsen:logrus:v1.7.0:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
square:go-jose:v2.3.1:square_go_jose/vendor/gopkg.in/square/go-jose.v2 \
stretchr:objx:v0.3.0:stretchr_objx/vendor/github.com/stretchr/objx \
stretchr:testify:95a9d909e987:stretchr_testify/vendor/github.com/stretchr/testify \
tevino:abool:3c25f2fe7cd0:tevino_abool/vendor/github.com/tevino/abool \
urfave:cli:v1.20.0:urfave_cli/vendor/github.com/urfave/cli
GL_TUPLE= ayufan:golang-cli-helpers:a7cf72d604cdf0af6031dd5d54a4e513abeff0d4:ayufan_golang_cli_helpers/vendor/gitlab.com/ayufan/golang-cli-helpers \
gitlab-org:gitlab-terminal:2a71b03b44621289b28493d8bf3eaa9f64dbb6c9:gitlab_org_gitlab_terminal/vendor/gitlab.com/gitlab-org/gitlab-terminal
GO_BUILDFLAGS= -ldflags=" \
-X gitlab.com/gitlab-org/gitlab-runner/common.VERSION=${PORTVERSION} \
-X gitlab.com/gitlab-org/gitlab-runner/common.REVISION=${GL_COMMIT:C/^(........).*/\1/} \
-X gitlab.com/gitlab-org/gitlab-runner/common.BUILT=${BUILT} \
-X gitlab.com/gitlab-org/gitlab-runner/common.BRANCH=${GITBRANCH} \
-s -w"
PLIST_FILES= bin/gitlab-runner
USE_RC_SUBR= gitlab_runner
USERS= gitlab-runner
GROUPS= gitlab-runner
post-extract:
@${RM} -r ${WRKSRC}/vendor/cloud.google.com/go/storage
@${RLN} ${WRKSRC_googleapis_google_cloud_go_storage}/storage ${WRKSRC}/vendor/cloud.google.com/go/storage
@${RM} -r ${WRKSRC}/vendor/github.com/Azure/go-autorest/autorest
@${RLN} ${WRKSRC_azure_go_autorest_autorest}/autorest ${WRKSRC}/vendor/github.com/Azure/go-autorest/autorest
@${RM} -r ${WRKSRC}/vendor/github.com/Azure/go-autorest/autorest/adal
@${RLN} ${WRKSRC_azure_go_autorest_adal}/autorest/adal ${WRKSRC}/vendor/github.com/Azure/go-autorest/autorest/adal
@${RM} -r ${WRKSRC}/vendor/github.com/Azure/go-autorest/autorest/date
@${RLN} ${WRKSRC_azure_go_autorest_date}/autorest/date ${WRKSRC}/vendor/github.com/Azure/go-autorest/autorest/date
@${RM} -r ${WRKSRC}/vendor/github.com/Azure/go-autorest/logger
@${RLN} ${WRKSRC_azure_go_autorest_logger}/logger ${WRKSRC}/vendor/github.com/Azure/go-autorest/logger
@${RM} -r ${WRKSRC}/vendor/github.com/Azure/go-autorest/tracing
@${RLN} ${WRKSRC_azure_go_autorest_tracing}/tracing ${WRKSRC}/vendor/github.com/Azure/go-autorest/tracing
@${RM} -r ${WRKSRC}/vendor/github.com/googleapis/gax-go/v2
@${RLN} ${WRKSRC_googleapis_gax_go_v2}/v2 ${WRKSRC}/vendor/github.com/googleapis/gax-go/v2
@${RM} -r ${WRKSRC}/vendor/github.com/hashicorp/vault/sdk
@${RLN} ${WRKSRC_hashicorp_vault_sdk}/sdk ${WRKSRC}/vendor/github.com/hashicorp/vault/sdk
post-patch:
@${MKDIR} ${WRKSRC}/out/docker/
@${CP} ${DISTDIR}/${DIST_SUBDIR}/prebuilt-x86_64.tar.xz ${WRKSRC}/out/docker/
@${CP} ${DISTDIR}/${DIST_SUBDIR}/prebuilt-arm.tar.xz ${WRKSRC}/out/docker/
pre-build:
@cd ${WRKSRC} && go-bindata \
-pkg docker \
-nocompress \
-nomemcopy \
-nometadata \
-prefix out/docker/ \
-o executors/docker/bindata.go \
out/docker/prebuilt-x86_64.tar.xz \
out/docker/prebuilt-arm.tar.xz
.include <bsd.port.mk>
|