aboutsummaryrefslogtreecommitdiff
path: root/sysutils/flexbackup/Makefile
blob: 95ffd4f595f04ea38ee01590018b0ce7c875f615 (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
# New ports collection makefile for:    flexbackup
# Date created:         Wed Nov  3 17:58:26 MST 1999
# Whom:                 John Reynolds <johnjen@reynoldsnet.org>
#
# $FreeBSD$
#

PORTNAME=	flexbackup
PORTVERSION=	0.9.8
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://www.edwinh.org/flexbackup/tarball/ \
		${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR=	system/backup

MAINTAINER=	johnjen@reynoldsnet.org
COMMENT=	Perl-based, flexible tape backup system that uses dump, cpio, or afio

RUN_DEPENDS=	afio:${PORTSDIR}/sysutils/afio \
		buffer:${PORTSDIR}/misc/buffer \
		gtar:${PORTSDIR}/archivers/gtar

NO_BUILD=	yes
USE_PERL5=	yes

post-patch:
	@${PERL} -pi -e "s|tar --|gtar --|g" ${WRKSRC}/flexbackup

post-configure:
	@${CP} ${WRKSRC}/flexbackup.conf ${WRKSRC}/flexbackup.conf.sample
	@${CP} ${WRKSRC}/README ${WRKSRC}/flexbackup.README

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/flexbackup ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/flexbackup.conf.sample ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/flexbackup.README ${DOCSDIR}
.endif

post-install:
	@${CAT} ${PKGMESSAGE} | ${SED} -e 's:%%PREFIX%%:${PREFIX}:g'

.include <bsd.port.mk>