aboutsummaryrefslogtreecommitdiff
path: root/sysutils/zogftw/Makefile
diff options
context:
space:
mode:
authorRodrigo Osorio <rodrigo@FreeBSD.org>2014-10-18 16:19:06 +0000
committerRodrigo Osorio <rodrigo@FreeBSD.org>2014-10-18 16:19:06 +0000
commitd128dc17096cf60d0e5813f2e1b9d29673329da8 (patch)
tree01090e518d735873ff2fc6d4fa0c175bec12b00f /sysutils/zogftw/Makefile
parent4b2617dec379009b12915fb11218240af1431fd7 (diff)
downloadports-d128dc17096cf60d0e5813f2e1b9d29673329da8.tar.gz
ports-d128dc17096cf60d0e5813f2e1b9d29673329da8.zip
Notes
Diffstat (limited to 'sysutils/zogftw/Makefile')
-rw-r--r--sysutils/zogftw/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/sysutils/zogftw/Makefile b/sysutils/zogftw/Makefile
index ed88bc0c9c5c..81dcf191734e 100644
--- a/sysutils/zogftw/Makefile
+++ b/sysutils/zogftw/Makefile
@@ -2,10 +2,10 @@
# $FreeBSD$
PORTNAME= zogftw
-PORTVERSION= 0.0.2013.10.06
+PORTVERSION= 0.0.2014.09.20
CATEGORIES= sysutils
MASTER_SITES= http://www.fabiankeil.de/sourcecode/zogftw/
-DISTNAME= ${PORTNAME}-2013-10-06-4760e2c
+DISTNAME= ${PORTNAME}-2014-09-20-28bc862
MAINTAINER= fk@fabiankeil.de
COMMENT= Creates redundant backups on encrypted ZFS pools
@@ -13,8 +13,9 @@ COMMENT= Creates redundant backups on encrypted ZFS pools
RUN_DEPENDS= mbuffer:${PORTSDIR}/misc/mbuffer \
sudo:${PORTSDIR}/security/sudo
-OPTIONS_DEFINE= GNUPG
+OPTIONS_DEFINE= EXECUTE_TESTS GNUPG
OPTIONS_DEFAULT= GNUPG
+EXECUTE_TESTS_DESC= Execute tests before staging. Adds build dependencies.
PLIST_FILES= sbin/zogftw \
man/man8/zogftw.8.gz
@@ -25,7 +26,17 @@ PORTSCOUT= ignore:1
GNUPG_RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg1 \
gpg-agent:${PORTSDIR}/security/gnupg
-do-install:
+EXECUTE_TESTS_BUILD_DEPENDS= atf-sh:${PORTSDIR}/devel/atf \
+ kyua:${PORTSDIR}/devel/kyua
+
+.include <bsd.port.options.mk>
+
+execute-tests: extract
+.if ${PORT_OPTIONS:MEXECUTE_TESTS}
+ ${SETENV} HOME=${WRKDIR} kyua test --kyuafile ${WRKSRC}/tests/Kyuafile
+.endif
+
+do-install: execute-tests
${INSTALL_SCRIPT} ${WRKSRC}/zogftw ${STAGEDIR}${PREFIX}/sbin/zogftw
${INSTALL_MAN} ${WRKSRC}/zogftw.8 ${STAGEDIR}${MAN8PREFIX}/man/man8