aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2011-09-04 02:17:23 +0800
committereadler <eadler@FreeBSD.org>2011-09-04 02:17:23 +0800
commit2bdd080781610fe6c209f35239b3cfe8c2c70f70 (patch)
treef5cb1845e4a909627d0a89a518e22246e0dbd86e /net-mgmt
parent467a0f68c670173d23c9f12e2c624041a0e6ee2d (diff)
downloadfreebsd-ports-gnome-2bdd080781610fe6c209f35239b3cfe8c2c70f70.tar.gz
freebsd-ports-gnome-2bdd080781610fe6c209f35239b3cfe8c2c70f70.tar.zst
freebsd-ports-gnome-2bdd080781610fe6c209f35239b3cfe8c2c70f70.zip
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)
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/massh/Makefile57
-rw-r--r--net-mgmt/massh/distinfo2
-rw-r--r--net-mgmt/massh/pkg-descr9
-rw-r--r--net-mgmt/massh/pkg-plist11
4 files changed, 79 insertions, 0 deletions
diff --git a/net-mgmt/massh/Makefile b/net-mgmt/massh/Makefile
new file mode 100644
index 000000000000..b19e1d8a065f
--- /dev/null
+++ b/net-mgmt/massh/Makefile
@@ -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>
diff --git a/net-mgmt/massh/distinfo b/net-mgmt/massh/distinfo
new file mode 100644
index 000000000000..7cf09029e0fb
--- /dev/null
+++ b/net-mgmt/massh/distinfo
@@ -0,0 +1,2 @@
+SHA256 (massh.tgz) = 2697b2dd9e7d63b4c26c44094e6a6cdf9105e91520b22271d3675ee67180248b
+SIZE (massh.tgz) = 8713
diff --git a/net-mgmt/massh/pkg-descr b/net-mgmt/massh/pkg-descr
new file mode 100644
index 000000000000..d7d359b5db6b
--- /dev/null
+++ b/net-mgmt/massh/pkg-descr
@@ -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/
diff --git a/net-mgmt/massh/pkg-plist b/net-mgmt/massh/pkg-plist
new file mode 100644
index 000000000000..e0de9245d503
--- /dev/null
+++ b/net-mgmt/massh/pkg-plist
@@ -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%%