1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/sysutils/flexbackup/Makefile
Rong-En Fan c541548b8d - We have misc/mbuffer now. Add to options.
Approved by:	Marcus von Appen <mva at sysfault.org> (maintainer)
2006-12-20 12:35:57 +00:00

92 lines
2.4 KiB
Makefile

# 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= 1.2.1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.edwinh.org/flexbackup/tarball/ \
http://www.reynoldsnet.org/flexbackup/tarball/
MAINTAINER= mva@sysfault.org
COMMENT= Perl-based flexible backup system that can use dump/afio/cpio/tar/star
MAKE_ARGS= PERLPATH=${PERL} CONFDIR=${PREFIX} \
CONFFILE=${PREFIX}/etc/flexbackup.conf
CONFDIR= ${PREFIX}
USE_PERL5= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= AFIO "Enable afio support" Off \
BUFFER "Enable buffer support" Off \
MBUFFER "Enable mbuffer support" Off \
STAR "Enable star support" Off \
ZIP "Eanble zip support" Off
.include <bsd.port.pre.mk>
# Releases previous to 5.3 do not need a special gtar handling as GNU tar
# is the default here. >= 503001 to < 60022 have GNU tar renamed to gtar
# under circumstances, thus rely on gtar here. 600022 removed gtar.
TAR_CMD= /usr/bin/tar
.if ${OSVERSION} >= 600022
RUN_DEPENDS= gtar:${PORTSDIR}/archivers/gtar
TAR_CMD= ${PREFIX}/bin/gtar
.elif ${OSVERSION} >= 503001 && ${OSVERSION} < 600022
TAR_CMD= /usr/bin/gtar
.endif
.if defined(WITH_AFIO)
RUN_DEPENDS+= afio:${PORTSDIR}/sysutils/afio
.endif
.if defined(WITH_BUFFER)
RUN_DEPENDS+= buffer:${PORTSDIR}/misc/buffer
.endif
.if defined(WITH_MBUFFER)
RUN_DEPENDS+= mbuffer:${PORTSDIR}/misc/mbuffer
.endif
.if defined(WITH_STAR)
RUN_DEPENDS+= star:${PORTSDIR}/archivers/star
.endif
.if defined(WITH_ZIP)
RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip
.endif
MAN1= flexbackup.1
MAN5= flexbackup.conf.5
post-patch:
@${REINPLACE_CMD} -e 's|%%TAR_CMD%%|'${TAR_CMD}'|g' \
${WRKSRC}/flexbackup.conf
post-configure:
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%CONFDIR%%|${CONFDIR}|g' \
${.CURDIR}/pkg-message > ${PKGMESSAGE}
do-install:
${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
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for docfile in CHANGES CREDITS README TODO faq.html
${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>