ports/159769: New port: shells/ambit

Sascha Klauder sklauder at trimind.de
Sun Aug 14 17:50:06 UTC 2011


>Number:         159769
>Category:       ports
>Synopsis:       New port: shells/ambit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 14 17:50:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Sascha Klauder
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
private site
>Environment:
System: FreeBSD avalon.dobu.local 8.2-STABLE FreeBSD 8.2-STABLE #3: Fri Feb 25 14:53:05 CET 2011 sascha at avalon.dobu.local:/usr/obj/usr/src/sys/AVALON i386


	
>Description:
 New port for ambit, which extends bash brace expansions, used for
 hostlist enumaration and command expansion.

>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ambit
#	ambit/pkg-descr
#	ambit/distinfo
#	ambit/Makefile
#	ambit/pkg-plist
#
echo c - ambit
mkdir -p ambit > /dev/null 2>&1
echo x - ambit/pkg-descr
sed 's/^X//' >ambit/pkg-descr << 'f74532c72bd5a1da2e0ec4ea49fab2a8'
XAmbit, at its simplest, uses  Bash Brace Expansion  to expand and list
Xhostnames OR commands. First and foremost Ambit is meant to be a general
Xpurpose hostlist enumerator to be used by other applications or scripts.
XAdditionally Ambit can be used to manage User Specific as well as
XSystem-Wide HostGroups. It can also be used to query Network HostGroups.
XFinally, Ambit is able to detect when it is expanding a command (rather than
Xa host list), allowing for the command to be expanded and executed
Xsynchronously. This means Ambit can expand and run just about anything on
Xthe command line and usually works in places where Bash Brace Expansion
Xmight fail.
X
XWWW: http://m.a.tt/er/ambit/
f74532c72bd5a1da2e0ec4ea49fab2a8
echo x - ambit/distinfo
sed 's/^X//' >ambit/distinfo << '80f9d7ab93fd4daf44b0193b25b2b74d'
XSHA256 (ambit.tgz) = 9acade33debbdc4baf598a54cf0daa0400796a85d87fbfc1784a707d83d12c97
XSIZE (ambit.tgz) = 8729
80f9d7ab93fd4daf44b0193b25b2b74d
echo x - ambit/Makefile
sed 's/^X//' >ambit/Makefile << '18e7c8f6cb69228d071275fb5dd427db'
X# New ports collection makefile for:   ambit
X# Date created:        09 Aug 2011
X# Whom:                Sascha Klauder <sklauder at trimind.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ambit
XPORTVERSION=	2.0.39
XCATEGORIES=	shells
XMASTER_SITES=	http://m.a.tt/er/
XDISTNAME=	ambit
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	sklauder at trimind.de
XCOMMENT=	Extended bash brace expansion to expand hostnames or commands
X
XLICENSE=	GPLv3
X
XRUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
X
XAMBITDIR?=	/var/spool/ambit
XMAN1=		ambit.1
XMANCOMPRESSED=	yes
XNO_BUILD=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XPLIST_SUB=	AMBITDIR=${AMBITDIR}
X
Xpre-patch:
X	@${REINPLACE_CMD} -e "s!/bin/bash!${PREFIX}/bin/bash!" \
X		${WRKSRC}/usr/bin/ambit
X	@${REINPLACE_CMD} -e 's!/etc/.MyNameIs/!${PREFIX}/etc/!' \
X		${WRKSRC}/usr/bin/ambit
X	@${REINPLACE_CMD} -e "s!/usr/lib/.MyNameIs/!${PREFIX}/lib/!" \
X		${WRKSRC}/usr/bin/ambit
X	@${REINPLACE_CMD} -e "s!/var/.MyNameIs!${AMBITDIR}!" \
X		${WRKSRC}/usr/bin/ambit
X
Xdo-install:
X	${MKDIR} ${AMBITDIR}/hosts
X	${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/ambit ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/usr/lib/ambit/libambit.sh ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/etc/ambit/ambit.conf ${PREFIX}/etc
X	${INSTALL_DATA} ${WRKSRC}/etc/ambit/ambit.conf ${PREFIX}/etc/ambit.conf.example
X	${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/ambit.1.gz ${PREFIX}/man/man1
X
X.include <bsd.port.mk>
18e7c8f6cb69228d071275fb5dd427db
echo x - ambit/pkg-plist
sed 's/^X//' >ambit/pkg-plist << '09626159cf4fb4c6b29f87787bb8a204'
Xbin/ambit
Xlib/libambit.sh
Xetc/ambit.conf
Xetc/ambit.conf.example
X at unexec rmdir %%AMBITDIR%%/hosts 2>/dev/null || true
X at unexec rmdir %%AMBITDIR%% 2>/dev/null || true
09626159cf4fb4c6b29f87787bb8a204
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list