how do i automate building packages?

Roland Smith rsmith at xs4all.nl
Sun Dec 6 09:23:08 UTC 2009


On Sat, Dec 05, 2009 at 06:09:48PM -0800, Robert wrote:
> On Sun, 29 Nov 2009 22:56:53 +0100
> Roland Smith <rsmith at xs4all.nl> wrote:
>
> > Now that my desktop and laptop are both running 8.0, I build ports on
> > my (faster) desktop, and then rsync /usr/local to the laptop. Works
> > fine. Of course my laptop now has some apps on it that it doesn't
> > really need, but on the other hand I have been able to
> > remove /usr/ports, /var/db/ports and /var/db/pkg from the laptop.
> > This is a lot easier than creating packages and updating them on
> > another machine.
>
> I really like this idea. I checked your website but didn't find any
> more detail with regards to this.

Oops. Fixed that.
 
> Are you doing this from crontab, script or just on the command line?

Since my laptop isn't hooked up to my network permanently, I just do the
update from the command line. Here is what I do;

* On the desktop, I make sure that all ports are up to date;
  - 'portsnap fetch update'
  - 'portmaster -a -B -d'
* hook up the laptop to the wired network, with the hostname 'laptop'
  (names and IPs hardwired in /etc/hosts on both machines to keep things simple).
* start 'rsync --daemon' on the laptop. The laptop has the following in
  rsyncd.conf: 
  		[local]
		path = /usr/local
		comment = usr/local directory tree
		uid = root
		gid = wheel
		read only = false

* synchronize all ports to the laptop with the following command on the build
  machine; 'rsync -av --delete /usr/local/ laptop::local'

> I personally want to thank you for all of your helpful posts. 

You're welcome. It's nice to be appreciated. :-)

Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20091206/c9c0b50e/attachment.pgp


More information about the freebsd-questions mailing list