Changeset View
Changeset View
Standalone View
Standalone View
devel/gitaly/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gitaly | PORTNAME= gitaly | ||||
DISTVERSION= 1.77.0 | DISTVERSION= 1.83.0 | ||||
PORTREVISION= 1 | PORTREVISION= 0 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MAINTAINER= mfechner@FreeBSD.org | MAINTAINER= mfechner@FreeBSD.org | ||||
COMMENT= Smart reverse proxy for GitLab | COMMENT= Smart reverse proxy for GitLab | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
# define dependencies that are required for build and run under MY_DEPENDS | # define dependencies that are required for build and run under MY_DEPENDS | ||||
MY_DEPENDS= git>=2.21:devel/git \ | MY_DEPENDS= git>=2.21:devel/git \ | ||||
rubygem-bundler>=1.17.3:sysutils/rubygem-bundler \ | rubygem-bundler>=1.17.3:sysutils/rubygem-bundler \ | ||||
rubygem-rugged>=0.28<1.0:devel/rubygem-rugged \ | rubygem-rugged>=0.28<1.0:devel/rubygem-rugged \ | ||||
rubygem-github-linguist>=7.5<8.0:textproc/rubygem-github-linguist \ | rubygem-github-linguist>=7.5<8.0:textproc/rubygem-github-linguist \ | ||||
rubygem-gitlab-markup>=1.7.0<1.8.0:textproc/rubygem-gitlab-markup \ | rubygem-gitlab-markup>=1.7.0<1.8.0:textproc/rubygem-gitlab-markup \ | ||||
rubygem-activesupport52>=5.2.3<5.3.0:devel/rubygem-activesupport52 \ | rubygem-activesupport52>=5.2.3<5.3.0:devel/rubygem-activesupport52 \ | ||||
rubygem-rdoc>=6.0<7.0:devel/rubygem-rdoc \ | rubygem-rdoc>=6.1<7.0:devel/rubygem-rdoc \ | ||||
rubygem-gitlab-gollum-lib>=4.2.7.7<4.2.8.0:www/rubygem-gitlab-gollum-lib \ | rubygem-gitlab-gollum-lib>=4.2.7.7<4.2.8.0:www/rubygem-gitlab-gollum-lib \ | ||||
rubygem-gitlab-gollum-rugged_adapter>=0.4.4.2<0.4.5.0:www/rubygem-gitlab-gollum-rugged_adapter \ | rubygem-gitlab-gollum-rugged_adapter>=0.4.4.2<0.4.5.0:www/rubygem-gitlab-gollum-rugged_adapter \ | ||||
rubygem-grpc>=1.24.0<1.25.0:net/rubygem-grpc \ | rubygem-grpc>=1.24.0<1.25.0:net/rubygem-grpc \ | ||||
rubygem-sentry-raven29>=2.9.0<2.10.0:devel/rubygem-sentry-raven29 \ | rubygem-sentry-raven29>=2.9.0<2.10.0:devel/rubygem-sentry-raven29 \ | ||||
rubygem-faraday>=0.12<1.0:www/rubygem-faraday \ | rubygem-faraday>=0.12<1.0:www/rubygem-faraday \ | ||||
rubygem-rbtrace>0:devel/rubygem-rbtrace \ | rubygem-rbtrace>0:devel/rubygem-rbtrace \ | ||||
rubygem-gitlab-labkit>=0.5.0<0.6.0:devel/rubygem-gitlab-labkit \ | rubygem-gitlab-labkit>=0.8.0<0.9.0:devel/rubygem-gitlab-labkit \ | ||||
rubygem-licensee8>=8.9.0<8.10.0:devel/rubygem-licensee8 \ | rubygem-licensee8>=8.9.0<8.10.0:devel/rubygem-licensee8 \ | ||||
rubygem-google-protobuf38>=3.8.0<3.9.0:devel/rubygem-google-protobuf38 | rubygem-google-protobuf38>=3.8.0<3.9.0:devel/rubygem-google-protobuf38 | ||||
BUILD_DEPENDS= gem:devel/ruby-gems \ | BUILD_DEPENDS= gem:devel/ruby-gems \ | ||||
${MY_DEPENDS} | ${MY_DEPENDS} | ||||
RUN_DEPENDS= ${MY_DEPENDS} \ | RUN_DEPENDS= ${MY_DEPENDS} \ | ||||
gitlab-shell>=9.3.0:devel/gitlab-shell | gitlab-shell>=9.3.0:devel/gitlab-shell | ||||
USES= gmake go:modules,no_targets | USES= gmake go:modules,no_targets | ||||
USE_RUBY= yes | USE_RUBY= yes | ||||
MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}" | MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}" | ||||
USE_GITLAB= yes | USE_GITLAB= yes | ||||
GL_ACCOUNT= gitlab-org | GL_ACCOUNT= gitlab-org | ||||
# Find this here: https://gitlab.com/gitlab-org/gitaly/tags | # Find this here: https://gitlab.com/gitlab-org/gitaly/tags | ||||
GL_COMMIT= a4b6c71d4b7c1588587345e2dfe0c6bd7cc63a83 | GL_COMMIT= f63adf19271e150a338eb90479b7afeb94340ed9 | ||||
# for go dependencies | # for go dependencies | ||||
USE_GITHUB= nodefault | USE_GITHUB= nodefault | ||||
# generated with: make gomod-vendor | # generated with: make gomod-vendor | ||||
# 44dd | # 44dd | ||||
GH_TUPLE= \ | GH_TUPLE= \ | ||||
BurntSushi:toml:v0.3.1:burntsushi_toml/vendor/github.com/BurntSushi/toml \ | BurntSushi:toml:v0.3.1:burntsushi_toml/vendor/github.com/BurntSushi/toml \ | ||||
DataDog:dd-trace-go:v1.7.0:datadog_dd_trace_go/vendor/gopkg.in/DataDog/dd-trace-go.v1 \ | DataDog:dd-trace-go:v1.7.0:datadog_dd_trace_go/vendor/gopkg.in/DataDog/dd-trace-go.v1 \ | ||||
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \ | beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \ | ||||
client9:reopen:v1.0.0:client9_reopen/vendor/github.com/client9/reopen \ | client9:reopen:v1.0.0:client9_reopen/vendor/github.com/client9/reopen \ | ||||
cloudflare:tableflip:8392f1641731:cloudflare_tableflip/vendor/github.com/cloudflare/tableflip \ | cloudflare:tableflip:8392f1641731:cloudflare_tableflip/vendor/github.com/cloudflare/tableflip \ | ||||
codahale:hdrhistogram:3a0bb77429bd:codahale_hdrhistogram/vendor/github.com/codahale/hdrhistogram \ | codahale:hdrhistogram:3a0bb77429bd:codahale_hdrhistogram/vendor/github.com/codahale/hdrhistogram \ | ||||
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \ | davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \ | ||||
getsentry:sentry-go:v0.3.0:getsentry_sentry_go/vendor/github.com/getsentry/sentry-go \ | getsentry:sentry-go:v0.3.0:getsentry_sentry_go/vendor/github.com/getsentry/sentry-go \ | ||||
go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ | go-gorp:gorp:v1.7.2:go_gorp_gorp/vendor/gopkg.in/gorp.v1 \ | ||||
golang:crypto:4def268fd1a4:golang_crypto/vendor/golang.org/x/crypto \ | go-yaml:yaml:v2.2.5:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ | ||||
golang:net:d28f0bde5980:golang_net/vendor/golang.org/x/net \ | golang:net:3b0461eec859:golang_net/vendor/golang.org/x/net \ | ||||
golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \ | golang:protobuf:v1.3.2:golang_protobuf/vendor/github.com/golang/protobuf \ | ||||
golang:sync:112230192c58:golang_sync/vendor/golang.org/x/sync \ | golang:sync:cd5d95a43a6e:golang_sync/vendor/golang.org/x/sync \ | ||||
golang:sys:fde4db37ae7a:golang_sys/vendor/golang.org/x/sys \ | golang:sys:fde4db37ae7a:golang_sys/vendor/golang.org/x/sys \ | ||||
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \ | golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \ | ||||
google:go-genproto:bd91e49a0898:google_go_genproto/vendor/google.golang.org/genproto \ | google:go-genproto:bd91e49a0898:google_go_genproto/vendor/google.golang.org/genproto \ | ||||
google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \ | google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \ | ||||
grpc-ecosystem:go-grpc-middleware:v1.0.0:grpc_ecosystem_go_grpc_middleware/vendor/github.com/grpc-ecosystem/go-grpc-middleware \ | grpc-ecosystem:go-grpc-middleware:v1.0.0:grpc_ecosystem_go_grpc_middleware/vendor/github.com/grpc-ecosystem/go-grpc-middleware \ | ||||
grpc-ecosystem:go-grpc-prometheus:v1.2.0:grpc_ecosystem_go_grpc_prometheus/vendor/github.com/grpc-ecosystem/go-grpc-prometheus \ | grpc-ecosystem:go-grpc-prometheus:v1.2.0:grpc_ecosystem_go_grpc_prometheus/vendor/github.com/grpc-ecosystem/go-grpc-prometheus \ | ||||
grpc:grpc-go:v1.24.0:grpc_grpc_go/vendor/google.golang.org/grpc \ | grpc:grpc-go:v1.24.0:grpc_grpc_go/vendor/google.golang.org/grpc \ | ||||
kelseyhightower:envconfig:v1.3.0:kelseyhightower_envconfig/vendor/github.com/kelseyhightower/envconfig \ | kelseyhightower:envconfig:v1.3.0:kelseyhightower_envconfig/vendor/github.com/kelseyhightower/envconfig \ | ||||
konsorten:go-windows-terminal-sequences:v1.0.2:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \ | konsorten:go-windows-terminal-sequences:v1.0.2:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \ | ||||
lib:pq:v1.2.0:lib_pq/vendor/github.com/lib/pq \ | lib:pq:v1.2.0:lib_pq/vendor/github.com/lib/pq \ | ||||
libgit2:git2go:ecaeb7a21d47:libgit2_git2go/vendor/github.com/libgit2/git2go \ | libgit2:git2go:ecaeb7a21d47:libgit2_git2go/vendor/github.com/libgit2/git2go \ | ||||
lightstep:lightstep-tracer-go:v0.15.6:lightstep_lightstep_tracer_go/vendor/github.com/lightstep/lightstep-tracer-go \ | lightstep:lightstep-tracer-go:v0.15.6:lightstep_lightstep_tracer_go/vendor/github.com/lightstep/lightstep-tracer-go \ | ||||
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \ | matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \ | ||||
opentracing:opentracing-go:v1.0.2:opentracing_opentracing_go/vendor/github.com/opentracing/opentracing-go \ | opentracing:opentracing-go:v1.0.2:opentracing_opentracing_go/vendor/github.com/opentracing/opentracing-go \ | ||||
philhofer:fwd:v1.0.0:philhofer_fwd/vendor/github.com/philhofer/fwd \ | philhofer:fwd:v1.0.0:philhofer_fwd/vendor/github.com/philhofer/fwd \ | ||||
pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \ | pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \ | ||||
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \ | pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \ | ||||
prometheus:client_golang:v1.0.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \ | prometheus:client_golang:v1.0.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \ | ||||
prometheus:client_model:fd36f4220a90:prometheus_client_model/vendor/github.com/prometheus/client_model \ | prometheus:client_model:fd36f4220a90:prometheus_client_model/vendor/github.com/prometheus/client_model \ | ||||
prometheus:common:v0.4.1:prometheus_common/vendor/github.com/prometheus/common \ | prometheus:common:v0.4.1:prometheus_common/vendor/github.com/prometheus/common \ | ||||
prometheus:procfs:v0.0.3:prometheus_procfs/vendor/github.com/prometheus/procfs \ | prometheus:procfs:v0.0.3:prometheus_procfs/vendor/github.com/prometheus/procfs \ | ||||
rubenv:sql-migrate:06338513c237:rubenv_sql_migrate/vendor/github.com/rubenv/sql-migrate \ | |||||
sebest:xff:6c115e0ffa35:sebest_xff/vendor/github.com/sebest/xff \ | sebest:xff:6c115e0ffa35:sebest_xff/vendor/github.com/sebest/xff \ | ||||
sirupsen:logrus:v1.3.0:sirupsen_logrus/vendor/github.com/sirupsen/logrus \ | sirupsen:logrus:v1.4.2:sirupsen_logrus/vendor/github.com/sirupsen/logrus \ | ||||
stretchr:testify:v1.4.0:stretchr_testify/vendor/github.com/stretchr/testify \ | stretchr:testify:v1.4.0:stretchr_testify/vendor/github.com/stretchr/testify \ | ||||
tinylib:msgp:v1.1.0:tinylib_msgp/vendor/github.com/tinylib/msgp \ | tinylib:msgp:v1.1.0:tinylib_msgp/vendor/github.com/tinylib/msgp \ | ||||
uber:jaeger-client-go:v2.15.0:uber_jaeger_client_go/vendor/github.com/uber/jaeger-client-go \ | uber:jaeger-client-go:v2.15.0:uber_jaeger_client_go/vendor/github.com/uber/jaeger-client-go \ | ||||
uber:jaeger-lib:v1.5.0:uber_jaeger_lib/vendor/github.com/uber/jaeger-lib | uber:jaeger-lib:v1.5.0:uber_jaeger_lib/vendor/github.com/uber/jaeger-lib | ||||
GL_TUPLE= \ | GL_TUPLE= gitlab-org:labkit:3253d7975ca73714779c0a1fc95a27fb678071b6:gitlab_org_labkit/vendor/gitlab.com/gitlab-org/labkit | ||||
gitlab-org:labkit:3253d7975ca73714779c0a1fc95a27fb678071b6:gitlab_org_labkit/vendor/gitlab.com/gitlab-org/labkit | |||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/config.toml.example | ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/config.toml.example | ||||
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/ruby/gitlab-shell/config.yml.example | ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/ruby/gitlab-shell/config.yml.example | ||||
${MV} ${WRKSRC}/config.toml.example ${WRKSRC}/config.toml.sample | ${MV} ${WRKSRC}/config.toml.example ${WRKSRC}/config.toml.sample | ||||
${MV} ${WRKSRC}/ruby/gitlab-shell/config.yml.example ${WRKSRC}/ruby/gitlab-shell/config.yml.sample | ${MV} ${WRKSRC}/ruby/gitlab-shell/config.yml.example ${WRKSRC}/ruby/gitlab-shell/config.yml.sample | ||||
do-install: | do-install: | ||||
${MKDIR} ${STAGEDIR}${DATADIR} | ${MKDIR} ${STAGEDIR}${DATADIR} | ||||
${MKDIR} ${STAGEDIR}${DATADIR}/bin | ${MKDIR} ${STAGEDIR}${DATADIR}/bin | ||||
${FIND} ${WRKSRC} -name '*.orig' -delete | ${FIND} ${WRKSRC} -name '*.orig' -delete | ||||
${FIND} ${WRKSRC} -name "Gemfile.lock" -delete | ${FIND} ${WRKSRC} -name "Gemfile.lock" -delete | ||||
(cd ${WRKSRC}/_build/bin/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/bin && \ | (cd ${WRKSRC}/_build/bin/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/bin && \ | ||||
cd ${WRKSRC} && ${COPYTREE_SHARE} config.toml.sample ${STAGEDIR}${DATADIR}) && \ | cd ${WRKSRC} && ${COPYTREE_SHARE} config.toml.sample ${STAGEDIR}${DATADIR}) && \ | ||||
cd ${WRKSRC}/ruby && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/ruby | cd ${WRKSRC}/ruby && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/ruby | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||