Date: Wed, 13 Sep 2017 13:34:47 +0000 (UTC) From: Torsten Zuehlsdorff <tz@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449783 - in head/devel/gitaly: . files Message-ID: <201709131334.v8DDYlVl034442@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tz Date: Wed Sep 13 13:34:47 2017 New Revision: 449783 URL: https://svnweb.freebsd.org/changeset/ports/449783 Log: devel/gitaly: Add default config and strip bin In order to make gitaly usable by www/gitlab it needs a default configuration. Therefore a sample config is now added. Reviewed by: Matthias Fechner <idefix@fechner.net> Added: head/devel/gitaly/files/ head/devel/gitaly/files/patch-config.toml.example (contents, props changed) head/devel/gitaly/pkg-plist (contents, props changed) Modified: head/devel/gitaly/Makefile Modified: head/devel/gitaly/Makefile ============================================================================== --- head/devel/gitaly/Makefile Wed Sep 13 13:22:14 2017 (r449782) +++ head/devel/gitaly/Makefile Wed Sep 13 13:34:47 2017 (r449783) @@ -3,6 +3,7 @@ PORTNAME= gitaly DISTVERSIONPREFIX= v DISTVERSION= 0.11.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://gitlab.com/gitlab-org/${PORTNAME}/repository/archive.tar.gz?ref=${DISTVERSIONPREFIX}${PORTVERSION}&dummy=/ @@ -17,12 +18,19 @@ BUILD_DEPENDS= go>=1.8:lang/go USES= gmake USE_RUBY= yes -PLIST_FILES= bin/gitaly - post-extract: - @${MV} ${WRKDIR}/${DISTNAME}-* ${WRKDIR}/${DISTNAME} + ${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}${PREFIX}/bin/gitaly + ${STRIP_CMD} ${STAGEDIR}${DATADIR}/bin/gitaly .include <bsd.port.mk> Added: head/devel/gitaly/files/patch-config.toml.example ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gitaly/files/patch-config.toml.example Wed Sep 13 13:34:47 2017 (r449783) @@ -0,0 +1,10 @@ +--- config.toml.example.orig 2017-09-01 10:24:38 UTC ++++ config.toml.example +@@ -1,6 +1,6 @@ + # Example Gitaly configuration file + +-socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket" ++socket_path = "/usr/local/www/gitlab/tmp/sockets/private/gitaly.socket" + + # # Optional: listen on a TCP socket. This is insecure (no authentication) + # listen_addr = "localhost:9999" Added: head/devel/gitaly/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gitaly/pkg-plist Wed Sep 13 13:34:47 2017 (r449783) @@ -0,0 +1,2 @@ +@(,,555) %%DATADIR%%/bin/gitaly +@sample %%DATADIR%%/config.toml.sample
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709131334.v8DDYlVl034442>