FreeBSD Bugzilla – Attachment 165716 Details for
Bug 206336
usr.sbin/freebsd-update allow proxy config in etc/freebsd-update.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[patch] allow proxy in freebsd-update.conf
freebsd-update_head_proxy.diff (text/plain), 1.56 KB, created by
Olli Hauer
on 2016-01-17 14:46:19 UTC
(
hide
)
Description:
[patch] allow proxy in freebsd-update.conf
Filename:
MIME Type:
Creator:
Olli Hauer
Created:
2016-01-17 14:46:19 UTC
Size:
1.56 KB
patch
obsolete
>Index: head/etc/freebsd-update.conf >=================================================================== >--- head/etc/freebsd-update.conf (revision 294205) >+++ head/etc/freebsd-update.conf (working copy) >@@ -11,6 +11,9 @@ > # performance. > ServerName update.FreeBSD.org > >+# HTTP_PROXY, can be overwritten with setenv on the command line >+# HttpProxy proxy.your.domain:proxy_port >+ > # Components of the base system which should be kept updated. > Components src world kernel > >Index: head/usr.sbin/freebsd-update/freebsd-update.sh >=================================================================== >--- head/usr.sbin/freebsd-update/freebsd-update.sh (revision 294205) >+++ head/usr.sbin/freebsd-update/freebsd-update.sh (working copy) >@@ -93,7 +93,8 @@ > CONFIGOPTIONS="KEYPRINT WORKDIR SERVERNAME MAILTO ALLOWADD ALLOWDELETE > KEEPMODIFIEDMETADATA COMPONENTS IGNOREPATHS UPDATEIFUNMODIFIED > BASEDIR VERBOSELEVEL TARGETRELEASE STRICTCOMPONENTS MERGECHANGES >- IDSIGNOREPATHS BACKUPKERNEL BACKUPKERNELDIR BACKUPKERNELSYMBOLFILES" >+ IDSIGNOREPATHS BACKUPKERNEL BACKUPKERNELDIR BACKUPKERNELSYMBOLFILES >+ HTTPPROXY" > > # Set all the configuration options to "". > nullconfig () { >@@ -269,6 +270,17 @@ > fi > } > >+# Proxy, allow overwrite via setenv >+config_HttpProxy () { >+ if [ -n "${HTTP_PROXY}${http_proxy}" ]; then >+ return 0 >+ elif [ -z ${HttpProxy} ]; then >+ export HTTP_PROXY=$1 >+ else >+ return 1 >+ fi >+} >+ > # When fetching upgrades, should we assume the user wants exactly the > # components listed in COMPONENTS, rather than trying to guess based on > # what's currently installed?
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206336
:
165716
|
178586