summaryrefslogtreecommitdiff
path: root/sysutils/reoback/Makefile
blob: 9ba362f84b92da2b730d524a0f49e46e2ebf939f (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
# Created by: kiesel
# $FreeBSD$

PORTNAME=	reoback
PORTVERSION=	1.0
CATEGORIES=	sysutils
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20Release%203
EXTRACT_SUFX=	_r3.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple but flexible ftp/nfs backup script

RUN_DEPENDS=	p5-Net>=0:${PORTSDIR}/net/p5-Net

NO_BUILD=	yes
USES=		perl5

MAN1=		reoback.1 reoback.pl.1
MANCOMPRESSED=	yes

NO_STAGE=	yes
pre-install:
		cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,/home/sforge/reoback/settings.conf,${PREFIX}/etc/reoback/settings.conf,g' ${WRKSRC}/run_reoback.sh
		cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,/home/sforge/reoback/reoback.pl,${PREFIX}/bin/reoback.pl,g' ${WRKSRC}/run_reoback.sh
		cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,^#!/usr/bin/perl -W,#!/usr/bin/perl -w,g' reoback.pl

do-install:
		${INSTALL_SCRIPT}	${WRKSRC}/reoback.pl ${PREFIX}/bin/
		${INSTALL_SCRIPT}	${WRKSRC}/run_reoback.sh ${PREFIX}/bin/
		${MKDIR}		${PREFIX}/etc/reoback
		${INSTALL_DATA}		${WRKSRC}/conf/settings.conf ${PREFIX}/etc/reoback/settings.conf.dist
		${INSTALL_DATA}		${WRKSRC}/conf/files.conf ${PREFIX}/etc/reoback/files.conf.dist
		${INSTALL_MAN}		${WRKSRC}/docs/man/reoback.1.gz ${PREFIX}/man/man1/
		${INSTALL_MAN}		${WRKSRC}/docs/man/reoback.pl.1.gz ${PREFIX}/man/man1/

.include <bsd.port.mk>