detect APT_PROXY from host apt.conf
detect APT_PROXY from host apt.conf

Introduce a new HTTP_PROXY variable in /etc/default/lxc.  If unset or
set to none, then behavior continues as before.  If set to 'apt', then
any http::proxy set in apt.conf will be used as http_proxy for
debootstrap, and specified in the container's
/etc/apt/apt.conf.d/70proxy.  If set to something else, then the
value of HTTP_PROXY will be used as http_proxy for debootstrap and
specified in the container's 70proxy.

Changelog: (apr 23) merge the two apt proxy detection functions.

Signed-off-by: Serge Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>
Acked-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

ecarrara/lxc,federicobriata/lxc,regit/lxc,aeris/lxc,QingweiPeterLan/cs188-lxc,LynxChaus/lxc,yubo/lxc,bostjan/lxc,GreatFruitOmsk/lxc,glensc/lxc,caglar10ur/lxc,fwilson42/lxc,efiop/lxc,ss1h2a3tw/lxc,federicobriata/lxc,ss1h2a3tw/lxc,ecarrara/lxc,DarknessBeforeDawn/lxc,hallyn/lxc,major/lxc,Distrotech/lxc,Distrotech/lxc,GreatFruitOmsk/lxc,Ponce/lxc,terceiro/lxc,Pelagicore/lxc,abstrakraft/lxc-android-lxc,rowhit/lxc,cjwatson/lxc,ecarrara/lxc,glensc/lxc,caglar10ur/lxc,christiaan/lxc,rowhit/lxc,Ponce/lxc,codebauss/lxc,major/lxc,szaszg/lxc,GreatFruitOmsk/lxc,virajs/lxc,ksperis/lxc,szaszg/lxc,aeris/lxc,smoser/lxc,abstrakraft/lxc-android-lxc,cjwatson/lxc,codebauss/lxc,jirislaby/lxc,lisongmin/lxc,ojkastl/lxc_Patches,major/lxc,weizhenwei/lxc,armcc/lxc,DarknessBeforeDawn/lxc,rldleblanc/lxc,thmo/lxc,smoser/lxc,JohnPeacockMessageSystems/lxc,jirislaby/lxc,codebauss/lxc,sapun/lxc,smoser/lxc,sapun/lxc,fwilson42/lxc,hkjolhede/lxc,Pelagicore/lxc,rldleblanc/lxc,bmoar/lxc,bostjan/lxc,lazy404/lxc,Ponce/lxc,weizhenwei/lxc,raspberrypython/lxc,lisongmin/lxc,ioops/lxc,rowhit/lxc,terceiro/lxc,lisongmin/lxc,armcc/lxc,JohnPeacockMessageSystems/lxc,DarknessBeforeDawn/lxc,abstrakraft/lxc-android-lxc,LynxChaus/lxc,virajs/lxc,hallyn/lxc,JohnPeacockMessageSystems/lxc,ksperis/lxc,efiop/lxc,akshaykarle/lxc,bmoar/lxc,hallyn/lxc,szaszg/lxc,federicobriata/lxc,lazy404/lxc,akshaykarle/lxc,hfuCN/lxc,sapun/lxc,ojkastl/lxc_Patches,hkjolhede/lxc,Distrotech/lxc,terceiro/lxc,QingweiPeterLan/cs188-lxc,akshaykarle/lxc,ioops/lxc,jirislaby/lxc,ojkastl/lxc_Patches,christiaan/lxc,hfuCN/lxc,ksperis/lxc,bostjan/lxc,fwilson42/lxc,bmoar/lxc,hkjolhede/lxc,ss1h2a3tw/lxc,regit/lxc,weizhenwei/lxc,QingweiPeterLan/cs188-lxc,armcc/lxc,regit/lxc,glensc/lxc,ysbnim/lxc,efiop/lxc,raspberrypython/lxc,LynxChaus/lxc,christiaan/lxc,aeris/lxc,yubo/lxc,smoser/lxc,thmo/lxc,tych0/lxc,rldleblanc/lxc,ysbnim/lxc,tych0/lxc,tych0/lxc,abstrakraft/lxc-android-lxc,cjwatson/lxc,thmo/lxc,yubo/lxc,raspberrypython/lxc,virajs/lxc,ysbnim/lxc,hfuCN/lxc,lazy404/lxc,caglar10ur/lxc,ojkastl/lxc_Patches,ioops/lxc,Pelagicore/lxc