Added proxy profile.d script which reads /etc/sysconfig/proxy; added sudoers.d file for exporing variables

This commit is contained in:
Silvan Calarco 2013-05-02 15:53:43 +02:00
parent 03fbd206a5
commit 1b60656c73
4 changed files with 31 additions and 0 deletions

View File

@ -172,7 +172,11 @@ endif
@$(INSTALL_DIR) $(DESTDIR)$(mambaimagesdir)
cp -r etc/polkit-1 $(DESTDIR)$(sysconfdir)/
cp -r etc/prelink.conf.d $(DESTDIR)$(sysconfdir)/
cp -r etc/profile.d $(DESTDIR)$(sysconfdir)/
cp -r etc/sudoers.d $(DESTDIR)$(sysconfdir)/
cp -r etc/sysconfig $(DESTDIR)$(sysconfdir)/
cp -r etc/xprofile.d $(DESTDIR)$(sysconfdir)/
chmod 755 $(DESTDIR)$(sysconfdir)/profile.d/*.sh
chmod 755 $(DESTDIR)$(sysconfdir)/xprofile.d/*.sh
$(INSTALL_SCRIPT) kde/scripts/showlog $(DESTDIR)$(distrobindir)
cp -r menu/icons/ $(DESTDIR)$(datadir)/icons/

9
etc/profile.d/proxy.sh Normal file
View File

@ -0,0 +1,9 @@
#
# openmamba system-wide proxy configuration
#
[ -e /etc/sysconfig/proxy ] && . /etc/sysconfig/proxy
[ "$http_proxy" ] && export HTTP_PROXY=$http_proxy
[ "$https_proxy" ] && export HTTPS_PROXY=$https_proxy
[ "$ftp_proxy" ] && export FTP_PROXY=$ftp_proxy
[ "$socks_proxy" ] && export SOCKS_PROXY=$socks_proxy
[ "$no_proxy" ] && export NO_PROXY=$no_proxy

1
etc/sudoers.d/proxy Normal file
View File

@ -0,0 +1 @@
Defaults env_keep += "ftp_proxy http_proxy https_proxy socks_proxy no_proxy FTP_PROXY HTTP_PROXY HTTPS_PROXY SOCKS_PROXY NO_PROXY"

17
etc/sysconfig/proxy Normal file
View File

@ -0,0 +1,17 @@
# System proxy configuration file
# Here some examples:
# http_proxy=http://proxy.example.com:8080
# https_proxy=http://proxy.example.com:8080
# ftp_proxy=http://proxy.example.com:8080
# socks_proxy=http://proxy.example.com:8080
# no_proxy=localhost,127.0.0.1
# http_proxy=http://user:password@proxy.example.com:3128
# https_proxy=http://user:password@proxy.example.com:3128
# ftp_proxy=http://user:password@proxy.example.com:3128
# http_proxy=http://domain\\user:password@proxy.example.com:8080
# https_proxy=http://domain\\user:password@proxy.example.com:8080
# ftp_proxy=http://domain\\user:password@proxy.example.com:8080