From bcf3c1ba86c75377963d9ea5b2257a6cb3151f46 Mon Sep 17 00:00:00 2001 From: Automaton Date: Mon, 10 Dec 2012 02:14:59 +0100 Subject: [PATCH] Import shells/ibsh version 0.3e --- shells/ibsh/Makefile | 39 ++++++++++++++++++++++++++++++++ shells/ibsh/distinfo | 2 ++ shells/ibsh/files/patch-Makefile | 21 +++++++++++++++++ shells/ibsh/files/pkg-message.in | 9 ++++++++ shells/ibsh/pkg-descr | 6 +++++ shells/ibsh/pkg-plist | 7 ++++++ 6 files changed, 84 insertions(+) create mode 100644 shells/ibsh/Makefile create mode 100644 shells/ibsh/distinfo create mode 100644 shells/ibsh/files/patch-Makefile create mode 100644 shells/ibsh/files/pkg-message.in create mode 100644 shells/ibsh/pkg-descr create mode 100644 shells/ibsh/pkg-plist diff --git a/shells/ibsh/Makefile b/shells/ibsh/Makefile new file mode 100644 index 00000000000..f9e7c162d16 --- /dev/null +++ b/shells/ibsh/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: ibsh +# Date created: 1 Oct 2005 +# Whom: Vaida Bogdan +# +# $FreeBSD: ports/shells/ibsh/Makefile,v 1.4 2012/11/17 06:01:23 svnexp Exp $ +# + +PORTNAME= ibsh +PORTVERSION= 0.3e +CATEGORIES= shells +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} + +MAINTAINER= vaida.bogdan@gmail.com +COMMENT= Restricted unix shell + +USE_GMAKE= yes +ALL_TARGET= ibsh +INSTALL_TARGET= ibsh_install + +SUB_FILES= pkg-message +PORTDOCS= AUTHORS BUGS CONTRIBUTORS COPYING COPYRIGHT ChangeLog \ + INSTALL README TODO VERSION + +.include + +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 diff --git a/shells/ibsh/distinfo b/shells/ibsh/distinfo new file mode 100644 index 00000000000..fccf3ec71dd --- /dev/null +++ b/shells/ibsh/distinfo @@ -0,0 +1,2 @@ +SHA256 (ibsh-0.3e.tar.gz) = 4c40d0841527c76fc75ccc27d32b575543d02d661973fc3561004efb6033206d +SIZE (ibsh-0.3e.tar.gz) = 20475 diff --git a/shells/ibsh/files/patch-Makefile b/shells/ibsh/files/patch-Makefile new file mode 100644 index 00000000000..6168d71f575 --- /dev/null +++ b/shells/ibsh/files/patch-Makefile @@ -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 diff --git a/shells/ibsh/files/pkg-message.in b/shells/ibsh/files/pkg-message.in new file mode 100644 index 00000000000..00278e259d6 --- /dev/null +++ b/shells/ibsh/files/pkg-message.in @@ -0,0 +1,9 @@ +========================================================================== + +To use the shell: + +# echo %%PREFIX%%/bin/ibsh >> /etc/shells + +Also check %%PREFIX%%/etc/ibsh + +========================================================================== diff --git a/shells/ibsh/pkg-descr b/shells/ibsh/pkg-descr new file mode 100644 index 00000000000..128845c6b4c --- /dev/null +++ b/shells/ibsh/pkg-descr @@ -0,0 +1,6 @@ +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/ diff --git a/shells/ibsh/pkg-plist b/shells/ibsh/pkg-plist new file mode 100644 index 00000000000..ef76a8a4823 --- /dev/null +++ b/shells/ibsh/pkg-plist @@ -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 -- 2.41.0