1d8ca425a7
Most ports do not need to override do-patch. It breaks some ports tree features like EXTRA_PATCH_TREE, etc.
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Created by: Loren M. Lang
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dirvish
|
|
PORTVERSION= 1.2.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils archivers
|
|
MASTER_SITES= http://www.dirvish.org/
|
|
|
|
MAINTAINER= tarkhil@over.ru
|
|
COMMENT= Network backup system based off of rsync
|
|
|
|
BROKEN= unfetchable
|
|
|
|
RUN_DEPENDS= p5-Time-modules>=0:devel/p5-Time-modules \
|
|
p5-Time-Period>=0:devel/p5-Time-Period \
|
|
rsync:net/rsync
|
|
|
|
MAN5S= dirvish.conf.5
|
|
MAN8S= dirvish.8 dirvish-expire.8 dirvish-locate.8 dirvish-runall.8
|
|
|
|
USES= perl5 tar:tgz
|
|
USE_PERL5= run
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
EXECUTABLES= dirvish dirvish-expire dirvish-locate dirvish-runall
|
|
|
|
post-patch:
|
|
@${SED} -e 's:%%CONFDIR%%:${PREFIX}/etc/dirvish:' -e 's:%%PERL%%:${PERL}:' \
|
|
${FILESDIR}/header.pl > ${WRKDIR}/header.pl
|
|
.for _E in ${EXECUTABLES}
|
|
@(cd ${WRKSRC} && ${CAT} ${WRKDIR}/header.pl ${_E}.pl loadconfig.pl \
|
|
> ${_E})
|
|
.endfor
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/dirvish
|
|
.for _E in ${EXECUTABLES}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${_E} ${STAGEDIR}${PREFIX}/sbin
|
|
.endfor
|
|
.for _M in ${MAN5S}
|
|
${INSTALL_MAN} ${WRKSRC}/${_M} ${STAGEDIR}${PREFIX}/man/man5
|
|
.endfor
|
|
.for _M in ${MAN8S}
|
|
${INSTALL_MAN} ${WRKSRC}/${_M} ${STAGEDIR}${PREFIX}/man/man8
|
|
.endfor
|
|
${INSTALL_DATA} ${FILESDIR}/master.conf.dist ${STAGEDIR}${PREFIX}/etc/dirvish
|
|
${INSTALL_DATA} ${FILESDIR}/default.conf.dist ${STAGEDIR}${PREFIX}/etc/dirvish
|
|
|
|
.include <bsd.port.mk>
|