From owner-svn-ports-head@freebsd.org Wed Sep 13 13:34:48 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8CD3E215BF; Wed, 13 Sep 2017 13:34:48 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82C2A6419D; Wed, 13 Sep 2017 13:34:48 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8DDYlsv034445; Wed, 13 Sep 2017 13:34:47 GMT (envelope-from tz@FreeBSD.org) Received: (from tz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8DDYlVl034442; Wed, 13 Sep 2017 13:34:47 GMT (envelope-from tz@FreeBSD.org) Message-Id: <201709131334.v8DDYlVl034442@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tz set sender to tz@FreeBSD.org using -f From: Torsten Zuehlsdorff Date: Wed, 13 Sep 2017 13:34:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449783 - in head/devel/gitaly: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tz X-SVN-Commit-Paths: in head/devel/gitaly: . files X-SVN-Commit-Revision: 449783 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 13:34:48 -0000 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 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 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