From owner-svn-ports-head@freebsd.org Thu Oct 27 21:21:13 2016 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 E6A34C2456E; Thu, 27 Oct 2016 21:21:13 +0000 (UTC) (envelope-from jbeich@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 A979866D; Thu, 27 Oct 2016 21:21:13 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9RLLClD077901; Thu, 27 Oct 2016 21:21:12 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9RLLCw3077896; Thu, 27 Oct 2016 21:21:12 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201610272121.u9RLLCw3077896@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 27 Oct 2016 21:21:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424794 - in head/sysutils: . fusefs-gitfs fusefs-gitfs/files X-SVN-Group: ports-head 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: Thu, 27 Oct 2016 21:21:14 -0000 Author: jbeich Date: Thu Oct 27 21:21:12 2016 New Revision: 424794 URL: https://svnweb.freebsd.org/changeset/ports/424794 Log: sysutils/fusefs-gitfs: add new port Based on: ports-mgmt/py-pytoport output gitfs is a FUSE file system that fully integrates with git. You can mount a remote repository's branch locally, and any subsequent changes made to the files will be automatically committed to the remote. http://www.presslabs.com/gitfs/ Added: head/sysutils/fusefs-gitfs/ head/sysutils/fusefs-gitfs/Makefile (contents, props changed) head/sysutils/fusefs-gitfs/distinfo (contents, props changed) head/sysutils/fusefs-gitfs/files/ head/sysutils/fusefs-gitfs/files/patch-gitfs_utils_args.py (contents, props changed) head/sysutils/fusefs-gitfs/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile (contents, props changed) Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Thu Oct 27 21:18:50 2016 (r424793) +++ head/sysutils/Makefile Thu Oct 27 21:21:12 2016 (r424794) @@ -330,6 +330,7 @@ SUBDIR += fusefs-funionfs SUBDIR += fusefs-fusepak SUBDIR += fusefs-fusexmp_fh + SUBDIR += fusefs-gitfs SUBDIR += fusefs-gnome-vfs SUBDIR += fusefs-gstfs SUBDIR += fusefs-gunzip Added: head/sysutils/fusefs-gitfs/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-gitfs/Makefile Thu Oct 27 21:21:12 2016 (r424794) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= gitfs +DISTVERSION= 0.4.4-2 +DISTVERSIONSUFFIX= -g2f37201 +CATEGORIES= sysutils +PKGNAMEPREFIX= fusefs- + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Version controlled file system + +LICENSE= APACHE20 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}atomiclong>0:devel/py-atomiclong \ + ${PYTHON_PKGNAMEPREFIX}fusepy>=2.0.2:devel/py-fusepy \ + ${PYTHON_PKGNAMEPREFIX}pygit2>=0.24.1:devel/py-pygit2 \ + ${PYTHON_PKGNAMEPREFIX}raven>=5.27.0:devel/py-raven \ + ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.6.1:devel/py-pytest + +USE_GITHUB= yes +GH_ACCOUNT= PressLabs + +NO_ARCH= yes +USES= python +USE_PYTHON= autoplist distutils + +post-patch: + @${REINPLACE_CMD} -e 's/==/>=/' ${WRKSRC}/*requirements.txt + +# XXX Integrations tests want MOUNT_PATH, REPO_* passed via TEST_ENV +do-test: + @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) + +.include + +.if ${PYTHON_REL} < 3300 +TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:devel/py-mock +.else +post-patch: patch-py3k-mock +patch-py3k-mock: + @${GREP} -Flr 'mock import' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ + -i .bak.mock -e 's/mock import/unittest.&/' +.endif + +.include Added: head/sysutils/fusefs-gitfs/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-gitfs/distinfo Thu Oct 27 21:21:12 2016 (r424794) @@ -0,0 +1,3 @@ +TIMESTAMP = 1477478547 +SHA256 (PressLabs-gitfs-0.4.4-2-g2f37201_GH0.tar.gz) = 88c2d9f671fdcfc1ccb2ecdc342f4d20a3c0c66d5d43735327ee18a4f96de5ce +SIZE (PressLabs-gitfs-0.4.4-2-g2f37201_GH0.tar.gz) = 57553 Added: head/sysutils/fusefs-gitfs/files/patch-gitfs_utils_args.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-gitfs/files/patch-gitfs_utils_args.py Thu Oct 27 21:21:12 2016 (r424794) @@ -0,0 +1,36 @@ +https://github.com/PressLabs/gitfs/issues/258 +https://github.com/PressLabs/gitfs/issues/257 + +--- gitfs/utils/args.py.orig 2016-10-19 15:12:59 UTC ++++ gitfs/utils/args.py +@@ -43,7 +43,7 @@ class Args(object): + ("foreground", (False, "bool")), + ("branch", ("master", "string")), + ("allow_other", (False, "bool")), +- ("allow_root", (True, "bool")), ++ ("allow_root", (False, "bool")), + ("commiter_name", (self.get_commiter_user, "string")), + ("commiter_email", (self.get_commiter_email, "string")), + ("max_size", (10, "float")), +@@ -71,12 +71,6 @@ class Args(object): + return self.check_args(self.set_defaults(args)) + + def check_args(self, args): +- # check allow_other and allow_root +- if args.allow_other: +- args.allow_root = False +- else: +- args.allow_root = True +- + # check log_level + if args.debug: + args.log_level = 'debug' +@@ -169,7 +163,7 @@ class Args(object): + return "{}@{}".format(args.user, socket.gethostname()) + + def get_repo_path(self, args): +- return tempfile.mkdtemp(dir="/var/lib/gitfs") ++ return tempfile.mkdtemp(prefix="gitfs") + + def get_ssh_key(self, args): + return os.environ["HOME"] + "/.ssh/id_rsa" Added: head/sysutils/fusefs-gitfs/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fusefs-gitfs/pkg-descr Thu Oct 27 21:21:12 2016 (r424794) @@ -0,0 +1,5 @@ +gitfs is a FUSE file system that fully integrates with git. You can +mount a remote repository's branch locally, and any subsequent changes +made to the files will be automatically committed to the remote. + +WWW: http://www.presslabs.com/gitfs/