Date: Sat, 11 Dec 1999 02:39:14 -0500 (EST) From: Will Andrews <andrews@technologist.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/15413: new port: shells/flash Message-ID: <199912110739.CAA17115@argon.blackdawn.com>
next in thread | raw e-mail | index | archive | help
>Number: 15413 >Category: ports >Synopsis: new port: shells/flash >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 10 23:40:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Will Andrews >Release: FreeBSD 4.0-CURRENT i386 >Organization: none >Environment: FreeBSD argon.blackdawn.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Tue Nov 30 10:14:31 EST 1999 root@argon.blackdawn.com:/usr/src/sys/compile/ARGON i386 >Description: Flash is a powerful "restricted" shell that shell admins can use to keep their users out of trouble. It's a very nice package, and I am proud to say that I believe I've removed most of the kinks from this program. Unfortunately, at this time, the default menu files are not in sync with FreeBSD's main source tree (i.e., it defaults to using `less`). However, I am sure that the warning given at the end of the install should suffice until this can be fixed with the flash people. It's just too much trouble to put such a huge patch into the port itself to fix this glaring problem. >How-To-Repeat: use the shar below to commit the new port to the tree. >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: # # flash # flash/files # flash/files/md5 # flash/pkg # flash/pkg/COMMENT # flash/pkg/DESCR # flash/pkg/PLIST # flash/patches # flash/patches/patch-aa # flash/patches/patch-ab # flash/patches/patch-ac # flash/patches/patch-ad # flash/patches/patch-ae # flash/patches/patch-af # flash/patches/patch-ag # flash/Makefile # echo c - flash mkdir -p flash > /dev/null 2>&1 echo c - flash/files mkdir -p flash/files > /dev/null 2>&1 echo x - flash/files/md5 sed 's/^X//' >flash/files/md5 << 'END-of-flash/files/md5' XMD5 (flash-0.9.1.tar.gz) = 8b26c4d562b43d531b836b2279dad447 END-of-flash/files/md5 echo c - flash/pkg mkdir -p flash/pkg > /dev/null 2>&1 echo x - flash/pkg/COMMENT sed 's/^X//' >flash/pkg/COMMENT << 'END-of-flash/pkg/COMMENT' Xncurses-based restriction shell. END-of-flash/pkg/COMMENT echo x - flash/pkg/DESCR sed 's/^X//' >flash/pkg/DESCR << 'END-of-flash/pkg/DESCR' XFlash is an attempt to create a secure menu-driver shell for UNIX-derived OSes, Xwhile providing user-friendliness and easy configurability. An ideal situation Xrequiring the use of flash would be a student-run telnet server which needs to: X Xa) shelter the users from some of the nastinesses of UNIX Xb) shelter the system from nasty users Xc) provide an easy way to launch applications Xd) support multitasking/job control as elegantly as possible Xe) support easy-to-get-right configuration by administrators X XWWW: http://www.netsoc.ucd.ie/flash/ XAuthor: Steve Fegan <flash@netsoc.ucd.ie> END-of-flash/pkg/DESCR echo x - flash/pkg/PLIST sed 's/^X//' >flash/pkg/PLIST << 'END-of-flash/pkg/PLIST' Xbin/flash Xlib/flash/background Xlib/flash/countdown Xlib/flash/mailshell Xlib/flash/system.bg.Netsoc.3 Xlib/flash/system.bg.Netsoc.4 Xlib/flash/system.flashlogin Xlib/flash/system.maillogin Xlib/flash/system.menu Xlib/flash/system.menu.9798 Xlib/flash/system.menu.oldlast Xlib/flash/system.menu.old Xlib/flash/system.menu~ Xlib/flash/system.module Xlib/flash/system.module.9798 Xlib/flash/system.rc Xlib/flash/system.rc.mailshell Xlib/flash/flashdocs/IrcHelp.txt Xlib/flash/flashdocs/apropertelnet.txt Xlib/flash/flashdocs/glossary.txt Xlib/flash/flashdocs/howuseppgate.txt Xlib/flash/flashdocs/howusesquid.txt Xlib/flash/flashdocs/speedweb.txt Xlib/flash/flashdocs/uselynx.txt Xlib/flash/checkflash X@dirrm lib/flash/flashdocs X@dirrm lib/flash END-of-flash/pkg/PLIST echo c - flash/patches mkdir -p flash/patches > /dev/null 2>&1 echo x - flash/patches/patch-aa sed 's/^X//' >flash/patches/patch-aa << 'END-of-flash/patches/patch-aa' X--- Makefile.in Mon Jun 28 11:28:50 1999 X+++ Makefile.in.new Sat Dec 11 02:24:54 1999 X@@ -7,9 +7,8 @@ X INITIALMENU = system.menu X X # Directory to install everything to X-prefix = /usr/slocal X EXEC_PREFIX = ${prefix} X-BINDIR = $(EXEC_PREFIX)/bin X+BINDIR = $(EXEC_PREFIX)/sbin X LIBDIR = $(prefix)/lib/flash X MANDIR = $(prefix)/man/man1 X X@@ -29,23 +28,29 @@ X DEBUG = -g X #DEBUG = -DDEBUG -g X #CPPFLAGS = -I/usr/include/ncurses -DHAVE_CONFIG_H -DPREFIX=\"/usr/slocal\" #-DDEBUG X-CPPFLAGS = -DHAVE_CONFIG_H -DPREFIX=\"/usr/slocal\" -DDONT_HIGHLIGHT_WITH_REVERSE #-DLITTLE_ENDIAN X+CPPFLAGS = -DHAVE_CONFIG_H -DPREFIX=\"$(prefix)\" -DDONT_HIGHLIGHT_WITH_REVERSE #-DLITTLE_ENDIAN X CFLAGS = -O2 $(CPPFLAGS) $(DEBUG) -Wall -rdynamic X X LDFLAGS = -rdynamic X-LIBRARIES = -lncurses -ldl X+LIBRARIES = -lncurses X X SCREEN_SOURCES = screens/nc_init.c screens/nc_lock.c screens/nc_about.c screens/nc_menus.c screens/nc_misc.c screens/nc_job.c screens/nc_module.c X X+MODULE_PROGS = modules/countdown modules/background X SOURCES = main.c parse.c string.c set.c misc.c menu.c exec.c rc.c tree.c parseline.c event.c sha.c module.c debug.c $(SCREEN_SOURCES) X OBJECTS = $(SOURCES:.c=.o) X X+all: $(PROGNAME) X+ X .c.o: X $(CC) $(CFLAGS) -c -o $@ $< X X-$(PROGNAME): $(OBJECTS) X+$(PROGNAME): $(OBJECTS) $(MODULE_PROGS) X $(RM) $@ X $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBRARIES) X+ X+$(MODULE_PROGS): X+ $(MAKE) -C modules && $(MAKE) X X shacrypt: X $(CC) $(CFLAGS) -DO_WRAP -o $@ sha.c END-of-flash/patches/patch-aa echo x - flash/patches/patch-ab sed 's/^X//' >flash/patches/patch-ab << 'END-of-flash/patches/patch-ab' X--- exec.h Wed Mar 5 06:59:11 1997 X+++ exec.h.new Sat Dec 11 01:29:48 1999 X@@ -3,6 +3,7 @@ X X #include<signal.h> X #include<termios.h> X+#include <sys/types.h> X X #include "parse.h" X #include "menu.h" END-of-flash/patches/patch-ab echo x - flash/patches/patch-ac sed 's/^X//' >flash/patches/patch-ac << 'END-of-flash/patches/patch-ac' X--- menu.c Sun Apr 13 12:43:26 1997 X+++ menu.c.new Sat Dec 11 01:30:45 1999 X@@ -5,7 +5,7 @@ X #include <stdio.h> X #include <stdlib.h> X #include <string.h> X-#include <malloc.h> X+#include <stdlib.h> X X #include "menu.h" X #include "parse.h" END-of-flash/patches/patch-ac echo x - flash/patches/patch-ad sed 's/^X//' >flash/patches/patch-ad << 'END-of-flash/patches/patch-ad' X--- module.c Tue Jun 29 05:36:28 1999 X+++ module.c.new Sat Dec 11 01:34:45 1999 X@@ -25,7 +25,6 @@ X #include<stdlib.h> X #include<pwd.h> X #include<sys/types.h> X-#include<sys/resource.h> X #include<sys/wait.h> X #include<sys/stat.h> X #include<fcntl.h> END-of-flash/patches/patch-ad echo x - flash/patches/patch-ae sed 's/^X//' >flash/patches/patch-ae << 'END-of-flash/patches/patch-ae' X--- parseline.c Tue Jun 29 05:36:47 1999 X+++ parseline.c.new Sat Dec 11 01:34:21 1999 X@@ -25,7 +25,6 @@ X #include<string.h> X #include<pwd.h> X #include<sys/types.h> X-#include<sys/resource.h> X #include<sys/wait.h> X #include<sys/stat.h> X #include<fcntl.h> END-of-flash/patches/patch-ae echo x - flash/patches/patch-af sed 's/^X//' >flash/patches/patch-af << 'END-of-flash/patches/patch-af' X--- rc.c Tue Jun 29 05:36:54 1999 X+++ rc.c.new Sat Dec 11 01:34:05 1999 X@@ -25,7 +25,6 @@ X #include<stdlib.h> X #include<pwd.h> X #include<sys/types.h> X-#include<sys/resource.h> X #include<sys/wait.h> X #include<sys/stat.h> X #include<fcntl.h> END-of-flash/patches/patch-af echo x - flash/patches/patch-ag sed 's/^X//' >flash/patches/patch-ag << 'END-of-flash/patches/patch-ag' X--- screens/nc_menus.c Tue Jun 29 05:42:18 1999 X+++ screens/nc_menus.c.new Sat Dec 11 01:36:09 1999 X@@ -783,7 +783,6 @@ X struct menu *menu; X struct menu_items *HK; X int noclobber,gotch; X- char c; X X if (!(firstmenu)) X return; END-of-flash/patches/patch-ag echo x - flash/Makefile sed 's/^X//' >flash/Makefile << 'END-of-flash/Makefile' X# New ports collection makefile for: flash X# Version required: 0.9.1 X# Date created: 11 Dec 1999 X# Whom: Will Andrews <andrews@technologist.com> X# X# $FreeBSD$ X# X XDISTNAME= flash-0.9.1 XCATEGORIES= shells XMASTER_SITES= ftp://ftp.netsoc.ucd.ie/pub/computing/flash/ X XMAINTAINER= andrews@technologist.com X XGNU_CONFIGURE= yes XUSE_GMAKE= yes XMAKE_ENV= prefix=${PREFIX} XWRKSRC= ${WRKDIR}/flash XMAN1= flash.1 X Xpre-build: X @${RM} -rf ${WRKSRC}/modules/countdown ${WRKSRC}/modules/background X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/flash ${PREFIX}/bin X @${MKDIR} ${PREFIX}/lib/flash/flashdocs/ X.for DOC in checkflash system.bg.Netsoc.3 system.bg.Netsoc.4 system.flashlogin \ X system.maillogin system.module system.module.9798 system.rc system.rc.mailshell X @${INSTALL_DATA} ${WRKSRC}/orcasetup/${DOC} ${PREFIX}/lib/flash/ X.endfor X.for PROG in background countdown X @${INSTALL_PROGRAM} ${WRKSRC}/modules/${PROG} ${PREFIX}/lib/flash/ X.endfor X.for SCRIPT in mailshell system.menu system.menu.9798 system.menu.oldlast system.menu~ \ X system.menu.old X @${PERL} -pi -e "s:/usr/slocal:${PREFIX}:g" ${WRKSRC}/orcasetup/${SCRIPT} X @${INSTALL_SCRIPT} ${WRKSRC}/orcasetup/${SCRIPT} ${PREFIX}/lib/flash X.endfor X @${INSTALL_DATA} ${WRKSRC}/orcasetup/flashdocs/* ${PREFIX}/lib/flash/flashdocs/ X @${INSTALL_MAN} ${WRKSRC}/flash.1 ${PREFIX}/man/man1 X @${INSTALL_PROGRAM} ${WRKSRC}/flash ${PREFIX}/bin X Xpost-install: X @${ECHO} "Updating /etc/shells" X @${CP} /etc/shells /etc/shells.bak X @(${GREP} -v ${PREFIX}/bin/flash /etc/shells.bak; \ X ${ECHO} ${PREFIX}/bin/flash) > /etc/shells X @${RM} /etc/shells.bak X @${ECHO} X @${ECHO} " -------------------- WARNING -------------------------- " X @${ECHO} "This software is not yet ready-to-go on your system. You " X @${ECHO} "need to configure flash in ${PREFIX}/lib/flash in order for" X @${ECHO} "it to work properly." X @${ECHO} X X.include <bsd.port.mk> END-of-flash/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912110739.CAA17115>