summaryrefslogtreecommitdiff
path: root/net/cvsync/Makefile
blob: 353f795015978679a1f1bf4401e7184399ef4557 (plain)
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

PORTNAME=	cvsync
PORTVERSION=	0.25.0
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.cvsync.org/pub/cvsync/ \
		ftp://ftp.allbsd.org/pub/cvsync/
DISTNAME=	${PORTNAME}-0.24.19

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Portable CVS repository synchronization utility

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/doc/COPYRIGHT

USES=		gmake ssl
USE_RC_SUBR=	cvsyncd

PORTDOCS=	ChangeLog FAQ TODO
PORTEXAMPLES=	cvsync.conf cvsyncd-FreeBSD.conf \
		cvsyncd-NetBSD.conf cvsyncd-OpenBSD.conf

MAKE_ENV+=	DESTDIR="${STAGEDIR}" \
		PTHREAD_LIBS="-lpthread" \
		INSTALL= \
		INSTALL_BIN_OPTS="${INSTALL_PROGRAM}" \
		INSTALL_MAN_OPTS="${INSTALL_MAN}"
MAKE_FLAGS=	OSVER="${OSVERSION}" HASH_TYPE=openssl

OPTIONS_DEFINE=	DOCS EXAMPLES

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/samples && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>