aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gitlab-shell/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gitlab-shell/Makefile')
-rw-r--r--devel/gitlab-shell/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/devel/gitlab-shell/Makefile b/devel/gitlab-shell/Makefile
index 0b94a6f7937a..4f58b9adea84 100644
--- a/devel/gitlab-shell/Makefile
+++ b/devel/gitlab-shell/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gitlab-shell
-PORTVERSION= 5.0.4
+PORTVERSION= 5.1.1
CATEGORIES= devel
MASTER_SITES= https://gitlab.com/gitlab-org/${PORTNAME}/repository/archive.tar.gz?ref=v${PORTVERSION}&dummy=/
DISTNAME= ${PORTNAME}-v${PORTVERSION}
@@ -10,7 +10,8 @@ DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= tz@FreeBSD.org
COMMENT= GitLab Shell handles git commands for GitLab
-BUILD_DEPENDS= gem:devel/ruby-gems
+BUILD_DEPENDS= gem:devel/ruby-gems \
+ go>=1.5.3:lang/go
USERS= git
GROUPS= git
@@ -24,9 +25,18 @@ post-extract:
post-patch:
${MV} ${WRKSRC}/config.yml.example ${WRKSRC}/config.yml.sample
+pre-install:
+ ${WRKSRC}/bin/compile
+ ${RM} -rf ${WRKSRC}/go
+ ${RM} -rf ${WRKSRC}/go_build
+
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}/var/log/gitlab-shell
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${DATADIR}/bin/gitaly-upload-pack
+ ${STRIP_CMD} ${STAGEDIR}${DATADIR}/bin/gitaly-receive-pack
+
.include <bsd.port.mk>