7bd78f9f5e
Matthias has proven himself as capable and enthusiastic enough to update www/gitlab on its own - which frees much of my time. :) I wrote an update guide for him and everybody interested in it: http://gitlab.toco-domains.de/FreeBSD/GitLab-docu/blob/master/update/how-to-update-the-freebsd-port.md
36 lines
909 B
Makefile
36 lines
909 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= gitaly
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.21.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://gitlab.com/gitlab-org/${PORTNAME}/repository/archive.tar.gz?ref=${DISTVERSIONPREFIX}${PORTVERSION}&dummy=/
|
|
|
|
MAINTAINER= idefix@fechner.net
|
|
COMMENT= Smart reverse proxy for GitLab
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= go>=1.8:lang/go
|
|
|
|
USES= gmake
|
|
USE_RUBY= yes
|
|
|
|
post-extract:
|
|
${MV} ${WRKDIR}/${DISTNAME}-* ${WRKDIR}/${DISTNAME}
|
|
|
|
post-patch:
|
|
${MV} ${WRKDIR}/${DISTNAME}/config.toml.example ${WRKDIR}/${DISTNAME}/config.toml.sample
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/bin
|
|
(cd ${WRKSRC}/_build/bin/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/bin && \
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} config.toml.sample ${STAGEDIR}${DATADIR})
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${DATADIR}/bin/gitaly
|
|
|
|
.include <bsd.port.mk>
|