Browse Source

Add support for HTTP_PROXY

suites/ascii
Bill Allombert 14 years ago
parent
commit
479bc74053
  1. 9
      FAQ
  2. 4
      debian/changelog
  3. 4
      debian/cron.weekly
  4. 4
      default.conf

9
FAQ

@ -81,6 +81,15 @@ run this commmand as root:
dpkg-reconfigure popularity-contest
Q) How can I specify a HTTP proxy server for the HTTP submission ?
Popularity-contest honors the environment variable http_proxy that you can
set in /etc/environment. Alternatively you can specify a proxy server
specifically for popularity-contest by adding a line
HTTP_PROXY="http://<proxy hostname>:<port>"
to /etc/popularity-contest.conf.
Q) How can I convert the timestamps in the popcon report to human-readable
dates ?

4
debian/changelog

@ -12,8 +12,10 @@ popularity-contest (1.43) UNRELEASED; urgency=low
* cron.weekly, function run_popcon():
- remove spurious 'sh -c'
- add -s /bin/sh in case nobody has no shell. Closes: #429405, #431867.
* cron.weekly, default.conf, FAQ:
- Add support for HTTP_PROXY. Closes: #365681.
-- Bill Allombert <ballombe@debian.org> Tue, 19 Jun 2007 17:04:48 +0200
-- Bill Allombert <ballombe@debian.org> Fri, 30 Nov 2007 11:33:58 +0100
popularity-contest (1.42) unstable; urgency=low

4
debian/cron.weekly

@ -22,6 +22,10 @@ if [ -z "$MAILTO" ] && [ "yes" != "$USEHTTP" ]; then exit 0; fi
# don't run if PARTICIPATE is "no" or unset!
[ "$PARTICIPATE" = "no" ] || [ -z "$PARTICIPATE" ] && exit 0
if [ -n "$HTTP_PROXY" ]; then
export http_proxy="$HTTP_PROXY";
fi
# keep old logs
cd /var/log
umask 022

4
default.conf

@ -35,6 +35,10 @@ SUBMITURLS="http://popcon.debian.org/cgi-bin/popcon.cgi"
# USEHTTP enables http reporting. Set this to 'yes' to enable it.
USEHTTP="yes"
# HTTP_PROXY allows to specify an HTTP proxy server, the syntax is
# HTTP_PROXY="http://proxy:port". This overrides the environment
# variable http_proxy.
# MY_HOSTID is a secret number that the popularity-contest receiver
# uses to keep track of your submissions. Whenever you send in a
# new entry, it overwrites the last one that had the same HOSTID.

Loading…
Cancel
Save