Changeset View
Changeset View
Standalone View
Standalone View
devel/gitlab-shell/Makefile
# Created by: Torsten Zuehlsdorff <tz@FreeBSD.org> | # Created by: Torsten Zuehlsdorff <tz@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gitlab-shell | PORTNAME?= gitlab-shell | ||||
PORTVERSION= 13.6.0 | PORTVERSION?= 13.6.0 | ||||
PORTREVISION?= 0 | |||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MAINTAINER= mfechner@FreeBSD.org | MAINTAINER?= mfechner@FreeBSD.org | ||||
COMMENT= GitLab Shell handles git commands for GitLab | COMMENT?= GitLab Shell handles git commands for GitLab | ||||
LICENSE= MIT | LICENSE= MIT | ||||
BUILD_DEPENDS= rubygem-bundler1=1.17.3:sysutils/rubygem-bundler1 | BUILD_DEPENDS= rubygem-bundler1=1.17.3:sysutils/rubygem-bundler1 | ||||
USES= gmake go:modules,no_targets | USES= gmake go:modules,no_targets | ||||
MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}" | MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}" | ||||
ALL_TARGET= build | ALL_TARGET= build | ||||
USE_GITLAB= yes | USE_GITLAB= yes | ||||
GL_ACCOUNT= gitlab-org | GL_ACCOUNT?= gitlab-org | ||||
# Find the commit hash here: https://gitlab.com/gitlab-org/gitlab-shell/tags | # Find the commit hash here: https://gitlab.com/gitlab-org/gitlab-shell/tags | ||||
GL_COMMIT= fa730d2f859671f54c6f88bf2551fc771a1a5e6a | GL_COMMIT?= fa730d2f859671f54c6f88bf2551fc771a1a5e6a | ||||
USERS= git | USERS= git | ||||
GROUPS= git | GROUPS= git | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
# for go dependencies | # for go dependencies | ||||
USE_GITHUB= nodefault | USE_GITHUB= nodefault | ||||
Show All 27 Lines | GH_TUPLE= \ | ||||
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= gitlab-org:gitaly:aa1ff2a76ac14e1ad3eca35cc05ea86ef59fffbb:gitlab_org_gitaly/vendor/gitlab.com/gitlab-org/gitaly \ | GL_TUPLE= gitlab-org:gitaly:aa1ff2a76ac14e1ad3eca35cc05ea86ef59fffbb:gitlab_org_gitaly/vendor/gitlab.com/gitlab-org/gitaly \ | ||||
gitlab-org:labkit:0149780c759d60f61fcfe1648fb882ba7ec41f3f:gitlab_org_labkit/vendor/gitlab.com/gitlab-org/labkit | gitlab-org:labkit:0149780c759d60f61fcfe1648fb882ba7ec41f3f:gitlab_org_labkit/vendor/gitlab.com/gitlab-org/labkit | ||||
VARLOGDIR?= /var/log/gitlab-shell | |||||
PLIST_FILES+= "@dir(git,,755) ${VARLOGDIR}" | |||||
post-patch: | post-patch: | ||||
${MV} ${WRKSRC}/config.yml.example ${WRKSRC}/config.yml.sample | ${MV} ${WRKSRC}/config.yml.example ${WRKSRC}/config.yml.sample | ||||
${CP} ${WRKSRC}/config.yml.sample ${WRKSRC}/config.yml | ${CP} ${WRKSRC}/config.yml.sample ${WRKSRC}/config.yml | ||||
# Build the go deps, use `pkg install modules2tuple` | # Build the go deps, use `pkg install modules2tuple` | ||||
gomod-deps: patch | gomod-deps: patch | ||||
(cd ${WRKSRC} && go mod vendor) | (cd ${WRKSRC} && go mod vendor) | ||||
(cd ${WRKSRC} && modules2tuple vendor/modules.txt) | (cd ${WRKSRC} && modules2tuple vendor/modules.txt) | ||||
Show All 10 Lines | |||||
.for x in .codeclimate.yml .gitignore .gitlab-ci.yml .rubocop.yml .ruby-version CHANGELOG CONTRIBUTING.md Gemfile Gemfile.lock LICENSE README.md VERSION config.yml.sample | .for x in .codeclimate.yml .gitignore .gitlab-ci.yml .rubocop.yml .ruby-version CHANGELOG CONTRIBUTING.md Gemfile Gemfile.lock LICENSE README.md VERSION config.yml.sample | ||||
${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DATADIR}/ | ${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DATADIR}/ | ||||
.endfor | .endfor | ||||
.for x in bin spec hooks support .gitlab | .for x in bin spec hooks support .gitlab | ||||
@${MKDIR} ${STAGEDIR}${DATADIR}/${x} | @${MKDIR} ${STAGEDIR}${DATADIR}/${x} | ||||
(cd ${WRKSRC}/${x} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${x}) | (cd ${WRKSRC}/${x} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${x}) | ||||
.endfor | .endfor | ||||
@${MKDIR} ${STAGEDIR}/var/log/gitlab-shell | @${MKDIR} ${STAGEDIR}${VARLOGDIR} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |