From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 3 14:20:50 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC00E10656C9 for ; Mon, 3 Aug 2009 14:20:49 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C13C88FC43 for ; Mon, 3 Aug 2009 14:20:49 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n73EKn8g041348 for ; Mon, 3 Aug 2009 14:20:49 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n73EKnnU041319; Mon, 3 Aug 2009 14:20:49 GMT (envelope-from gnats) Resent-Date: Mon, 3 Aug 2009 14:20:49 GMT Resent-Message-Id: <200908031420.n73EKnnU041319@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, SClo Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E27361065691 for ; Mon, 3 Aug 2009 14:18:53 +0000 (UTC) (envelope-from sclo@rapsody.com) Received: from magoamoth.rapsody.com (magoamoth.rapsody.com [213.91.4.46]) by mx1.freebsd.org (Postfix) with ESMTP id AD7738FC21 for ; Mon, 3 Aug 2009 14:18:49 +0000 (UTC) (envelope-from sclo@rapsody.com) Received: from magoamoth.rapsody.com (magoamoth [213.91.4.46]) by magoamoth.rapsody.com (8.14.3/8.14.3) with ESMTP id n73E4BVu040907 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 3 Aug 2009 16:04:11 +0200 (CEST) (envelope-from sclo@magoamoth.rapsody.com) Received: (from sclo@localhost) by magoamoth.rapsody.com (8.14.3/8.14.3/Submit) id n73E4Bfw040906; Mon, 3 Aug 2009 16:04:11 +0200 (CEST) (envelope-from sclo) Message-Id: <200908031404.n73E4Bfw040906@magoamoth.rapsody.com> Date: Mon, 3 Aug 2009 16:04:11 +0200 (CEST) From: SClo To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/137394: New port: shells/lshell - Restricts a user's shell environment to limited sets of commands X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: SClo List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2009 14:20:53 -0000 >Number: 137394 >Category: ports >Synopsis: New port: shells/lshell - Restricts a user's shell environment to limited sets of commands >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: Mon Aug 03 14:20:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: >Release: FreeBSD 6.4-STABLE i386 >Organization: >Environment: System: FreeBSD magoamoth 6.4-STABLE FreeBSD 6.4-STABLE #6: Mon Jan 19 11:17:44 CET 2009 >Description: Here's the .shar file as attachment to add lshell (http://sourceforge.net/projects/lshell/ http://lshell.ghantoos.org/) to the port tree in the shells category. Features: Restricts a user's shell environment to limited sets of commands lshell is a shell coded in Python that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restrictions, and more. Requirements: python 2.4+ and distutils Author: Ignace Mouzannar (ghantoos) >How-To-Repeat: >Fix: --- lshell.shar begins here --- # 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: # # lshell # lshell/Makefile # lshell/pkg-plist # lshell/pkg-descr # lshell/distinfo # echo c - lshell mkdir -p lshell > /dev/null 2>&1 echo x - lshell/Makefile sed 's/^X//' >lshell/Makefile << '24a50839df20275ec30673a708c3fbff' X# New ports collection makefile for: lshell X# Date created: 29 July 2009 X# Whom: Ignace Mouzannar X# X# $FreeBSD$ X# X XPORTNAME= lshell XPORTVERSION= 0.9.5 XCATEGORIES= shells python XMASTER_SITES= SF X XMAINTAINER= benoit@litchis.org XCOMMENT= Restricts a user's shell environment to limited sets of commands X XBUILD_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools X XUSE_PYTHON= 2.4+ XUSE_PYDISTUTILS= yes X XSHELLS= /etc/shells X XDATADIR= ${PREFIX}/share/doc/${PORNAME} XPLIST_SUB+= DATADIR=${DATADIR} LOGDIR=${LOGDIR} X XMAN1= lshell.1 X Xpost-patch: X @${REINPLACE_CMD} -e 's|/etc|/usr/local/etc|g' ${WRKSRC}/setup.py X @${REINPLACE_CMD} -e 's|share/man|/usr/local/man|g' ${WRKSRC}/setup.py X Xpost-install: X @${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample X @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \ X ${INSTALL_DATA} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \ X fi X @${ECHO_MSG} "Updating ${SHELLS}" X @${CP} ${SHELLS} ${SHELLS}.bak X @(${GREP} -v ${PREFIX}/bin/${PORTNAME} ${SHELLS}.bak; \ X ${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > ${SHELLS} X @${RM} ${SHELLS}.bak X X.include 24a50839df20275ec30673a708c3fbff echo x - lshell/pkg-plist sed 's/^X//' >lshell/pkg-plist << '5fdef047187613039b2e75d6de5de295' X@comment $FreeBSD$ Xbin/lshell X@exec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak X@unexec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak X@unexec if cmp -s %D/etc/lshell.conf %D/etc/lshell.conf.sample; then rm -f %D/etc/lshell.conf; fi Xetc/lshell.conf.sample X@exec if [ ! -f %D/etc/lshell.conf ]; then cp %B/%f %D/etc/lshell.conf; fi X%%PYTHON_SITELIBDIR%%/lshell.py X%%PYTHON_SITELIBDIR%%/lshell.pyc X%%PYTHON_SITELIBDIR%%/lshell.pyo X%%PORTDOCS%%%%DOCSDIR%%/CHANGES X%%PORTDOCS%%%%DOCSDIR%%/COPYING X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%@dirrm %%DOCSDIR%% X@dirrmtry %%DATADIR%% X@dirrmtry %%LOGDIR%% 5fdef047187613039b2e75d6de5de295 echo x - lshell/pkg-descr sed 's/^X//' >lshell/pkg-descr << '6be03f158f6b0d510079bb1c988494ac' XRestricts a user's shell environment to limited sets of commands X lshell is a shell coded in Python that lets you restrict a user's environment X to limited sets of commands, choose to enable/disable any command over SSH X (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing X restrictions, and more. X X XWWW: http://sourceforge.net/projects/lshell/ 6be03f158f6b0d510079bb1c988494ac echo x - lshell/distinfo sed 's/^X//' >lshell/distinfo << '77e7ca5701ca55081b6fe9672c29480a' XMD5 (lshell-0.9.5.tar.gz) = 89f0a93725f762f31e3b0c5ac2599df2 XSHA256 (lshell-0.9.5.tar.gz) = 9261ceb5b076cdde576c946bc0b1dc8f1c6e8a23dca7629f61479f7c6d9f59da XSIZE (lshell-0.9.5.tar.gz) = 30524 77e7ca5701ca55081b6fe9672c29480a exit --- lshell.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: