aboutsummaryrefslogtreecommitdiff
path: root/sysutils/flexbackup/Makefile
blob: f8376753fead59df01dcf044e7c8a23d802f6960 (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: John Reynolds <johnjen@reynoldsnet.org>

PORTNAME=	flexbackup
PORTVERSION=	1.2.1
PORTREVISION=	7
CATEGORIES=	sysutils
MASTER_SITES=	http://www.edwinh.org/flexbackup/tarball/ \
		http://www.reynoldsnet.org/flexbackup/tarball/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Perl-based flexible backup system that can use dump/afio/cpio/tar

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	gtar:archivers/gtar

USES=		cpe perl5
MAKE_ARGS=	PERLPATH=${PERL} CONFFILE=${PREFIX}/etc/flexbackup.conf
TAR_CMD=	${PREFIX}/bin/gtar
NO_ARCH=	yes

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	AFIO BUFFER MBUFFER ZIP DOCS
AFIO_DESC=	Enable afio support
BUFFER_DESC=	Enable buffer support
MBUFFER_DESC=	Enable mbuffer support
ZIP_DESC=	Enable zip support

AFIO_RUN_DEPENDS=	afio:sysutils/afio
BUFFER_RUN_DEPENDS=	buffer:misc/buffer
MBUFFER_RUN_DEPENDS=	mbuffer:misc/mbuffer
ZIP_RUN_DEPENDS=	zip:archivers/zip

DOCLIST=	CHANGES CREDITS README TODO faq.html

post-patch:
	@${REINPLACE_CMD} -e 's|%%TAR_CMD%%|'${TAR_CMD}'|g' \
		${WRKSRC}/flexbackup.conf

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/fb.install \
		${STAGEDIR}${PREFIX}/bin/flexbackup
	${INSTALL_DATA} ${WRKSRC}/flexbackup.conf \
		${STAGEDIR}${PREFIX}/etc/flexbackup.conf.sample
	${INSTALL_MAN} ${WRKSRC}/flexbackup.1 \
		${STAGEDIR}${MAN1PREFIX}/man/man1
	${INSTALL_MAN} ${WRKSRC}/flexbackup.conf.5 \
		${STAGEDIR}${MAN5PREFIX}/man/man5

post-install-DOCS-on:
	@cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCLIST}" ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>