Re: Building ports with sorces on a local mirror?

2006-08-28 Thread Jonathan McKeown
On Saturday 26 August 2006 22:15, stan wrote:
 I'm in the process of seting up to build a fair number of machines behind a
 very restrictive firewall (and besides that the outbound link is very
 slow).

 What I have in mind is setting up a machine using mirror software to create
 a local mirror of the FreeBSD site, including the distfiles for the ports
 tree.

 Is thee a way to get the ports build system to look for distfiles on this
 local mirror?

I'm doing something similar, but I'm keeping the ports tree on one machine and 
NFS-mounting /usr/ports from there on all my other hosts. Each host other 
than the master has

WRKDIRPREFIX=/usr/local/ports

in /etc/make.conf.

Each time I build a port on any of the machines, it downloads the distfile if 
it doesn't already exist - but because /usr/ports is on the master server, 
that's where all the distfiles end up (in /usr/ports/distfiles), so I 
download each source tarball once, the first time it needs to be installed. 
This saves bandwidth as I'm not trying to mirror all the distfiles whether I 
need them or not.

You can also make packages which will be stored on the master server so you 
don't even have to compile more than once unless you need to. Word of 
warning: take steps to avoid downloading prebuilt packages if you don't have 
a locally-built package. For example, with portupgrade, edit
/usr/local/etc/pkgtools.conf and add

ENV['PKG_FETCH']='false'

which prevents ever fetching a package from the Internet: if there isn't a 
local package it will build from source in the ports tree.

Jonathan

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Building ports with sorces on a local mirror?

2006-08-26 Thread Chris Knipe

Look at the cvs-mirror port...


Regards,
Chris.

- Original Message - 
From: stan [EMAIL PROTECTED]

To: Free BSD Questions list freebsd-questions@freebsd.org
Sent: Saturday, August 26, 2006 10:15 PM
Subject: Building ports with sorces on a local mirror?


I'm in the process of seting up to build a fair number of machines behind 
a

very restrictive firewall (and besides that the outbound link is very
slow).

What I have in mind is setting up a machine using mirror software to 
create

a local mirror of the FreeBSD site, including the distfiles for the ports
tree.

Is thee a way to get the ports build system to look for distfiles on this
local mirror?

--
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Building ports with sorces on a local mirror?

2006-08-26 Thread Josh Paetzel
On Saturday 26 August 2006 15:35, Chris Knipe wrote:
 Look at the cvs-mirror port...


 Regards,
 Chris.

 - Original Message -
 From: stan [EMAIL PROTECTED]
 To: Free BSD Questions list freebsd-questions@freebsd.org
 Sent: Saturday, August 26, 2006 10:15 PM
 Subject: Building ports with sorces on a local mirror?

  I'm in the process of seting up to build a fair number of
  machines behind a
  very restrictive firewall (and besides that the outbound link is
  very slow).
 
  What I have in mind is setting up a machine using mirror software
  to create
  a local mirror of the FreeBSD site, including the distfiles for
  the ports tree.
 
  Is thee a way to get the ports build system to look for distfiles
  on this local mirror?

The cvs-mirror port won't download the distfiles for all of the ports.  
Depending on how 'slow' your link is that could be a very daunting 
task.

The MASTER_SITES environment variable is probably what you want.  man 
ports for the details.

-- 
Thanks,

Josh Paetzel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Building ports with sorces on a local mirror?

2006-08-26 Thread stan
On Sat, Aug 26, 2006 at 03:53:36PM -0500, Josh Paetzel wrote:
 On Saturday 26 August 2006 15:35, Chris Knipe wrote:
  Look at the cvs-mirror port...
 
 
  Regards,
  Chris.
 
  - Original Message -
  From: stan [EMAIL PROTECTED]
  To: Free BSD Questions list freebsd-questions@freebsd.org
  Sent: Saturday, August 26, 2006 10:15 PM
  Subject: Building ports with sorces on a local mirror?
 
   I'm in the process of seting up to build a fair number of
   machines behind a
   very restrictive firewall (and besides that the outbound link is
   very slow).
  
   What I have in mind is setting up a machine using mirror software
   to create
   a local mirror of the FreeBSD site, including the distfiles for
   the ports tree.
  
   Is thee a way to get the ports build system to look for distfiles
   on this local mirror?
 
 The cvs-mirror port won't download the distfiles for all of the ports.  
 Depending on how 'slow' your link is that could be a very daunting 
 task.

True, but at least it's automated (with the perl based mirror script).
 
 The MASTER_SITES environment variable is probably what you want.  man 
 ports for the details.
 
OK, Ill check that out.

-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]