? OpenBSD::Getopt.3p ? OpenBSD::IdCache.3p ? OpenBSD::Intro.3p ? OpenBSD::Mtree.3p ? OpenBSD::PackageName.3p ? OpenBSD::PackingElement.3p ? OpenBSD::PackingList.3p ? OpenBSD::PkgCfl.3p ? OpenBSD::PkgSpec.3p ? OpenBSD::RequiredBy.3p ? OpenBSD::Search.3p ? OpenBSD::State.3p ? OpenBSD::Ustar.3p ? OpenBSD::Vstat.3p ? OpenBSD::md5.3p Index: pkg.conf.5 =================================================================== RCS file: /cvs/src/usr.sbin/pkg_add/pkg.conf.5,v retrieving revision 1.9 diff -u -p -r1.9 pkg.conf.5 --- pkg.conf.5 27 Jan 2016 20:49:45 -0000 1.9 +++ pkg.conf.5 9 Jan 2017 02:55:05 -0000 @@ -91,6 +91,16 @@ installpath += openbsd-mirror.example.or .Ed .Pp should work. +.It Ar ftp_proxy +Set the +.Ev ftp_proxy +environment variable when calling the fetch command, +unless it is already defined in the current environment. +.It Ar http_proxy +Set the +.Ev http_proxy +environment variable when calling the fetch command, +unless it is already defined in the current environment. .It Ar nochecksum Set to .Ar yes Index: OpenBSD/PackageRepository.pm =================================================================== RCS file: /cvs/src/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm,v retrieving revision 1.138 diff -u -p -r1.138 PackageRepository.pm --- OpenBSD/PackageRepository.pm 5 Oct 2016 13:50:20 -0000 1.138 +++ OpenBSD/PackageRepository.pm 9 Jan 2017 02:55:05 -0000 @@ -728,6 +728,14 @@ sub drop_privileges_and_setup_env PATH => '/bin:/usr/bin' ); + for my $k (qw( + ftp_proxy + http_proxy)) { + if (defined $self->{state}->config->value($k)) { + $newenv{$k} = $self->{state}->config->value($k); + } + } + # copy selected stuff; for my $k (qw( TERM