2017-08-14 17:47:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gitaly
|
2019-04-29 23:11:28 +02:00
|
|
|
DISTVERSION= 1.34.1
|
2019-04-25 21:15:04 +02:00
|
|
|
PORTREVISION= 0
|
2017-08-14 17:47:55 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2018-05-09 12:43:26 +02:00
|
|
|
MAINTAINER= mfechner@FreeBSD.org
|
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
|
2019-04-23 10:06:26 +02:00
|
|
|
MY_DEPENDS= git>=2.21:devel/git \
|
2018-11-23 16:01:58 +01:00
|
|
|
rubygem-bundler>=1.16.5:sysutils/rubygem-bundler \
|
2019-03-23 18:44:33 +01:00
|
|
|
rubygem-rugged>=0.28.0:devel/rubygem-rugged \
|
2018-11-23 16:01:58 +01:00
|
|
|
rubygem-github-linguist>=6.1:textproc/rubygem-github-linguist \
|
2019-04-23 10:06:26 +02:00
|
|
|
rubygem-gitlab-markup>=1.7.0:textproc/rubygem-gitlab-markup \
|
2019-04-25 21:15:04 +02:00
|
|
|
rubygem-gitaly-proto>=1.22.0:net/rubygem-gitaly-proto \
|
2018-04-05 18:21:14 +02:00
|
|
|
rubygem-activesupport50>=5.0.2:devel/rubygem-activesupport50 \
|
2018-07-04 19:30:59 +02:00
|
|
|
rubygem-rdoc>=6.0:devel/rubygem-rdoc \
|
2019-04-23 10:06:26 +02:00
|
|
|
rubygem-gitlab-gollum-lib>=4.2.7.7:www/rubygem-gitlab-gollum-lib \
|
|
|
|
rubygem-gitlab-gollum-rugged_adapter>=0.4.4.2:www/rubygem-gitlab-gollum-rugged_adapter \
|
2018-11-23 16:01:58 +01:00
|
|
|
rubygem-grpc>=1.15.0:net/rubygem-grpc \
|
2019-04-23 10:06:26 +02:00
|
|
|
rubygem-sentry-raven>=2.9.0:devel/rubygem-sentry-raven \
|
2018-07-04 19:30:59 +02:00
|
|
|
rubygem-faraday>=0.12:www/rubygem-faraday \
|
2019-03-02 12:51:11 +01:00
|
|
|
rubygem-rbtrace>0:devel/rubygem-rbtrace \
|
2018-06-21 17:32:00 +02:00
|
|
|
rubygem-licensee8>=8.9.0:devel/rubygem-licensee8 \
|
2018-11-23 16:01:58 +01:00
|
|
|
rubygem-google-protobuf>=3.6:devel/rubygem-google-protobuf
|
2019-04-23 10:06:26 +02:00
|
|
|
BUILD_DEPENDS= go>=1.11:lang/go \
|
2018-04-05 18:21:14 +02:00
|
|
|
gem:devel/ruby-gems \
|
|
|
|
${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
|
|
|
|
2018-05-07 21:20:13 +02:00
|
|
|
USES= gmake
|
2017-08-14 17:47:55 +02:00
|
|
|
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
|
2019-04-29 23:11:28 +02:00
|
|
|
GL_COMMIT= eecc26aa64353daa3d38077251f92dbe77c35c16
|
2017-09-13 15:34:47 +02:00
|
|
|
|
|
|
|
post-patch:
|
2018-07-18 23:53:13 +02:00
|
|
|
${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/config.toml.example
|
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-05-14 19:58:31 +02:00
|
|
|
${FIND} ${WRKSRC} -name '*.orig' -delete
|
|
|
|
${FIND} ${WRKSRC} -name "Gemfile.lock" -delete
|
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
|
|
|
|
|
|
|
.include <bsd.port.mk>
|