2017-08-14 17:47:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gitaly
|
2018-04-14 18:24:38 +02:00
|
|
|
DISTVERSION= 0.91.0
|
2018-04-27 20:53:17 +02:00
|
|
|
PORTREVISION= 2
|
2017-08-14 17:47:55 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2017-12-05 17:44:09 +01:00
|
|
|
MAINTAINER= idefix@fechner.net
|
2017-08-14 17:47:55 +02:00
|
|
|
COMMENT= Smart reverse proxy for GitLab
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2018-04-05 18:21:14 +02:00
|
|
|
# define dependencies that are required for build and run under MY_DEPENDS
|
2018-04-14 18:24:38 +02:00
|
|
|
MY_DEPENDS= git>=2.16.2:devel/git \
|
|
|
|
rubygem-github-linguist53>=5.3.3:textproc/rubygem-github-linguist53 \
|
2018-04-05 18:21:14 +02:00
|
|
|
rubygem-bundler>0:sysutils/rubygem-bundler \
|
|
|
|
rubygem-gitlab-markup>=1.6.2:textproc/rubygem-gitlab-markup \
|
2018-04-14 18:24:38 +02:00
|
|
|
rubygem-gitaly-proto088>=0.88.0:net/rubygem-gitaly-proto088 \
|
2018-04-05 18:21:14 +02:00
|
|
|
rubygem-activesupport50>=5.0.2:devel/rubygem-activesupport50 \
|
|
|
|
rubygem-rdoc>=4.2:devel/rubygem-rdoc \
|
|
|
|
rubygem-gollum-lib-gitlab>=4.2.0:www/rubygem-gollum-lib-gitlab \
|
|
|
|
rubygem-gollum-rugged_adapter>=0.4.4:www/rubygem-gollum-rugged_adapter \
|
2018-04-14 18:24:38 +02:00
|
|
|
rubygem-grpc>=1.10.0:net/rubygem-grpc \
|
|
|
|
rubygem-sentry-raven>=2.7.2:devel/rubygem-sentry-raven \
|
|
|
|
rubygem-licensee8>=8.7:devel/rubygem-licensee8 \
|
2018-04-05 18:21:14 +02:00
|
|
|
rubygem-google-protobuf351>=3.5.1:devel/rubygem-google-protobuf351
|
|
|
|
|
|
|
|
BUILD_DEPENDS= go>=1.8:lang/go \
|
|
|
|
gem:devel/ruby-gems \
|
|
|
|
rubygem-bundler>0:sysutils/rubygem-bundler \
|
|
|
|
${MY_DEPENDS}
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${MY_DEPENDS} \
|
2018-04-14 18:24:38 +02:00
|
|
|
gitlab-shell>=6.0.4:devel/gitlab-shell
|
2017-08-14 17:47:55 +02:00
|
|
|
|
|
|
|
USES= gmake
|
|
|
|
USE_RUBY= yes
|
|
|
|
|
2018-04-05 18:21:14 +02:00
|
|
|
USE_GITLAB= yes
|
|
|
|
GL_ACCOUNT= gitlab-org
|
|
|
|
# Find this here: https://gitlab.com/gitlab-org/gitaly/tags
|
2018-04-14 18:24:38 +02:00
|
|
|
GL_COMMIT= 89298fe8b80b73a34352023555fe061866aff3ad
|
2017-09-13 15:34:47 +02:00
|
|
|
|
|
|
|
post-patch:
|
2018-04-05 18:21:14 +02:00
|
|
|
${MV} ${WRKSRC}/config.toml.example ${WRKSRC}/config.toml.sample
|
2017-09-13 15:34:47 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/bin
|
2018-04-05 18:21:14 +02:00
|
|
|
$(RM) -f ${WRKSRC}/ruby/Gemfile.orig
|
2017-09-13 15:34:47 +02:00
|
|
|
(cd ${WRKSRC}/_build/bin/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/bin && \
|
2018-04-05 18:21:14 +02:00
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} config.toml.sample ${STAGEDIR}${DATADIR}) && \
|
|
|
|
cd ${WRKSRC}/ruby && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/ruby
|
2017-08-14 17:47:55 +02:00
|
|
|
|
|
|
|
post-install:
|
2017-09-13 15:34:47 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/bin/gitaly
|
2018-04-05 18:21:14 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/bin/gitaly-ssh
|
2017-08-14 17:47:55 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|