aboutsummaryrefslogtreecommitdiff
path: root/sysutils/duply/Makefile
blob: a11ae330b4b3b4404f0326ad62f0e14d1c421728 (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
# New ports collection makefile for:	duply
# Date created:		2010-09-25
# Whom:			Michael Ranner <michael@ranner.eu>
#
# $FreeBSD$
#

PORTNAME=	duply
PORTVERSION=	1.5.4
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	SF/ftplicity/${PORTNAME}%20%28simple%20duplicity%29/1.5.x/
DISTNAME=	${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	michael@ranner.eu
COMMENT=	Shell front end for the duplicity backup tool

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash \
		duplicity:${PORTSDIR}/sysutils/duplicity

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/gpl.txt
NO_BUILD=	yes

PORTDOCS=	INSTALL.txt gpl.txt
PLIST_FILES=	bin/duply

post-patch:
	@${REINPLACE_CMD} -e "s,^#!/bin/bash,#!${LOCALBASE}/bin/bash,g" \
		-e "s,/etc/duply,${PREFIX}/etc/duply,g" \
		${WRKSRC}/duply

do-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/duply ${PREFIX}/bin/duply
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}/
.	for i in ${PORTDOCS}
	  @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.	endfor
.endif

.include <bsd.port.mk>