ports/53126: Use proxy/socks settings when registering setiathome
Scot W. Hetzel
hetzels at westbend.net
Mon Jun 9 23:50:10 UTC 2003
>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 at 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:
More information about the freebsd-ports-bugs
mailing list