# Created by: Fabian Keil PORTNAME= zogftw PORTVERSION= 0.0.2022.02.17 CATEGORIES= sysutils MASTER_SITES= https://www.fabiankeil.de/sourcecode/zogftw/ DISTNAME= ${PORTNAME}-2022-02-17-47c83cb MAINTAINER= fk@fabiankeil.de COMMENT= Creates redundant backups on encrypted ZFS pools RUN_DEPENDS= mbuffer:misc/mbuffer \ sudo:security/sudo 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 NO_BUILD= yes PORTSCOUT= ignore:1 GNUPG_RUN_DEPENDS= gpg:security/gnupg EXECUTE_TESTS_BUILD_DEPENDS= atf-sh:devel/atf \ kyua:devel/kyua .include 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 .include