summaryrefslogtreecommitdiff
path: root/shells/wapsh/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-11-18 20:29:21 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-11-18 20:29:21 +0000
commitb18e5f4f22c012c2a912d806dec859fc0ad8b2f9 (patch)
tree9d6186a3e82909512a140279b1e157359fd6529e /shells/wapsh/files
parento) Update to version 3.10.6 (USB support) (diff)
- fix build with gcc 3.3.x
- unmark as BROKEN - use %%DATADIR%% and %%DOCSDIR%% - pkg-plist is NOPORTSDOC compliant - make portlint happy PR: 59427 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Notes
Notes: svn path=/head/; revision=94292
Diffstat (limited to 'shells/wapsh/files')
-rw-r--r--shells/wapsh/files/patch-htshd::htshd.c80
1 files changed, 76 insertions, 4 deletions
diff --git a/shells/wapsh/files/patch-htshd::htshd.c b/shells/wapsh/files/patch-htshd::htshd.c
index 712c7dc7821e..48b1a6a49edf 100644
--- a/shells/wapsh/files/patch-htshd::htshd.c
+++ b/shells/wapsh/files/patch-htshd::htshd.c
@@ -1,15 +1,87 @@
---- htshd/htshd.c.orig Sat Jan 13 17:35:54 2001
-+++ htshd/htshd.c Sat Jan 13 17:36:18 2001
+--- htshd/htshd.c.orig Fri Nov 24 15:46:01 2000
++++ htshd/htshd.c Tue Nov 18 18:03:33 2003
@@ -97,10 +97,10 @@
#define SERVICE_NAME "htsh" /* Should be in /etc/services
on login and http server hosts */
-#define CONFIG_FILE "/etc/htshd.conf"
-+#define CONFIG_FILE "%%PREFIX%%/etc/wapsh/htshd.conf"
++#define CONFIG_FILE "/usr/local/etc/wapsh/htshd.conf"
/* Default name of startup config file */
-#define GLOBAL_RC_FILE "/etc/htsh_profile"
-+#define GLOBAL_RC_FILE "%%PREFIX%%/etc/wapsh/htsh_profile"
++#define GLOBAL_RC_FILE "/usr/local/etc/wapsh/htsh_profile"
/* Default name of global user
initialisation file */
#define RCFILE ".htshrc" /* Name of user-specific initialisation file
+@@ -3572,39 +3572,38 @@
+ usage(void)
+ {
+ if (!weAreDaemon) {
+- fprintf(stderr,
+-"htsh options are:
+--b numbytes Specify upper limit for per-user shell output buffers
+- (Default: %d bytes)
+--c numbytes Maximum number of bytes to be transferred at a time
+- between Client Shell and HTTP Server.
+- (Default: %d bytes, minimum setting %d bytes)
+--d Run in debug mode
+--D [y|n] If argument is 'y' run as daemon, otherwise ('n')
+- do not daemonise.
+- (If run from inetd, htsh is always a daemon. If run from a
+- shell, htsh is a daemon by default)
+--f config-file Use named file for startup configuration, instead of %s
+--F Do not use standard configuration file (%s)
+--h Display this help message
+--g global-init-file Use named file as login initialisation file for all user
+- logins. (Default: %s)
+--H http-server Specify HTTP server from which connections will
+- be accepted. (Can be specified multiple times)
+--L log-file-dir Record script(1) style log of each login session
+- in named directory
+--o numsecs Timeout for shell output (Default: %3.1f seconds,
+- minimum: %3.1f, maximum: %4.1f seconds)
+--p port-num Specify TCP port on which htsh should listen for
+- connections. (Default is %s in /etc/services)
+--P 'proto-name... ' Specify list of allowed login protocols
+- (can be '%s' and or '%s'
+--t numsecs Timeout for shell input (Default: %d seconds)
+--u username Specify user who is allowed to login to htsh
+- (Can be repeated multiple times)
+-
+-The -c, -D, -o, -p, and -t options override corresponding options in the
+-configuration file. The -h and -u options are additive with corresponding
++ fprintf(stderr, "htsh options are: \n\
++-b numbytes Specify upper limit for per-user shell output buffers \n\
++ (Default: %d bytes)\n\
++-c numbytes Maximum number of bytes to be transferred at a time \n\
++ between Client Shell and HTTP Server. \n\
++ (Default: %d bytes, minimum setting %d bytes)\n\
++-d Run in debug mode\n\
++-D [y|n] If argument is 'y' run as daemon, otherwise ('n')\n\
++ do not daemonise. \n\
++ (If run from inetd, htsh is always a daemon. If run from a \n\
++ shell, htsh is a daemon by default)\n\
++-f config-file Use named file for startup configuration, instead of %s\n\
++-F Do not use standard configuration file (%s)\n\
++-h Display this help message\n\
++-g global-init-file Use named file as login initialisation file for all user\n\
++ logins. (Default: %s)\n\
++-H http-server Specify HTTP server from which connections will \n\
++ be accepted. (Can be specified multiple times)\n\
++-L log-file-dir Record script(1) style log of each login session\n\
++ in named directory\n\
++-o numsecs Timeout for shell output (Default: %3.1f seconds, \n\
++ minimum: %3.1f, maximum: %4.1f seconds)\n\
++-p port-num Specify TCP port on which htsh should listen for \n\
++ connections. (Default is %s in /etc/services)\n\
++-P 'proto-name... ' Specify list of allowed login protocols \n\
++ (can be '%s' and or '%s'\n\
++-t numsecs Timeout for shell input (Default: %d seconds)\n\
++-u username Specify user who is allowed to login to htsh\n\
++ (Can be repeated multiple times)\n\
++\n\
++The -c, -D, -o, -p, and -t options override corresponding options in the\n\
++configuration file. The -h and -u options are additive with corresponding\n\
+ options in the configuration file\n",
+ DEF_OUTPUT_BUFFER_LIMIT,
+ DEF_CS_MAX_TRANSFER_SIZE, CS_MAX_TRANSFER_SIZE_LOW_BOUND,