summaryrefslogtreecommitdiff
path: root/sysutils/fanout/Makefile
blob: a2d899c7a6ad9074e16fa1b3f133e5aa3b48a3c7 (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
# Created by: janos.mohacsi@bsd.hu
# $FreeBSD$

PORTNAME=	fanout
PORTVERSION=	0.6.1
CATEGORIES=	sysutils
MASTER_SITES=	http://www.stearns.org/fanout/ \
		ftp://ftp.bascom.com/pub/wstearns/fanout/ \
		http://www.linuxgrill.com/anonymous/mirrors/wstearns/fanout/

MAINTAINER=	jmohacsi@bsd.hu
COMMENT=	Tool to run commands on multiple machines

USES=		perl5
USE_PERL5=	run
NO_BUILD=	yes
PLIST_FILES=	bin/fanout bin/fanterm bin/fanmux
.if !defined(NOPORTDOCS)
PORTDOCS=	README index.html
.endif

post-patch:
	@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
		${WRKSRC}/fanterm
	@${REINPLACE_CMD} -e 's,%%PERL%%,${PERL},g' \
		${WRKSRC}/fanmux

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/fanout ${PREFIX}/bin/
	${INSTALL_SCRIPT} ${WRKSRC}/fanterm ${PREFIX}/bin/
	${INSTALL_SCRIPT} ${WRKSRC}/fanmux ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>