blob: 19eaa070e6db2a8a15e09b71c7ae7195914e48e0 (
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
59
|
# New ports collection makefile for: massh
# Date created: 2011-08-09
# Whom: Sascha Klauder <sklauder@trimind.de>
#
# $FreeBSD$
#
PORTNAME= massh
PORTVERSION= 2.0.57
PORTREVISION= 1
CATEGORIES= security sysutils
MASTER_SITES= http://m.a.tt/er/
DISTNAME= massh
EXTRACT_SUFX= .tgz
MAINTAINER= sklauder@trimind.de
COMMENT= Parallel ssh command execution and file transfer on multiple hosts
LICENSE= GPLv3
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
ambit:${PORTSDIR}/shells/ambit
MASSHDIR?= /var/spool/massh
MAN1= massh.1
MANCOMPRESSED= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_SUB= MASSHDIR=${MASSHDIR}
pre-patch:
@${REINPLACE_CMD} -e "s!/bin/bash!${LOCALBASE}/bin/bash!" \
${WRKSRC}/usr/bin/massh
@${REINPLACE_CMD} -e 's!/etc/.MyNameIs/!${PREFIX}/etc/!' \
${WRKSRC}/usr/bin/massh
@${REINPLACE_CMD} -e "s!/usr/lib/.MyNameIs/!${PREFIX}/lib/!" \
${WRKSRC}/usr/bin/massh
@${REINPLACE_CMD} -e "s!/var/.MyNameIs!${MASSHDIR}!" \
${WRKSRC}/usr/bin/massh
@${REINPLACE_CMD} -e "s!PATH=/usr/bin:/bin!PATH=/usr/bin:/bin:${LOCALBASE}/bin!" \
${WRKSRC}/etc/massh/massh.conf
@${REINPLACE_CMD} -e 's!SyslogMassh="yes"!SyslogMassh="no"!' \
${WRKSRC}/etc/massh/massh.conf
do-install:
${MKDIR} ${MASSHDIR}/pull
${MKDIR} ${MASSHDIR}/push
${MKDIR} ${MASSHDIR}/scripts
${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/massh ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/usr/lib/massh/libmassh.sh ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/etc/massh/massh.conf ${PREFIX}/etc/massh.conf.example
@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; \
then \
${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.example ${PREFIX}/etc/${PORTNAME}.conf; \
fi
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/massh.1.gz ${MAN1PREFIX}/man/man1/
.include <bsd.port.mk>
|