aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/dirvish/Makefile
blob: 59e5a815a6268267286ba24657350871fadcb66a (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
45
46
47
48
49
50
# Created by: Loren M. Lang
# $FreeBSD$

PORTNAME=   dirvish
PORTVERSION=    1.2.1
PORTREVISION=   1
CATEGORIES= sysutils archivers
MASTER_SITES=   http://www.dirvish.org/
EXTRACT_SUFX=   .tgz

MAINTAINER= tarkhil@over.ru
COMMENT=    Network backup system based off of rsync

RUN_DEPENDS=    p5-Time-modules>=0:${PORTSDIR}/devel/p5-Time-modules \
        p5-Time-Period>=0:${PORTSDIR}/devel/p5-Time-Period \
        rsync:${PORTSDIR}/net/rsync

MAN5S=      dirvish.conf.5
MAN8S=      dirvish.8 dirvish-expire.8 dirvish-locate.8 dirvish-runall.8

WRKSRC=     ${WRKDIR}
NO_BUILD=   yes
USES=       perl5
USE_PERL5=  run

EXECUTABLES=    dirvish   dirvish-expire   dirvish-locate   dirvish-runall

do-patch:
    @${SED} -e 's:%%CONFDIR%%:${PREFIX}/etc/dirvish:' -e 's:%%PERL%%:${PERL5}:' \
        ${FILESDIR}/header.pl > ${WRKDIR}/header.pl
.for _E in ${EXECUTABLES}
    @(cd ${WRKSRC} && ${CAT} ${WRKDIR}/header.pl ${_E}.pl loadconfig.pl \
        > ${_E} && ${CHMOD} 755 ${_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>