Date: Thu, 17 Jul 2008 12:09:29 GMT From: "G.V. Tjong A Hung" <gvtjongahung@users.sourceforge.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/125714: Users not added Message-ID: <200807171209.m6HC9TZB028935@www.freebsd.org> Resent-Message-ID: <200807171210.m6HCA4T6092826@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125714 >Category: ports >Synopsis: Users not added >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 17 12:10:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: G.V. Tjong A Hung >Release: FreeBSD 7.0-STABLE >Organization: Delft University of Technology >Environment: >Description: The user http tunnel on which the script depends is not created. There are some minor tweaks which I think should be added to the port. * The script (/usr/local/etc/rc.d/httptunnel.sh) seems to depend on the user httptunnel which is not created. A note that one must manually add this user or a script that automatically does this would be nice. * To make this script more like the other freebsd scripts it would be nice to have a httptunnel_enable flag which enables/disables starting of the script. feature requests: * output some kind of error when the starting of the service failed. * adding status (/usr/local/etc/rc.d/httptunnel.sh status) >How-To-Repeat: >Fix: pw useradd httptunnel replacement scripts I suggest: >Release-Note: >Audit-Trail: >Unformatted: >cat /usr/local/etc/rc.d/httptunnelserver.sh #!/bin/sh # # $FreeBSD: ports/www/httptunnel/files/httptunnel.sh,v 1.4 2005/04/04 12:54:40 flz Exp $ # The following variables are provided to control startup of http tunnel server in # rc configuration file (eg /etc/rc.conf): # hts_enable (bool): Set to "NO" by default. # hts_ # hts_port (IP:PORT): Set to 127.0.0.1:8888 # Please see hts(1), rc.conf(5) and rc(8) for further details. user="httptunnel" name="hts" command=/usr/local/bin/hts # The installed hts program hts_enable="NO" hts_port= # [host:]port to listen for htc connection hts_forward= # Talk to this socket hts_device= # *or* talk to this device HTC=/usr/local/bin/htc # The installed htc program HTCPORT= # host:port where hts is running HTCFORWARD= # Talk to this socket HTCDEVICE= # *or* talk to this device HTCPROXY= # host:port of proxy to talk to hts via HTCPROXYAUTH= # user:password to pass to proxy HTCPROXYBUFFER=1K # Buffer size for buffered proxies HTCBROWSER='Mozilla/4.7 [en] (X11; I; Linux 2.2.12 i386)' # Pretend to be this HTCARGS=-S # Any other arguments required . /etc/rc.subr hts_start() { #assume $command is executable and exists (-x command) checkyesno hts_enable && echo "Starting httptunnel server." && \ args="" if [ -n "$HTSFORWARD" ]; then args="-F $HTSFORWARD" fi if [ -n "$HTSDEVICE" ]; then args="-d $HTSDEVICE" fi if [ -n "$HTSPORT" ]; then args="-F $HTSPORT" fi su -m $user -c "$command $args $HTSPORT" } hts_stop() { checkyesno hts_enable && echo "Stopping httptunnel server." && \ killall hts } start_cmd=hts_start stop_cmd=hts_stop load_rc_config ${name} run_rc_command "$1" #################### >cat /usr/local/etc/rc.d/httptunnelclient.sh #!/bin/sh # # $FreeBSD: ports/www/httptunnel/files/httptunnel.sh,v 1.4 2005/04/04 12:54:40 flz Exp $ # The following variables are provided to control startup of http tunnel server in # rc configuration file (eg /etc/rc.conf): # htc_enable (bool): Set to "NO" by default. # htc_port (IP:PORT): Set to :8888 # htc_forward # htc_device # htc_proxy # htc_proxy_auth # htc_proxy_buffer # htc_browser # htc_args # Please see htc(1), rc.conf(5) and rc(8) for further details. user="httptunnel" name="htc" command=/usr/local/bin/htc # The installed htc program htc_enable="NO" htc_port= # [host:]port to listen for htc connection htc_forward= # Talk to this socket htc_device= # *or* talk to this device htc_proxy= # host:port of proxy to talk to hts via htc_proxy_auth= # user:password to pass to proxy htc_proxy_buffer=1K # Buffer size for buffered proxies htc_browser='Mozilla/4.7 [en] (X11; I; Linux 2.2.12 i386)' # Pretend to be this htc_args=-S # Any other arguments required . /etc/rc.subr htc_start() { #assume $command is executable and exists (-x command) checkyesno htc_enable && echo "Starting httptunnel client." && \ args="" if [ -n "$htc_forward" ]; then args="-F $htc_forward" fi if [ -n "$htc_device" ]; then args="-d $htc_device" fi if [ -n "$htc_browser" ]; then args="-U \"$htc_browser\" $args" fi if [ -n "$htc_proxy" ]; then if [ -n "$htc_proxy_buffer" ]; then args="-B $htc_proxy_buffer $args fi if [ -n "$htc_proxy_auth" ]; then args="--proxy-authorization-file $htc_proxy_auth $args" else args="-A $htc_proxy_auth $args" fi args="-P $htc_proxy $args" fi su -m $user -c "$command $args $htc_args $htc_port" } htc_stop() { checkyesno htc_enable && echo "Stopping httptunnel client." && \ killall htc } start_cmd=htc_start stop_cmd=htc_stop load_rc_config ${name} run_rc_command "$1" ####################
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807171209.m6HC9TZB028935>