commit a07ec64aa136adda565ccb5880ba83cc4a6edf83 from: Stefan Sperling date: Mon Apr 14 20:08:56 2025 UTC remove gotwebd-specific libexec helpers gotwebd now uses the same set of libexec helpers as used by got and tog. ok op@ commit - b27be572b3b9afbcc52cb800bfacbd20218d4177 commit + a07ec64aa136adda565ccb5880ba83cc4a6edf83 blob - 6b6e9e1815bb7b6d738165292b522056eee96e22 blob + 545a13d2e5aba6dc9df486f7300af0acf23c4df7 --- gotwebd/Makefile +++ gotwebd/Makefile @@ -1,8 +1,6 @@ .PATH:${.CURDIR}/../lib .PATH:${.CURDIR}/../template -SUBDIR = libexec - .include "../got-version.mk" .include "Makefile.inc" blob - 8140d7d3e8b25972b9b347173294bd3b671a0da1 blob + 22466be67cc8ab44489af620bed8558a24ed17c9 --- gotwebd/Makefile.inc +++ gotwebd/Makefile.inc @@ -1,9 +1,9 @@ LDADD += -lz -lutil PREFIX ?= /usr/local BINDIR ?= ${PREFIX}/sbin +LIBEXECDIR ?= ${PREFIX}/libexec CHROOT_DIR ?= /var/www GOTWEB_DIR = /bin/gotwebd -LIBEXECDIR = ${GOTWEB_DIR}/libexec HTTPD_DIR = ${CHROOT_DIR}/htdocs PROG_DIR = ${HTTPD_DIR}/${PROG} WWWUSR ?= www blob - 5fd34708bd3654bc05060446ff5d55557747cfd3 (mode 644) blob + /dev/null --- gotwebd/libexec/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -SUBDIR = got-read-blob got-read-commit got-read-object got-read-tree \ - got-read-tag got-read-pack got-read-gitconfig got-read-gotconfig - -.include blob - 85bee26728643214f5d4570f003572ac1fc36d05 (mode 644) blob + /dev/null --- gotwebd/libexec/Makefile.inc +++ /dev/null @@ -1,11 +0,0 @@ -.include "../Makefile.inc" - -realinstall: - if [ ! -d ${DESTDIR}${CHROOT_DIR}${LIBEXECDIR}/. ]; then \ - ${INSTALL} -d -o root -g daemon -m 755 \ - ${DESTDIR}${CHROOT_DIR}${LIBEXECDIR}; \ - fi - ${INSTALL} ${INSTALL_COPY} -o root -g daemon -m 755 ${PROG} \ - ${DESTDIR}${CHROOT_DIR}${LIBEXECDIR}/${PROG} - -NOMAN = Yes blob - 9daacd33712bbd6a9ded56d7a03ed143ce6642d3 (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-blob/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -.include "../../../got-version.mk" -.include "../Makefile.inc" - -PROG= got-read-blob -SRCS= got-read-blob.c error.c inflate.c object_parse.c \ - path.c privsep.c hash.c pollfd.c object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-blob - -.include blob - f45137c3ce56dbaadeaf0a5f0ffffd3b4204668c (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-commit/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -.include "../../../got-version.mk" -.include "../Makefile.inc" - -PROG= got-read-commit -SRCS= got-read-commit.c error.c inflate.c object_parse.c \ - path.c privsep.c hash.c pollfd.c object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-commit - -.include blob - 44760613f030f1f1f62c831825d7bb85b07c9a46 (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-gitconfig/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -.include "../../../got-version.mk" -.include "../Makefile.inc" - -PROG= got-read-gitconfig -SRCS= got-read-gitconfig.c error.c inflate.c object_parse.c \ - path.c privsep.c hash.c gitconfig.c pollfd.c \ - object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-gitconfig - -.include blob - 26dec69ed1be0648baa16cabea96c54dc3731c54 (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-gotconfig/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -.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 hash.c parse.y pollfd.c object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib \ - -I${.CURDIR}/../../../libexec/got-read-gotconfig -YFLAGS = -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -CLEANFILES = parse.h - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-gotconfig - -.include blob - 85841212056443f99c873f1089e3fef315ab7d2a (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-object/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -.include "../../../got-version.mk" -.include "../Makefile.inc" - -PROG= got-read-object -SRCS= got-read-object.c error.c inflate.c object_parse.c \ - path.c privsep.c hash.c pollfd.c object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-object - -.include blob - 6ae7cd0c813fcc65f4256be6d06040df2d2880ba (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-pack/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -.include "../../../got-version.mk" -.include "../Makefile.inc" - -PROG= got-read-pack -SRCS= got-read-pack.c delta.c error.c inflate.c object_cache.c \ - object_idset.c object_parse.c opentemp.c pack.c path.c \ - privsep.c hash.c delta_cache.c pollfd.c object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-pack - -.include blob - eb7b682a069470aa6b445adfc142e1d7bdf7c4a4 (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-tag/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -.include "../../../got-version.mk" -.include "../Makefile.inc" - -PROG= got-read-tag -SRCS= got-read-tag.c error.c inflate.c object_parse.c \ - path.c privsep.c hash.c pollfd.c object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-tag - -.include blob - 497d2ff1cd06d53bcc607653bb658219cd8ea982 (mode 644) blob + /dev/null --- gotwebd/libexec/got-read-tree/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -.include "../../../got-version.mk" -.include "../Makefile.inc" - -PROG= got-read-tree -SRCS= got-read-tree.c error.c inflate.c object_parse.c \ - path.c privsep.c hash.c pollfd.c object_qid.c - -CPPFLAGS = -I${.CURDIR}/../../../include -I${.CURDIR}/../../../lib -LDADD = -lutil -lz -DPADD = ${LIBZ} ${LIBUTIL} -LDSTATIC = ${STATIC} - -.PATH: ${.CURDIR}/../../../lib ${.CURDIR}/../../../libexec/got-read-tree - -.include blob - 803eb4958024659ae980b5f51216764b4ebbe37b blob + 9cb243fe1e217fa2ced376a1954ea7ba7faa879b --- regress/gotwebd/Makefile +++ regress/gotwebd/Makefile @@ -59,14 +59,8 @@ ensure_root: false; \ fi -gotwebd_libexec: - @su -m ${GOTWEBD_TEST_USER} -c \ - '${MAKE} -C ${.CURDIR}/../../gotwebd/libexec' >/dev/null 2>&1 - -prepare_test_env: ensure_root gotwebd_libexec +prepare_test_env: ensure_root @mkdir -p "${GOTWEBD_TEST_CHROOT}" - @DESTDIR=${GOTWEBD_TEST_ROOT} \ - ${MAKE} -C ${.CURDIR}/../../gotwebd/libexec install >/dev/null 2>&1 @chown ${GOTWEBD_TEST_USER} "${GOTWEBD_TEST_ROOT}" \ "${GOTWEBD_TEST_CHROOT}"