This is tested only on Ubuntu 8.04 (Hardy Heron). YMMV.
1) Install the following software if you don't have it already:
CODE
sudo apt-get install lighttpd squid jesred
You can substitute lighttpd with apache or whatever it is you want to use for the httpd server.
2) Configure squid
I only did a basic configuration, editing the following in /etc/squid/squid.conf:
CODE
http_port 8080
cache_dir ufs /var/spool/squid 100 16 256
acl ps3 src 10.10.10.10
http_access allow ps3
url_rewrite_program /usr/lib/squid/jesred
strip_query_terms off
3) Configure jesred
jesred.acl
uncomment 0.0.0.0/0
jesred.rules
create a regex for the url to the file you want to download. you can get the url from /var/log/squid/access.log
CODE
regex ^http://zeus.dl.playstation.net/cdn/EP0102/NPEB90124_00/dUO8CdsAMhrhFHGBBeAxKIMtnRmiWpy9tFG6vLf1KcGd3KFiEQjD5R6i0KDvamHLATTxpjQ6fTylR0qqK7D03luEbr6eYRd2yIVE0.pkg\?product\=008A\&country\=gb http://localhost/dUO8CdsAMhrhFHGBBeAxKIMtnRmiWpy9tFG6vLf1KcGd3KFiEQjD5R6i0KDvamHLATTxpjQ6fTylR0qqK7D03luEbr6eYRd2yIVE0.pkg
4) Configure lighttpd
nothing much to configure. it runs out of /var/www by default. Just save your saved .pkg file there.
Hope that works for you!
Added on February 3, 2009, 8:00 pmomg...wtf.... lol
This post has been edited by werksuckz: Feb 3 2009, 08:00 PM