1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/sysutils/flexbackup/Makefile
Mathieu Arnold e7becfb97b Update to 1.2.1
Add a way of having the conf into $PREFIX
Add man pages

PR:		57957
Submitted by:	maintainer
2003-10-27 15:04:42 +00:00

88 lines
2.5 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
CATEGORIES= sysutils
MASTER_SITES= http://www.edwinh.org/flexbackup/tarball/ \
http://www.reynoldsnet.org/flexbackup/tarball/
MAINTAINER= johnjen@reynoldsnet.org
COMMENT= Perl-based flexible backup system that can use dump/afio/cpio/tar/star
PKGMESSAGE= ${WRKDIR}/pkg-message
MAKE_ARGS= PERLPATH=${PERL}
USE_PERL5= yes
.if defined(WITH_PREFIX_CONF)
MAKE_ARGS+= CONFFILE=${PREFIX}/etc/flexbackup.conf
CONFDIR= ${PREFIX}
.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_STAR)
RUN_DEPENDS+= star:${PORTSDIR}/archivers/star
.endif
.if defined(WITH_ZIP)
RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip
.endif
.if defined(WITH_GTAR)
RUN_DEPENDS+= gtar:${PORTSDIR}/archivers/gtar
.endif
pre-fetch:
@${ECHO} "----------------------------------------------------------"
@${ECHO} "This port can utilize afio, star, zip, and buffer."
@${ECHO} "You may use the following build options to make:"
@${ECHO}
@${ECHO} " WITH_AFIO=yes enable the use of afio"
@${ECHO} " WITH_STAR=yes enable the use of star"
@${ECHO} " WITH_ZIP=yes enable the use of zip"
@${ECHO} " WITH_BUFFER=yes enable the use of buffer"
@${ECHO}
@${ECHO} "----------------------------------------------------------"
@${ECHO}
@${ECHO} "If you are using and older version of FreeBSD that does not have GNU Tar"
@${ECHO} "imported as the system 'tar,' configure this port using WITH_GTAR=yes"
@${ECHO} "to enable the port dependency and use the 'path' variable in the"
@${ECHO} "flexbackup.conf file to point to 'gtar'"
@${ECHO}
MAN1= flexbackup.1
MAN5= flexbackup.conf.5
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-configure:
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" -e "s:%%CONFDIR%%:${CONFDIR}:g" ${.CURDIR}/pkg-message > ${PKGMESSAGE}
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.mk>