Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jun 2003 18:48:04 -0500 (CDT)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        cyrille.lefevre@laposte.net
Subject:   ports/53126: Use proxy/socks settings when registering setiathome
Message-ID:  <200306092348.h59Nm4Dc033243@WBIw009.westbend.net>
Resent-Message-ID: <200306092350.h59No7AP090903@freefall.freebsd.org>

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

>Number:         53126
>Category:       ports
>Synopsis:       Use proxy/socks settings when registering setiathome
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 09 16:50:07 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Scot W. Hetzel
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
West Bend Internet
>Environment:
System: FreeBSD WBIw009.westbend.net 4.8-STABLE FreeBSD 4.8-STABLE #5: Tue Jun 3 12:05:25 CDT 2003 root@WBIw009.westbend.net:/usr/obj/usr/src/4x/sys/GENERIC-SMP i386

>Description:
	Unable to register Setiathome behind a proxy or socks server.

>How-To-Repeat:
	Try to register Setiathome behind a proxy or socks server.

>Fix:
	Apply the following patch, then add the appropriate proxy or socks server
	settings to ${PREFIX}/etc/setiathome.conf and register setiathome.

Index: files/setiathome.sh
===================================================================
RCS file: /home/ncvs/ports/astro/setiathome/files/setiathome.sh,v
retrieving revision 1.14
diff -u -r1.14 setiathome.sh
--- files/setiathome.sh	8 Jun 2003 12:55:42 -0000	1.14
+++ files/setiathome.sh	9 Jun 2003 23:38:03 -0000
@@ -56,6 +56,14 @@
 "
 export program_args
 
+register_args="\
+${seti_reg_args} \
+${seti_proxy_server:+-proxy} ${seti_proxy_server} \
+${seti_socks_server:+-socks_server} ${seti_socks_server} \
+${seti_socks_user:+-socks_user} ${seti_socks_user} \
+${seti_socks_passwd:+-socks_passwd} ${seti_socks_passwd} \
+${seti_nice:+-nice} ${seti_nice} \
+"
 
 wrapper_dir=${PREFIX}/libexec
 wrapper_file=${rc_file%.sh}.bin
@@ -193,8 +201,7 @@
 	if [ "X${seti_dontlogin}" != "Xyes" ]; then
 		su -fm ${seti_user} -c "\
 			cd ${seti_wrkdir} && \
-			exec ${program_path} \
-			${seti_reg_args} ${seti_proxy_args}"
+			exec ${program_path} ${register_args}"
 	fi
 	if [ ${seti_maxprocs} -gt 1 ]; then
 		echo "      Updating additional working directories."
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306092348.h59Nm4Dc033243>