Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2008 21:17:42 +0100
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        gareth <bsd@lordcow.org>
Cc:        ports@FreeBSD.org
Subject:   Re: caching problems
Message-ID:  <20080222211742.ed8a1c17.ehaupt@FreeBSD.org>
In-Reply-To: <20080222172210.GA31869@lordcow.org>
References:  <20080222172210.GA31869@lordcow.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> hey guys, our proxy is caching extremely old copies of the ports index
> and portaudit databases from freebsd.org. our admins claim that they
> cache the following files i need normally:
> 
> http://www.FreeBSD.org/ports/auditfile.tbz
> http://www.FreeBSD.org/ports/INDEX-6.bz2
> 
> since they have no no-cache pragma directives, and our admins won't
> budge on their 'policy'. is the freebsd site breaking standards in
> this way? is it feasible to add the directives? if not my solution
> is to mirror the files elsewhere and specify this mirror - for
> portaudit i see you can specify it in /usr/local/etc/portaudit.conf,
> but i can't see where to specify an alternate url for 'portsdb -F'
> to use?

You could host the INDEX file on a mirror running a webserver on a non
standard port. Then you could add something like this
to /usr/local/etc/pkgtools.conf:

ENV['MASTER_SITE_INDEX'] = "http://your.index.mirror.tld:81/"

Although adjusting the cache policy seems more reasonable to me.

Emanuel
-- 
GnuPG key id: 0x90215DB9         Download: http://pgp.mit.edu:11371
Key fingerprint: 741B C70F 100B F360 0B52  E92D 5F01 7A86 9021 5DB9



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080222211742.ed8a1c17.ehaupt>