summaryrefslogtreecommitdiff
path: root/devel/cvsd/Makefile
blob: ebbf293a16ef72cce30a90c48df6999d9e602b97 (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
40
41
42
43
44
45
46
47
48
49
# Created by: ijliao
# $FreeBSD$

PORTNAME=	cvsd
PORTVERSION=	1.0.18
CATEGORIES=	devel
MASTER_SITES=	http://arthurdejong.org/cvsd/ \
		http://wiftp.com/

MAINTAINER=	rum1cro@yandex.ru
COMMENT=	CVS pserver daemon

LICENSE=	GPLv2

EXTRA_PATCHES=	${FILESDIR}/extra-cvsd-buildroot.in

USE_RC_SUBR=	cvsd
USES=		perl5
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-libwrap
MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
		AUTOHEADER="${TRUE}"

OPTIONS_DEFINE=	DOCS

PORTDOCS=	FAQ NEWS README

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 1000000
BUILD_DEPENDS+=	cvs:${PORTSDIR}/devel/cvs
RUN_DEPENDS+=	cvs:${PORTSDIR}/devel/cvs
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/cvsd ${STAGEDIR}${PREFIX}/sbin/cvsd
.for f in cvsd-buginfo cvsd-buildroot cvsd-passwd
	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/sbin
.endfor
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/cvsd
	${INSTALL_DATA} ${WRKSRC}/cvsd.conf-dist ${STAGEDIR}${PREFIX}/etc/cvsd/cvsd.conf.sample
	${INSTALL_MAN} ${WRKSRC}/*.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
	${INSTALL_MAN} ${WRKSRC}/*.8 ${STAGEDIR}${MAN8PREFIX}/man/man8

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.post.mk>