summaryrefslogtreecommitdiff
path: root/sysutils/rdup/Makefile
blob: 870377c3a6d885f0040d3b0257208ea5ded4027e (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
51
52
53
54
55
56
57
58
# ex:ts=8
# Ports collection makefile for:	rdup
# Date created:			Jun 11, 2009
# Whom:				corky1951@comcast.net
#
# $FreeBSD$
#

PORTNAME=	rdup
PORTVERSION=	1.0.0
CATEGORIES=	sysutils
MASTER_SITES=	http://miek.nl/projects/rdup/

MAINTAINER=	corky1951@comcast.net
COMMENT=	A tool to generate an (incremental) backup file list

LIB_DEPENDS=	glib-2.0:${PORTSDIR}/devel/glib20 \
		pcre:${PORTSDIR}/devel/pcre \
		archive:${PORTSDIR}/archivers/libarchive \
		nettle:${PORTSDIR}/security/nettle

USE_BZIP2=	yes

USE_AUTOTOOLS=	autoconf:262
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"

USE_GMAKE=	yes
MAKEFILE=	GNUmakefile

PLIST_FILES=	bin/rdup \
		bin/rdup-tr \
		bin/rdup-up

MAN1=		rdup.1 \
		rdup-tr.1 \
		rdup-up.1

MAN7=		rdup-backups.7

.ifndef(NOPORTEXAMPLES)
PORTEXAMPLES=	rdup-ln.sh \
		rdup-simple.sh
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/lib/rdup|${EXAMPLESDIR}|g' \
		${WRKSRC}/doc/rdup-backups.7

post-install:
.ifndef(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
.for example in ${PORTEXAMPLES}
	@${INSTALL_SCRIPT} ${WRKSRC}/sh/${example} ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.mk>