2013-04-28 22:01:07 +02:00
|
|
|
# Created by: John Reynolds <johnjen@reynoldsnet.org>
|
1999-10-07 06:22:30 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 21:09:11 +02:00
|
|
|
PORTNAME= flexbackup
|
2003-10-27 16:04:42 +01:00
|
|
|
PORTVERSION= 1.2.1
|
2011-07-06 20:21:17 +02:00
|
|
|
PORTREVISION= 5
|
1999-12-23 22:17:18 +01:00
|
|
|
CATEGORIES= sysutils
|
2002-01-08 22:56:31 +01:00
|
|
|
MASTER_SITES= http://www.edwinh.org/flexbackup/tarball/ \
|
2003-02-23 07:59:16 +01:00
|
|
|
http://www.reynoldsnet.org/flexbackup/tarball/
|
1999-10-07 06:22:30 +02:00
|
|
|
|
2009-02-19 22:45:43 +01:00
|
|
|
MAINTAINER= mva@FreeBSD.org
|
2003-09-05 10:29:48 +02:00
|
|
|
COMMENT= Perl-based flexible backup system that can use dump/afio/cpio/tar/star
|
1999-10-07 06:22:30 +02:00
|
|
|
|
2009-01-06 18:59:31 +01:00
|
|
|
# FreeBSD 6.0 removed gtar
|
|
|
|
RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar
|
|
|
|
|
|
|
|
TAR_CMD= ${PREFIX}/bin/gtar
|
|
|
|
|
2008-07-30 23:02:40 +02:00
|
|
|
MAKE_ARGS= PERLPATH=${PERL} CONFFILE=${PREFIX}/etc/flexbackup.conf
|
2003-02-23 07:59:16 +01:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
USE_PERL5= yes
|
1999-10-07 06:22:30 +02:00
|
|
|
|
2008-07-30 23:02:40 +02:00
|
|
|
SUB_FILES+= pkg-message
|
2006-10-10 10:23:41 +02:00
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
OPTIONS_DEFINE= AFIO BUFFER MBUFFER STAR ZIP DOCS
|
|
|
|
AFIO_DESC= Enable afio support
|
|
|
|
BUFFER_DESC= Enable buffer support
|
|
|
|
MBUFFER_DESC= Enable mbuffer support
|
|
|
|
STAR_DESC= Enable star support
|
|
|
|
ZIP_DESC= Enable zip support
|
2006-10-10 10:23:41 +02:00
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-10-10 10:23:41 +02:00
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MAFIO}
|
2003-09-05 10:29:48 +02:00
|
|
|
RUN_DEPENDS+= afio:${PORTSDIR}/sysutils/afio
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MBUFFER}
|
2003-09-05 10:29:48 +02:00
|
|
|
RUN_DEPENDS+= buffer:${PORTSDIR}/misc/buffer
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MMBUFFER}
|
2006-12-20 13:35:57 +01:00
|
|
|
RUN_DEPENDS+= mbuffer:${PORTSDIR}/misc/mbuffer
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MSTAR}
|
2003-09-05 10:29:48 +02:00
|
|
|
RUN_DEPENDS+= star:${PORTSDIR}/archivers/star
|
|
|
|
.endif
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MZIP}
|
2003-09-05 10:29:48 +02:00
|
|
|
RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip
|
|
|
|
.endif
|
|
|
|
|
2003-10-27 16:04:42 +01:00
|
|
|
MAN1= flexbackup.1
|
|
|
|
MAN5= flexbackup.conf.5
|
|
|
|
|
2006-10-10 10:23:41 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%TAR_CMD%%|'${TAR_CMD}'|g' \
|
|
|
|
${WRKSRC}/flexbackup.conf
|
|
|
|
|
1999-10-07 06:22:30 +02:00
|
|
|
do-install:
|
2008-07-30 23:02:40 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/fb.install ${PREFIX}/bin/flexbackup
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/flexbackup.conf ${PREFIX}/etc/flexbackup.conf.sample
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/flexbackup.1 ${MAN1PREFIX}/man/man1
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/flexbackup.conf.5 ${MAN5PREFIX}/man/man5
|
|
|
|
|
|
|
|
DOCLIST= CHANGES CREDITS README TODO faq.html
|
2003-10-27 16:04:42 +01:00
|
|
|
|
2003-08-29 15:02:37 +02:00
|
|
|
post-install:
|
2013-04-28 22:01:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-07-30 23:02:40 +02:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCLIST}" ${DOCSDIR}
|
2002-09-18 16:22:11 +02:00
|
|
|
.endif
|
2003-10-27 16:04:42 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2013-04-28 22:01:07 +02:00
|
|
|
.include <bsd.port.mk>
|