1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

Iron Bars Shell is a restricted Unix shell. The user can not step out of, nor

access files outside the home directory. It is written in C for Linux. No
libraries used. It is small, fast, secure. Two ascii configuration files for
more control.

PR:		ports/88351
Submitted by:	Vaida Bogdan <vaidab@phenix.rootshell.be>
This commit is contained in:
Pav Lucistnik 2005-11-12 12:56:55 +00:00
parent 55ba256801
commit 5435e51604
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148029
7 changed files with 91 additions and 0 deletions

View File

@ -13,6 +13,7 @@
SUBDIR += fd
SUBDIR += flash
SUBDIR += gscommander
SUBDIR += ibsh
SUBDIR += ksh93
SUBDIR += mudsh
SUBDIR += nologinmsg

41
shells/ibsh/Makefile Normal file
View File

@ -0,0 +1,41 @@
# New ports collection makefile for: ibsh
# Date created: 1 Oct 2005
# Whom: Vaida Bogdan
#
# $FreeBSD$
#
PORTNAME= ibsh
PORTVERSION= 0.3e
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= vaida.bogdan@gmail.com
COMMENT= Restricted unix shell
USE_GMAKE= yes
ALL_TARGET= ibsh
INSTALL_TARGET= ibsh_install
SUB_FILES= pkg-message
USE_REINPLACE= yes
PORTDOCS= AUTHORS BUGS CONTRIBUTORS COPYING COPYRIGHT ChangeLog \
INSTALL README TODO VERSION
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|PATH_MAX|PATH_MAXb|g' ${WRKSRC}/delbadfiles.c ${WRKSRC}/ibsh.h
@${REINPLACE_CMD} -e 's|/etc/ibsh|${PREFIX}/etc/ibsh|g' ${WRKSRC}/ibsh.h
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
@${ECHO}
@${CAT} ${PKGMESSAGE}
@${ECHO}
.include <bsd.port.post.mk>

3
shells/ibsh/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (ibsh-0.3e.tar.gz) = 41ea08a03c6bd805dff1a5ff25ea1d5b
SHA256 (ibsh-0.3e.tar.gz) = 4c40d0841527c76fc75ccc27d32b575543d02d661973fc3561004efb6033206d
SIZE (ibsh-0.3e.tar.gz) = 20475

View File

@ -0,0 +1,21 @@
--- Makefile.orig Fri Jun 3 15:47:32 2005
+++ Makefile Sat Nov 12 13:47:53 2005
@@ -30,12 +30,12 @@
${CC} -c delbadfiles.c
ibsh_install:
- cp ./ibsh /bin/
- mkdir /etc/ibsh
- mkdir /etc/ibsh/cmds
- mkdir /etc/ibsh/xtns
- cp ./globals.cmds /etc/ibsh/
- cp ./globals.xtns /etc/ibsh/
+ cp ./ibsh ${PREFIX}/bin/
+ mkdir ${PREFIX}/etc/ibsh
+ mkdir ${PREFIX}/etc/ibsh/cmds
+ mkdir ${PREFIX}/etc/ibsh/xtns
+ cp ./globals.cmds ${PREFIX}/etc/ibsh/
+ cp ./globals.xtns ${PREFIX}/etc/ibsh/
ibsh_uninstall:
rm -rf /etc/ibsh/globals.cmds

View File

@ -0,0 +1,9 @@
==========================================================================
To use the shell:
# echo %%PREFIX%%/bin/ibsh >> /etc/shells
Also check %%PREFIX%%/etc/ibsh
==========================================================================

9
shells/ibsh/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
Iron Bars Shell is a restricted Unix shell. The user can not step out of, nor
access files outside the home directory. It is written in C for Linux. No
libraries used. It is small, fast, secure. Two ascii configuration files for
more control.
WWW: http://ibsh.sourceforge.net/
- Vaida Bogdan
vaida.bogdan@gmail.com

7
shells/ibsh/pkg-plist Normal file
View File

@ -0,0 +1,7 @@
bin/ibsh
etc/ibsh/globals.cmds
etc/ibsh/globals.xtns
@dirrm /etc/ibsh/cmds
@dirrm /etc/ibsh/xtns
@dirrm /etc/ibsh