summaryrefslogtreecommitdiff
path: root/sysutils/rsyncrypto/Makefile
blob: c34f6245c83efffcb9c064b5cef55ffe50b2f994 (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
PORTNAME=	rsyncrypto
DISTVERSION=	1.14
PORTREVISION=	3
CATEGORIES=	sysutils net
MASTER_SITES=	SF

MAINTAINER=	alster@vinterdalen.se
COMMENT=	Rsync Friendly File Encryption
WWW=		https://rsyncrypto.lingnu.com/ \
		https://sourceforge.net/projects/rsyncrypto/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${GZIP_DEPENDS}
LIB_DEPENDS=	libargtable2.so:devel/argtable
RUN_DEPENDS=	${GZIP_DEPENDS} \
		rsync:net/rsync
TEST_DEPENDS=	${GZIP_DEPENDS} \
		bash:shells/bash

USES=		compiler:c++11-lang gmake localbase shebangfix ssl tar:bzip2

SHEBANG_FILES=	tests/regtest

GNU_CONFIGURE=	yes

TEST_TARGET=	test

# Just to make configure phase runtime checks happy
BINARY_ALIAS=	gzip=${LOCALBASE}/bin/gzip

PORTDOCS=	AUTHORS ChangeLog NEWS README

OPTIONS_DEFINE=	DOCS

GZIP_DEPENDS=	${LOCALBASE}/bin/gzip:archivers/gzip

# Use gzip from localbase, as gzip from base lacks support of needed --rsyncable option
post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/rsyncrypto.h

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>