aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/rsnapshot/Makefile
blob: f7f95f27245671c1bb4ef466c5edd8d2d405add6 (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
# New ports collection makefile for:    rsnapshot
# Date created:     2004-01-03
# Whom:         Ralf van Dooren <r.vdooren@snow.nl>
#
# $FreeBSD$
#

PORTNAME=   rsnapshot
PORTVERSION=    1.3.0
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://www.rsnapshot.org/downloads/

MAINTAINER= r.vdooren@snow.nl
COMMENT=    Filesystem snapshot utility based on rsync(1)

BUILD_DEPENDS=  rsync:${PORTSDIR}/net/rsync
RUN_DEPENDS=    rsync:${PORTSDIR}/net/rsync \
        ${SITE_PERL}/${PERL_ARCH}/Lchown.pm:${PORTSDIR}/sysutils/p5-Lchown

USE_PERL5=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

MAN1=       rsnapshot.1
PORTDOCS=   AUTHORS ChangeLog README TODO

.if !defined(NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.pre.mk>

post-patch:
    ${REINPLACE_CMD} -e 's,/usr/bin/pod2man,pod2man,' ${WRKSRC}/Makefile.in
.if ${PERL_LEVEL} < 500800
    ${REINPLACE_CMD} -e "s, -n 'rsnapshot',," ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.post.mk>