Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2020 04:10:39 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r557697 - in head/shells: . anongitssh
Message-ID:  <202012110410.0BB4Ad6g016994@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Fri Dec 11 04:10:38 2020
New Revision: 557697
URL: https://svnweb.freebsd.org/changeset/ports/557697

Log:
  Add shells/anongitssh: Restricted shell for git-upload-pack over SSH
  
  Note: The default setting is for git.FreeBSD.org only and needs to be
        overridden and rebuilt for being useful in other setups.
  
  Support of config file and other improvements will be available in
  the upcoming updates.
  
  Discussed with: hrs
  Sponsored by:	The FreeBSD Foundation

Added:
  head/shells/anongitssh/
  head/shells/anongitssh/Makefile   (contents, props changed)
  head/shells/anongitssh/distinfo   (contents, props changed)
  head/shells/anongitssh/pkg-descr   (contents, props changed)
  head/shells/anongitssh/pkg-message   (contents, props changed)
  head/shells/anongitssh/pkg-plist   (contents, props changed)
Modified:
  head/shells/Makefile

Modified: head/shells/Makefile
==============================================================================
--- head/shells/Makefile	Fri Dec 11 03:19:10 2020	(r557696)
+++ head/shells/Makefile	Fri Dec 11 04:10:38 2020	(r557697)
@@ -5,6 +5,7 @@
 
     SUBDIR += 44bsd-csh
     SUBDIR += ammonite
+    SUBDIR += anongitssh
     SUBDIR += antibody
     SUBDIR += ast-ksh
     SUBDIR += bash

Added: head/shells/anongitssh/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/anongitssh/Makefile	Fri Dec 11 04:10:38 2020	(r557697)
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME=	anongitssh
+PORTVERSION=	0.2
+DISTVERSIONPREFIX=	v
+CATEGORIES=	shells
+
+MAINTAINER=	hrs@FreeBSD.org
+COMMENT=	Restricted shell for git-upload-pack over SSH
+
+LICENSE=	BSD2CLAUSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	hrs-allbsd
+MAKE_ARGS=	MK_INSTALL_AS_USER="yes" BINMODE=0555
+
+README_URL?=		https://git.FreeBSD.org/
+REPODIR_PREFIX?=	/home/git
+ANONGIT_USER?=		anongit
+CONTACT?=		git-admin@FreeBSD.org
+GITUPLOADPACK_PATH?=	/usr/local/bin/git-upload-pack
+.for D in README_URL REPODIR_PREFIX ANONGIT_USER CONTACT GITUPLOADPACK_PATH
+MAKE_ARGS+=	${D}=\"${$D}\"
+.endfor
+
+PORTDOCS=	README
+
+OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFAULT=DOCS
+
+pre-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+
+post-install-DOCS-on:
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/shells/anongitssh/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/anongitssh/distinfo	Fri Dec 11 04:10:38 2020	(r557697)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1606451618
+SHA256 (hrs-allbsd-anongitssh-v0.2_GH0.tar.gz) = 339d209c7f7287431c3ecc0e7119c2b871473895f0d761a3e2f8d8715b70db78
+SIZE (hrs-allbsd-anongitssh-v0.2_GH0.tar.gz) = 5225

Added: head/shells/anongitssh/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/anongitssh/pkg-descr	Fri Dec 11 04:10:38 2020	(r557697)
@@ -0,0 +1,6 @@
+anongitssh: a restricted shell for git-upload-pack over SSH
+
+Note: The default setting is for git.FreeBSD.org only and needs to be
+      overridden and rebuilt for being useful in other setups.
+
+WWW: https://github.com/hrs-allbsd/anongitssh/

Added: head/shells/anongitssh/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/anongitssh/pkg-message	Fri Dec 11 04:10:38 2020	(r557697)
@@ -0,0 +1,2 @@
+The default setting is for git.FreeBSD.org only and needs to be
+overridden and rebuilt for being useful in other setups.

Added: head/shells/anongitssh/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/anongitssh/pkg-plist	Fri Dec 11 04:10:38 2020	(r557697)
@@ -0,0 +1,5 @@
+@mode 4111
+libexec/anongitssh
+@mode
+share/man/man1/anongitssh.1.gz
+@shell libexec/anongitssh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012110410.0BB4Ad6g016994>