summaryrefslogtreecommitdiff
path: root/sysutils/swtpm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/swtpm/Makefile')
-rw-r--r--sysutils/swtpm/Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/sysutils/swtpm/Makefile b/sysutils/swtpm/Makefile
index 2ba41891d2fe..c636d8022344 100644
--- a/sysutils/swtpm/Makefile
+++ b/sysutils/swtpm/Makefile
@@ -1,7 +1,6 @@
PORTNAME= swtpm
DISTVERSIONPREFIX= v
-DISTVERSION= 0.9.0
-PORTREVISION= 2
+DISTVERSION= 0.10.1
CATEGORIES= sysutils
MAINTAINER= meka@tilda.center
@@ -24,19 +23,28 @@ LIB_DEPENDS= libfuse.so:filesystems/fusefs-libs \
libtpms.so:sysutils/libtpms
USES= autoreconf gettext-runtime gmake gnome libtool pathfix \
- pkgconfig ssl
+ pkgconfig python:env,test shebangfix ssl
USE_GITHUB= yes
GH_ACCOUNT= stefanberger
USE_GNOME= glib20
USE_LDCONFIG= yes
USE_RC_SUBR= ${PORTNAME}
+SHEBANG_FILES= tests/_* tests/test_clientfds.py tests/test_setdatafd.py
-USERS= _tss
-GROUPS= ${USERS}
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --with-tss-user=${USERS} \
- --with-tss-group=${GROUPS}
+CONFIGURE_ARGS+= --with-tss-group=${GROUPS} \
+ --with-tss-user=${USERS}
INSTALL_TARGET= install-strip
+TEST_ENV= LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib/swtpm:${LD_LIBRARY_PATH} \
+ PATH=${PATH}:${STAGEDIR}${PREFIX}/bin
+TEST_TARGET= ./installed-runner.sh
+TEST_WRKSRC= ${STAGEDIR}${PREFIX}/libexec/installed-tests/swtpm
+
+USERS= _tss
+GROUPS= ${USERS}
+
+do-test:
+ cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${TEST_TARGET}
.include <bsd.port.mk>