summaryrefslogtreecommitdiff
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
parentUpdate to version 1.5.6. (diff)
Update sysutils/zogftw to 2014-09-20-28bc862
PR: ports/193806 Submitted by: fk@fabiankeil.de (maintainer) Approved by: mentors (implicit)
Notes
Notes: svn path=/head/; revision=371140
-rw-r--r--sysutils/zogftw/Makefile19
-rw-r--r--sysutils/zogftw/distinfo4
2 files changed, 17 insertions, 6 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
diff --git a/sysutils/zogftw/distinfo b/sysutils/zogftw/distinfo
index 414dd0400802..e8cc7777f6ba 100644
--- a/sysutils/zogftw/distinfo
+++ b/sysutils/zogftw/distinfo
@@ -1,2 +1,2 @@
-SHA256 (zogftw-2013-10-06-4760e2c.tar.gz) = 9ebcfe168ed3e8e333982ede3c7a0b6f8769162e7a6590499c412aef32e42c34
-SIZE (zogftw-2013-10-06-4760e2c.tar.gz) = 14651
+SHA256 (zogftw-2014-09-20-28bc862.tar.gz) = d2d61c4654e4b5ea1df7737d9722abb235ffbab525473e03e9a3accc7c28d151
+SIZE (zogftw-2014-09-20-28bc862.tar.gz) = 38589