openbsd-ports/devel/got/Makefile
naddy c24bd8e67b devel/got: pass SSH_AUTH_SOCK to test environment
This allows "ssh 127.0.0.1" to reach the ssh agent when running the
regression test suite.
ok stsp@
2022-11-16 21:31:34 +00:00

45 lines
1.1 KiB
Makefile

COMMENT-main = game of trees version control system
COMMENT-web = game of trees repository cgi script
COMMENT-webd = game of trees repository fast-cgi server
V = 0.79
DISTNAME = got-${V}
PKGNAME-web = gotweb-${V}
PKGNAME-webd = gotwebd-${V}
CATEGORIES = devel
HOMEPAGE = https://gameoftrees.org
MAINTAINER = Stefan Sperling <stsp@openbsd.org>
# ISC
PERMIT_PACKAGE = Yes
MULTI_PACKAGES = -main -web -webd
# uses pledge()
WANTLIB-main = c curses m panel pthread util z
WANTLIB-web = c util z
WANTLIB-webd = c util z
MAKE_FLAGS = CC="${CC}"
ALL_TARGET = all web webd
INSTALL_TARGET = install web-install webd-install
MASTER_SITES = https://gameoftrees.org/releases/
DEBUG_PACKAGES = ${BUILD_PACKAGES}
BUILD_DEPENDS = www/kcgi>=0.12.0
# some tests will fail without working non-interactive 'ssh 127.0.0.1'
TEST_IS_INTERACTIVE = Yes
TEST_ENV = $${SSH_AUTH_SOCK:+SSH_AUTH_SOCK="$$SSH_AUTH_SOCK"}
TEST_DEPENDS = devel/git \
${PKGPATH}=${V}
PREFIX-web = ${VARBASE}/www
PREFIX-webd = ${VARBASE}/www
TEST_TARGET = regress
FAKE_FLAGS = MANDIR=${PREFIX}/man/man CHROOT_DIR=${VARBASE}/www
.include <bsd.port.mk>