mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Massh makes it possible to perform the following on hundreds, or even
thousands of hosts in a parallelized fashion: * Run Remote Commands * Push and Execute Pre-Written Scripts * Push Files * Pull Files WWW: http://m.a.tt/er/massh/ PR: ports/159770 Submitted by: Sascha Klauder <sklauder@trimind.de> Approved by: bapt (mentor)
This commit is contained in:
parent
bbd1b1b22e
commit
a817fff05a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281176
@ -277,6 +277,7 @@
|
||||
SUBDIR += mailzu
|
||||
SUBDIR += makepasswd
|
||||
SUBDIR += manipulate_data
|
||||
SUBDIR += massh
|
||||
SUBDIR += matrixssl
|
||||
SUBDIR += mcrypt
|
||||
SUBDIR += md4coll
|
||||
|
57
security/massh/Makefile
Normal file
57
security/massh/Makefile
Normal file
@ -0,0 +1,57 @@
|
||||
# New ports collection makefile for: massh
|
||||
# Date created: 2011-08-09
|
||||
# Whom: Sascha Klauder <sklauder@trimind.de>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= massh
|
||||
PORTVERSION= 2.0.57
|
||||
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 [ ! - ${PREFIX}/etc/${PORTNAME}.conf ]; \
|
||||
${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.example ${PREFIX}/etc/${PORTNAME}.conf; \
|
||||
fi
|
||||
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/massh.1.gz ${MAN1PREFIX}
|
||||
|
||||
.include <bsd.port.mk>
|
2
security/massh/distinfo
Normal file
2
security/massh/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (massh.tgz) = 2697b2dd9e7d63b4c26c44094e6a6cdf9105e91520b22271d3675ee67180248b
|
||||
SIZE (massh.tgz) = 8713
|
9
security/massh/pkg-descr
Normal file
9
security/massh/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
Massh makes it possible to perform the following on hundreds, or even
|
||||
thousands of hosts in a parallelized fashion:
|
||||
|
||||
* Run Remote Commands
|
||||
* Push and Execute Pre-Written Scripts
|
||||
* Push Files
|
||||
* Pull Files
|
||||
|
||||
WWW: http://m.a.tt/er/massh/
|
11
security/massh/pkg-plist
Normal file
11
security/massh/pkg-plist
Normal file
@ -0,0 +1,11 @@
|
||||
bin/massh
|
||||
lib/libmassh.sh
|
||||
etc/massh.conf.example
|
||||
@exec mkdir -p %%MASSHDIR%%/pull
|
||||
@exec mkdir -p %%MASSHDIR%%/push
|
||||
@exec mkdir -p %%MASSHDIR%%/scripts
|
||||
@cwd /
|
||||
@dirrmtry %%MASSHDIR%%/pull
|
||||
@dirrmtry %%MASSHDIR%%/push
|
||||
@dirrmtry %%MASSHDIR%%/scripts
|
||||
@dirrmtry %%MASSHDIR%%
|
Loading…
Reference in New Issue
Block a user