summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-30 22:43:43 +0000
committerJune McEnroe <june@causal.agency>2021-09-30 22:43:43 +0000
commit9f8f7dcc8e27b104ef9a1b3053c18b8567ef2be2 (patch)
tree5ad3bcca74429833223c405ef2cf98c4bc4cb4c1
parentOpenBSD: Update cgit-causal-agency to 20210930 (diff)
downloadports-9f8f7dcc8e27b104ef9a1b3053c18b8567ef2be2.tar.gz
ports-9f8f7dcc8e27b104ef9a1b3053c18b8567ef2be2.zip
OpenBSD: Build and install git{,-http-backend} with cgit
-rw-r--r--OpenBSD/www/cgit-causal-agency/Makefile6
-rw-r--r--OpenBSD/www/cgit-causal-agency/pkg/PLIST2
2 files changed, 7 insertions, 1 deletions
diff --git a/OpenBSD/www/cgit-causal-agency/Makefile b/OpenBSD/www/cgit-causal-agency/Makefile
index ee4850c..f7f03a8 100644
--- a/OpenBSD/www/cgit-causal-agency/Makefile
+++ b/OpenBSD/www/cgit-causal-agency/Makefile
@@ -5,6 +5,7 @@ COMMENT =	web frontend for git repositories
 PKGNAME =	cgit-causal-agency-20210930
 DISTNAME =	src-db96234ccb8c33dfdf127eb7e254a84481f98aa1
 CATEGORIES =	www devel
+REVISION =	2
 
 DISTFILES =	${DISTNAME}.tar.gz:0 \
 		git-2.32.0.tar.gz:1
@@ -24,7 +25,7 @@ BUILD_DEPENDS =	textproc/asciidoc
 LIB_DEPENDS =	converters/libiconv
 
 PREFIX =	${VARBASE}/www
-MAKE_FLAGS +=	V=1 NO_GETTEXT=1 LDFLAGS+='${STATIC} -L${LOCALBASE}/lib'
+MAKE_FLAGS +=	V=1 NO_GETTEXT=1 EXTRA_GIT_TARGETS='git git-http-backend' LDFLAGS+='${STATIC} -L${LOCALBASE}/lib'
 
 ALL_TARGET =	all doc-man
 
@@ -34,5 +35,8 @@ post-extract:
 post-install:
 	mv ${PREFIX}/htdocs ${PREFIX}/cgit
 	${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5
+	${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKBUILD}/git/git ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKBUILD}/git/git-http-backend ${PREFIX}/cgi-bin
 
 .include <bsd.port.mk>
diff --git a/OpenBSD/www/cgit-causal-agency/pkg/PLIST b/OpenBSD/www/cgit-causal-agency/pkg/PLIST
index 2105512..aeb2763 100644
--- a/OpenBSD/www/cgit-causal-agency/pkg/PLIST
+++ b/OpenBSD/www/cgit-causal-agency/pkg/PLIST
@@ -1,7 +1,9 @@
 @comment $OpenBSD: PLIST,v 1.6 2018/09/04 12:46:24 espie Exp $
 @conflict cgit-*
 @group daemon
+@bin bin/git
 @bin cgi-bin/cgit.cgi
+@bin cgi-bin/git-http-backend
 @group
 cgit/
 cgit/cgit.css