1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/security/massh/Makefile
Pawel Pekala 5ce3e147ca - Add staging support
- Use @sample for config file
2014-07-10 14:39:53 +00:00

53 lines
1.6 KiB
Makefile

# Created by: Sascha Klauder <sklauder@trimind.de>
# $FreeBSD$
PORTNAME= massh
PORTVERSION= 2.0.57
PORTREVISION= 2
CATEGORIES= security sysutils
MASTER_SITES= http://m.a.tt/er/
DISTNAME= massh
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
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
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} ${STAGEDIR}${MASSHDIR}/pull
@${MKDIR} ${STAGEDIR}${MASSHDIR}/push
@${MKDIR} ${STAGEDIR}${MASSHDIR}/scripts
${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/massh ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/usr/lib/massh/libmassh.sh \
${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/etc/massh/massh.conf \
${STAGEDIR}${PREFIX}/etc/massh.conf.sample
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/massh.1.gz \
${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>