lastfmsubmitd uses python's urllib, which will honour $http_proxy.  I
have hacked my installation as follows:

$ cat /etc/default/lastfmsubmitd
http_proxy=http://proxy.example.com:3128/
$ diff -u /etc/init.d/lastfmsubmitd{~,}
--- /etc/init.d/lastfmsubmitd~  2009-04-12 05:52:37.000000000 +1200
+++ /etc/init.d/lastfmsubmitd   2009-05-07 11:52:45.000000000 +1200
@@ -17,6 +17,13 @@
 USER=lastfm
 GROUP=lastfm
 
+if [ -r /etc/default/$NAME ]; then
+    . /etc/default/$NAME
+    if [ -n "$http_proxy" ]; then
+        export http_proxy
+    fi
+fi
+
 if ! [ -x $DAEMON ]; then
     exit 0
 fi

and it's working nicely.

-- 
Paul Collins
Wellington, New Zealand

Dag vijandelijk luchtschip de huismeester is dood



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to