Commit 3185a7443bd73f8c64258a4330f73aa0b0a9a976

Stefan Sperling 2020-09-21T12:06:55

install got-read-gotconfig into gotweb's chroot environment

diff --git a/gotweb/libexec/Makefile b/gotweb/libexec/Makefile
index a4c900b..5fd3470 100644
--- a/gotweb/libexec/Makefile
+++ b/gotweb/libexec/Makefile
@@ -1,4 +1,4 @@
 SUBDIR = got-read-blob got-read-commit got-read-object got-read-tree \
-	got-read-tag got-read-pack got-read-gitconfig
+	got-read-tag got-read-pack got-read-gitconfig got-read-gotconfig
 
 .include <bsd.subdir.mk>
diff --git a/gotweb/libexec/got-read-gotconfig/Makefile b/gotweb/libexec/got-read-gotconfig/Makefile
new file mode 100644
index 0000000..2960591
--- /dev/null
+++ b/gotweb/libexec/got-read-gotconfig/Makefile
@@ -0,0 +1,17 @@
+
+.include "../../../got-version.mk"
+.include "../Makefile.inc"
+
+PROG=		got-read-gotconfig
+SRCS=		got-read-gotconfig.c error.c inflate.c object_parse.c \
+		path.c privsep.c sha1.c parse.y
+
+CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib \
+	-I${.CURDIR}/../../../libexec/got-read-gotconfig
+LDADD = -lutil -lz
+DPADD = ${LIBZ} ${LIBUTIL}
+LDSTATIC = ${STATIC}
+
+.PATH:	${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-gotconfig
+
+.include <bsd.prog.mk>