Ambit, at its simplest, uses Bash Brace Expansion to expand and list
hostnames OR commands. First and foremost Ambit is meant to be a general purpose hostlist enumerator to be used by other applications or scripts. Additionally Ambit can be used to manage User Specific as well as System-Wide HostGroups. It can also be used to query Network HostGroups. Finally, Ambit is able to detect when it is expanding a command (rather than a host list), allowing for the command to be expanded and executed synchronously. This means Ambit can expand and run just about anything on the command line and usually works in places where Bash Brace Expansion might fail. WWW: http://m.a.tt/er/ambit/ PR: 159769 Submitted by: Sascha Klauder <sklauder@trimind.de> Approved by: sahil (mentor)
This commit is contained in:
parent
5d607c56ef
commit
f82456ddc8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280731
@ -4,6 +4,7 @@
|
||||
COMMENT = Shells
|
||||
|
||||
SUBDIR += 44bsd-csh
|
||||
SUBDIR += ambit
|
||||
SUBDIR += bash
|
||||
SUBDIR += bash-completion
|
||||
SUBDIR += bash-static
|
||||
|
47
shells/ambit/Makefile
Normal file
47
shells/ambit/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# New ports collection makefile for: ambit
|
||||
# Date created: 2011-08-09
|
||||
# Whom: Sascha Klauder <sklauder@trimind.de>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= ambit
|
||||
PORTVERSION= 2.0.39
|
||||
CATEGORIES= shells
|
||||
MASTER_SITES= http://m.a.tt/er/
|
||||
DISTNAME= ${PORTNAME}
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= sklauder@trimind.de
|
||||
COMMENT= Extended bash brace expansion to expand hostnames or commands
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
||||
|
||||
AMBITDIR?= /var/spool/${PORTNAME}
|
||||
MAN1= ${PORTNAME}.1
|
||||
MANCOMPRESSED= yes
|
||||
NO_BUILD= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
PLIST_SUB= AMBITDIR=${AMBITDIR}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} \
|
||||
-e "s!/bin/bash!${LOCALBASE}/bin/bash!" \
|
||||
-e "s!/etc/.MyNameIs/!${PREFIX}/etc/!" \
|
||||
-e "s!/usr/lib/.MyNameIs/!${PREFIX}/lib/!" \
|
||||
-e "s!/var/.MyNameIs!${AMBITDIR}!" ${WRKSRC}/usr/bin/ambit
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${AMBITDIR}/hosts
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/ambit ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/usr/lib/ambit/libambit.sh ${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/${PORTNAME}.1.gz ${MANPREFIX}/man/man1
|
||||
@if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
|
||||
${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
2
shells/ambit/distinfo
Normal file
2
shells/ambit/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (ambit.tgz) = 9acade33debbdc4baf598a54cf0daa0400796a85d87fbfc1784a707d83d12c97
|
||||
SIZE (ambit.tgz) = 8729
|
12
shells/ambit/pkg-descr
Normal file
12
shells/ambit/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
Ambit, at its simplest, uses Bash Brace Expansion to expand and list
|
||||
hostnames OR commands. First and foremost Ambit is meant to be a general
|
||||
purpose hostlist enumerator to be used by other applications or scripts.
|
||||
Additionally Ambit can be used to manage User Specific as well as
|
||||
System-Wide HostGroups. It can also be used to query Network HostGroups.
|
||||
Finally, Ambit is able to detect when it is expanding a command (rather than
|
||||
a host list), allowing for the command to be expanded and executed
|
||||
synchronously. This means Ambit can expand and run just about anything on
|
||||
the command line and usually works in places where Bash Brace Expansion
|
||||
might fail.
|
||||
|
||||
WWW: http://m.a.tt/er/ambit/
|
10
shells/ambit/pkg-plist
Normal file
10
shells/ambit/pkg-plist
Normal file
@ -0,0 +1,10 @@
|
||||
bin/ambit
|
||||
lib/libambit.sh
|
||||
@unexec if cmp -s %D/etc/ambit.conf.sample %D/etc/ambit.conf; then rm -f %D/etc/ambit.conf; fi
|
||||
etc/ambit.conf.sample
|
||||
@exec if [ ! -f %D/etc/ambit.conf ] ; then cp -p %D/%F %B/ambit.conf; fi
|
||||
@exec mkdir -p %%AMBITDIR%%/hosts
|
||||
@cwd /
|
||||
@dirrmtry %%AMBITDIR%%/hosts
|
||||
@dirrmtry %%AMBITDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user