1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

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
This commit is contained in:
Li-Wen Hsu 2020-12-11 04:10:38 +00:00
parent 21c3d713d2
commit c1e99c88ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557697
6 changed files with 54 additions and 0 deletions

View File

@ -5,6 +5,7 @@
SUBDIR += 44bsd-csh
SUBDIR += ammonite
SUBDIR += anongitssh
SUBDIR += antibody
SUBDIR += ast-ksh
SUBDIR += bash

View File

@ -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>

View File

@ -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

View File

@ -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/

View File

@ -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.

View File

@ -0,0 +1,5 @@
@mode 4111
libexec/anongitssh
@mode
share/man/man1/anongitssh.1.gz
@shell libexec/anongitssh