Package: gpsprune
Severity: wishlist
Tags: patch
Hi,
the attached wrapper script regards environment variable http_proxy
to enable downloading maps even when sitting behind a proxy. It
would be great if this would be included in the package.
Kind regards and thanks for maintaining gpsprune
Andreas.
-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-xenU (SMP w/1 CPU core)
Locale: lang=de...@euro, lc_ctype=de...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
#!/bin/sh
PRUNEJAR=/usr/share/gpsprune/gpsprune.jar
proxyhost=`echo $http_proxy | sed 's?http://\([^:]\+\).*?\1?'`
proxyport=`echo $http_proxy | sed 's?http://[^:]\+:\([0-9]\+\)?\1?'`
if [ -z $proxyport ] ; then
if [ -z $proxyhost ] ; then
java -jar $PRUNEJAR $@
else
java -Dhttp.proxyHost=$proxyhost -jar $PRUNEJAR $@
fi
else
java -Dhttp.proxyHost=$proxyhost -Dhttp.proxyPort=$proxyport -jar $PRUNEJAR $@
fi