mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
a60d9df4ce
Previously, kyua upgrades would override users' changes to /usr/local/etc/kyua/kyua.conf. Now the upgrade will only affect /usr/local/etc/kyua/kyua.conf.sample. PR: 217990 Reported by: ngie Reviewed by: jmmv, ngie Approved by: jmmv (maintainer) Approved by: brd (ports) Sponsored by: Spectra Logic Corp
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= kyua
|
|
PORTVERSION= 0.13
|
|
PORTEPOCH= 3
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://github.com/jmmv/kyua/releases/download/${PORTNAME}-${PORTVERSION}/ \
|
|
LOCAL/jmmv
|
|
|
|
MAINTAINER= jmmv@FreeBSD.org
|
|
COMMENT= Testing framework for infrastructure software
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LIB_DEPENDS= liblutok.so:devel/lutok
|
|
LIB_DEPENDS+= libsqlite3.so:databases/sqlite3
|
|
|
|
CONFLICTS= kyua-atf-compat-[0-9]* kyua-cli-[0-9]* kyua-testers-[0-9]*
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= lua pkgconfig
|
|
|
|
TESTS_USER= tests
|
|
USERS= ${TESTS_USER}
|
|
SUB_FILES= kyua.conf
|
|
SUB_LIST= TESTS_USER=${TESTS_USER}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES TEST
|
|
OPTIONS_DEFAULT=TEST
|
|
|
|
OPTIONS_SUB= yes
|
|
TEST_CONFIGURE_WITH= atf
|
|
TEST_BUILD_DEPENDS= atf>=0.21:devel/atf
|
|
TEST_RUN_DEPENDS= atf>=0.21:devel/atf
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
CONFIGURE_ARGS+= --without-doxygen
|
|
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
|
|
MAKE_FLAGS+= examplesdir=${EXAMPLESDIR}
|
|
MAKE_FLAGS+= pkgdatadir=${DATADIR}
|
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
MAKE_FLAGS+= doc_DATA=
|
|
.endif
|
|
.if ! ${PORT_OPTIONS:MEXAMPLES}
|
|
MAKE_FLAGS+= dist_examples_DATA=
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/kyua/
|
|
${INSTALL_DATA} ${WRKDIR}/kyua.conf ${STAGEDIR}${PREFIX}/etc/kyua/kyua.conf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Kyuafile.top \
|
|
${STAGEDIR}${PREFIX}/tests/Kyuafile
|
|
|
|
.include <bsd.port.mk>
|