summaryrefslogtreecommitdiffstats
path: root/sysutils/zogftw/Makefile
blob: 906149d2f5bcad7dacbdf110b889de442e13b433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: Fabian Keil <fk@fabiankeil.de>
# $FreeBSD$

PORTNAME=	zogftw
PORTVERSION=	0.0.2015.11.21
CATEGORIES=	sysutils
MASTER_SITES=	https://www.fabiankeil.de/sourcecode/zogftw/
DISTNAME=	${PORTNAME}-2015-11-21-0a21288

MAINTAINER=	fk@fabiankeil.de
COMMENT=	Creates redundant backups on encrypted ZFS pools

RUN_DEPENDS=	mbuffer:${PORTSDIR}/misc/mbuffer \
		sudo:${PORTSDIR}/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:${PORTSDIR}/security/gnupg

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

.include <bsd.port.mk>
OpenPOWER on IntegriCloud