Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2001 17:45:27 +0000 (GMT)
From:      George Reid <greid@dogma.freebsd-uk.eu.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24309: New port: wapsh: A system to allow remote shell logins via a WAP or HTTP browser
Message-ID:  <Pine.BSF.4.21.0101131744190.27311-100000@sobek.openirc.co.uk>

next in thread | raw e-mail | index | archive | help

>Number:         24309
>Category:       ports
>Synopsis:       New port: wapsh: A system to allow remote shell logins via a WAP phone or web browser
>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:   Sat Jan 13 09:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     George Reid
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSD UKUG
>Environment:
n/a
>Description:
htsh/wapsh is a system implemented by exolution GmbH which allows
users to login to a Unix shell on a remote host using a web browser
or WAP phone (in the latter incarnation, htsh is also called wapsh).

The following phones and emulators have been successfully tested with
htsh:
  * Nokia 6210
  * Nokia 7110
  * Siemens C35 and S35
  * Nokia WAP Toolkit 2.0 "Blueprint" phone emulator
  * UP.Simulator 4.0 from Phone.com

We welcome feedback (at wapsh@exolution.de) from users about their
experiences using other phone types.

- George Reid
greid@ukug.uk.freebsd.org
>How-To-Repeat:
n/a
>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:
#
#	wapsh
#	wapsh/Makefile
#	wapsh/distinfo
#	wapsh/pkg-plist
#	wapsh/pkg-descr
#	wapsh/pkg-comment
#	wapsh/files
#	wapsh/files/patch-aa
#	wapsh/files/htshd.sh
#	wapsh/pkg-message
#
echo c - wapsh
mkdir -p wapsh > /dev/null 2>&1
echo x - wapsh/Makefile
sed 's/^X//' >wapsh/Makefile << 'END-of-wapsh/Makefile'
X# New ports collection makefile for:   wapsh
X# Date created:        13 January 2001
X# Whom:                George Reid <greid@ukug.uk.freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=       	wapsh
XPORTVERSION=		1.0
XCATEGORIES=     	shells
XMASTER_SITES=   	http://www.exolution.de/wapsh/
XDISTNAME=		${PORTNAME}_${PORTVERSION}
X
XMAINTAINER=		greid@ukug.uk.freebsd.org
X
X#RUN_DEPENDS=		${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \
X#			${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3
X
XWRKSRC=			${WRKDIR}/${DISTNAME:S/_/-/}
X
XUSERGUIDEDOCS=		Image10.jpg Image11.jpg Image12.jpg Image13.jpg \
X			Image14.jpg Image15.jpg Image16.jpg Image17.jpg \
X			Image18.jpg Image19.jpg Image20.jpg Image21.jpg \
X			Image22.jpg Image23.jpg Image24.jpg Image25.gif \
X			Image26.jpg Image27.jpg Image28.jpg Image29.jpg \
X			Image30.jpg Image31.jpg Image32.jpg Image33.jpg \
X			Image34.jpg Image35.jpg Image36.jpg Image37.jpg \
X			Image38.jpg Image39.jpg Image4.gif Image40.jpg \
X			Image41.jpg Image42.jpg Image43.jpg Image44.jpg \
X			Image45.jpg Image46.jpg Image47.jpg Image48.jpg \
X			Image49.jpg Image5.gif Image50.gif Image51.jpg \
X			Image52.jpg Image53.gif Image54.jpg Image55.jpg \
X			Image56.jpg Image6.jpg Image7.jpg Image8.jpg \
X			Image9.jpg index.html
X
XHTDOCS=			command.php command_html.inc command_wml.inc \
X			common.inc common_html.inc common_wml.inc \
X			controls_wml.php displayfuncs.inc getloginhosts.inc \
X			history_edit_wml.php history_html.php history_wml.php \
X			login_html.php login_wml.php scroll_wml.php \
X			shortcuts_wml.php
X
Xpost-patch:
X	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/htshd/htshd.c > foo && \
X		${MV} foo ${WRKSRC}/htshd/htshd.c
X
Xdo-build:
X	(cd ${WRKSRC}/htshd && ${CC} ${CFLAGS} -o htshd htshd.c -lcrypt \
X		-lutil -DUSE_DEV_RANDOM=1)
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/htshd/htshd ${PREFIX}/sbin
X
X	${MKDIR} ${PREFIX}/etc/wapsh
X.for C in htsh_profile htshd.conf loginhosts
X	${INSTALL_DATA} ${WRKSRC}/sample/$C ${PREFIX}/etc/wapsh
X.endfor
X
X	${MKDIR} ${PREFIX}/share/wapsh/htdocs
X.for H in ${HTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/htdocs/$H ${PREFIX}/share/wapsh/htdocs
X.endfor
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/wapsh/admin_guide
X	${MKDIR} ${PREFIX}/share/doc/wapsh/implementation_notes
X	${MKDIR} ${PREFIX}/share/doc/wapsh/user_guide
X.for B in Image1.jpg Image2.jpg Image3.jpg index.html qpl.html
X	${INSTALL_DATA} ${WRKSRC}/docs/html/$B ${PREFIX}/share/doc/wapsh
X.endfor
X	${INSTALL_DATA} ${WRKSRC}/docs/html/admin_guide/index.html \
X		${PREFIX}/share/doc/wapsh/admin_guide
X.for I in index.html image57.gif
X	${INSTALL_DATA} ${WRKSRC}/docs/html/implementation_notes/$I \
X		${PREFIX}/share/doc/wapsh/implementation_notes
X.endfor
X.for U in ${USERGUIDEDOCS}
X	${INSTALL_DATA} ${WRKSRC}/docs/html/user_guide/$U \
X		${PREFIX}/share/doc/wapsh/user_guide
X.endfor
X.endif #if !defined(NOPORTDOCS)
X
Xpost-install:
X	@${ECHO} "updating /etc/services"
X	@${CP} /etc/services /etc/services.bak
X	@(${GREP} -v ^htsh /etc/services.bak; ${ECHO} "htsh		3001/tcp    # htsh/wapsh server") > /etc/services
X	@if [ ! -f ${PREFIX}/etc/rc.d/htshd.sh ]; then \
X		${ECHO} "===>   Installing ${PREFIX}/etc/rc.d/htshd.sh startup file."; \
X		${INSTALL_SCRIPT} ${FILESDIR}/htshd.sh ${PREFIX}/etc/rc.d/htshd.sh; \
X	fi
X	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-wapsh/Makefile
echo x - wapsh/distinfo
sed 's/^X//' >wapsh/distinfo << 'END-of-wapsh/distinfo'
XMD5 (wapsh_1.0.tar.gz) = 4e836a2edd189d3301ca6fa7ba52cafb
END-of-wapsh/distinfo
echo x - wapsh/pkg-plist
sed 's/^X//' >wapsh/pkg-plist << 'END-of-wapsh/pkg-plist'
Xsbin/htshd
Xetc/rc.d/htshd.sh
Xetc/wapsh/htsh_profile
Xetc/wapsh/htshd.conf
Xetc/wapsh/loginhosts
Xshare/wapsh/htdocs/command.php
Xshare/wapsh/htdocs/command_html.inc
Xshare/wapsh/htdocs/command_wml.inc 
Xshare/wapsh/htdocs/common.inc
Xshare/wapsh/htdocs/common_html.inc
Xshare/wapsh/htdocs/common_wml.inc 
Xshare/wapsh/htdocs/controls_wml.php
Xshare/wapsh/htdocs/displayfuncs.inc
Xshare/wapsh/htdocs/getloginhosts.inc 
Xshare/wapsh/htdocs/history_edit_wml.php
Xshare/wapsh/htdocs/history_html.php
Xshare/wapsh/htdocs/history_wml.php 
Xshare/wapsh/htdocs/login_html.php
Xshare/wapsh/htdocs/login_wml.php
Xshare/wapsh/htdocs/scroll_wml.php 
Xshare/wapsh/htdocs/shortcuts_wml.php
Xshare/doc/wapsh/Image1.jpg
Xshare/doc/wapsh/Image2.jpg
Xshare/doc/wapsh/Image3.jpg
Xshare/doc/wapsh/admin_guide/index.html
Xshare/doc/wapsh/implementation_notes/image57.gif
Xshare/doc/wapsh/implementation_notes/index.html
Xshare/doc/wapsh/index.html
Xshare/doc/wapsh/qpl.html
Xshare/doc/wapsh/user_guide/Image10.jpg
Xshare/doc/wapsh/user_guide/Image11.jpg
Xshare/doc/wapsh/user_guide/Image12.jpg
Xshare/doc/wapsh/user_guide/Image13.jpg
Xshare/doc/wapsh/user_guide/Image14.jpg
Xshare/doc/wapsh/user_guide/Image15.jpg
Xshare/doc/wapsh/user_guide/Image16.jpg
Xshare/doc/wapsh/user_guide/Image17.jpg
Xshare/doc/wapsh/user_guide/Image18.jpg
Xshare/doc/wapsh/user_guide/Image19.jpg
Xshare/doc/wapsh/user_guide/Image20.jpg
Xshare/doc/wapsh/user_guide/Image21.jpg
Xshare/doc/wapsh/user_guide/Image22.jpg
Xshare/doc/wapsh/user_guide/Image23.jpg
Xshare/doc/wapsh/user_guide/Image24.jpg
Xshare/doc/wapsh/user_guide/Image25.gif
Xshare/doc/wapsh/user_guide/Image26.jpg
Xshare/doc/wapsh/user_guide/Image27.jpg
Xshare/doc/wapsh/user_guide/Image28.jpg
Xshare/doc/wapsh/user_guide/Image29.jpg
Xshare/doc/wapsh/user_guide/Image30.jpg
Xshare/doc/wapsh/user_guide/Image31.jpg
Xshare/doc/wapsh/user_guide/Image32.jpg
Xshare/doc/wapsh/user_guide/Image33.jpg
Xshare/doc/wapsh/user_guide/Image34.jpg
Xshare/doc/wapsh/user_guide/Image35.jpg
Xshare/doc/wapsh/user_guide/Image36.jpg
Xshare/doc/wapsh/user_guide/Image37.jpg
Xshare/doc/wapsh/user_guide/Image38.jpg
Xshare/doc/wapsh/user_guide/Image39.jpg
Xshare/doc/wapsh/user_guide/Image4.gif
Xshare/doc/wapsh/user_guide/Image40.jpg
Xshare/doc/wapsh/user_guide/Image41.jpg
Xshare/doc/wapsh/user_guide/Image42.jpg
Xshare/doc/wapsh/user_guide/Image43.jpg
Xshare/doc/wapsh/user_guide/Image44.jpg
Xshare/doc/wapsh/user_guide/Image45.jpg
Xshare/doc/wapsh/user_guide/Image46.jpg
Xshare/doc/wapsh/user_guide/Image47.jpg
Xshare/doc/wapsh/user_guide/Image48.jpg
Xshare/doc/wapsh/user_guide/Image49.jpg
Xshare/doc/wapsh/user_guide/Image5.gif
Xshare/doc/wapsh/user_guide/Image50.gif
Xshare/doc/wapsh/user_guide/Image51.jpg
Xshare/doc/wapsh/user_guide/Image52.jpg
Xshare/doc/wapsh/user_guide/Image53.gif
Xshare/doc/wapsh/user_guide/Image54.jpg
Xshare/doc/wapsh/user_guide/Image55.jpg
Xshare/doc/wapsh/user_guide/Image56.jpg
Xshare/doc/wapsh/user_guide/Image6.jpg
Xshare/doc/wapsh/user_guide/Image7.jpg
Xshare/doc/wapsh/user_guide/Image8.jpg
Xshare/doc/wapsh/user_guide/Image9.jpg
Xshare/doc/wapsh/user_guide/index.html
X@exec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^htsh /etc/services.bak ; echo "htsh		3001/tcp    # htsh/wapsh server") > /etc/services
X@unexec echo "updating /etc/services"; cp /etc/services /etc/services.bak; (grep -v ^htsh /etc/services.bak ) > /etc/services
X@dirrm etc/wapsh
X@dirrm share/doc/wapsh/admin_guide
X@dirrm share/doc/wapsh/implementation_notes
X@dirrm share/doc/wapsh/user_guide
X@dirrm share/doc/wapsh
X@dirrm share/wapsh/htdocs
X
END-of-wapsh/pkg-plist
echo x - wapsh/pkg-descr
sed 's/^X//' >wapsh/pkg-descr << 'END-of-wapsh/pkg-descr'
Xhtsh/wapsh is a system implemented by exolution GmbH which allows
Xusers to login to a Unix shell on a remote host using a web browser
Xor WAP phone (in the latter incarnation, htsh is also called wapsh).
X
XThe following phones and emulators have been successfully tested with
Xhtsh:
X  * Nokia 6210
X  * Nokia 7110
X  * Siemens C35 and S35
X  * Nokia WAP Toolkit 2.0 "Blueprint" phone emulator
X  * UP.Simulator 4.0 from Phone.com
X
XWe welcome feedback (at wapsh@exolution.de) from users about their
Xexperiences using other phone types.
X
X- George Reid
Xgreid@ukug.uk.freebsd.org
END-of-wapsh/pkg-descr
echo x - wapsh/pkg-comment
sed 's/^X//' >wapsh/pkg-comment << 'END-of-wapsh/pkg-comment'
XA system to allow remote shell logins via a WAP phone or web browser
END-of-wapsh/pkg-comment
echo c - wapsh/files
mkdir -p wapsh/files > /dev/null 2>&1
echo x - wapsh/files/patch-aa
sed 's/^X//' >wapsh/files/patch-aa << 'END-of-wapsh/files/patch-aa'
X--- htshd/htshd.c.orig	Sat Jan 13 17:35:54 2001
X+++ htshd/htshd.c	Sat Jan 13 17:36:18 2001
X@@ -97,10 +97,10 @@
X #define SERVICE_NAME "htsh"	/* Should be in /etc/services
X                                    on login and http server hosts */
X 
X-#define CONFIG_FILE "/etc/htshd.conf"
X+#define CONFIG_FILE "%%PREFIX%%/etc/wapsh/htshd.conf"
X 				/* Default name of startup config file */
X 
X-#define GLOBAL_RC_FILE "/etc/htsh_profile"
X+#define GLOBAL_RC_FILE "%%PREFIX%%/etc/wapsh/htsh_profile"
X 				/* Default name of global user 
X 				   initialisation file */
X #define RCFILE ".htshrc"	/* Name of user-specific initialisation file
END-of-wapsh/files/patch-aa
echo x - wapsh/files/htshd.sh
sed 's/^X//' >wapsh/files/htshd.sh << 'END-of-wapsh/files/htshd.sh'
X#!/bin/sh
X
Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
X    echo "$0: Cannot determine the PREFIX" >&2
X    exit 1
Xfi
X
Xcase "$1" in
Xstart)
X	[ -x "${PREFIX}/sbin/htshd" -a -f "${PREFIX}/etc/wapsh/htshd.conf" ] && ${PREFIX}/sbin/htshd -f ${PREFIX}/etc/wapsh/htshd.conf > /dev/null && echo -n ' htshd'
X	;;
Xstop)
X	killall htshd && echo -n ' htshd'
X	;;
X*)
X	echo "Usage: `basename $0` {start|stop}" >&2
X	;;
Xesac
X
Xexit 0
END-of-wapsh/files/htshd.sh
echo x - wapsh/pkg-message
sed 's/^X//' >wapsh/pkg-message << 'END-of-wapsh/pkg-message'
X
Xwapsh/htsh is now installed.
X
XSample configuration files can be found in %%PREFIX%%/etc/wapsh
X
XHTML documentation has been installed in %%PREFIX%%/share/doc/wapsh
X
XPHP scripts for both HTTP and WAP access have been installed in
X%%PREFIX%%/share/wapsh/htdocs
X
XPlease read the installed documentation for information on how to create
Xthe configuration files.
X
END-of-wapsh/pkg-message
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?Pine.BSF.4.21.0101131744190.27311-100000>